File tree 1 file changed +3
-5
lines changed
1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ Prism::embeddings()
28
28
->using(Provider::VoyageAI, 'voyage-3-lite')
29
29
->fromInput('The food was delicious and the waiter...')
30
30
->withProviderMeta(Provider::VoyageAI, ['inputType' => 'query'])
31
- ->generate ();
31
+ ->asEmbeddings ();
32
32
```
33
33
34
34
For document retrieval:
@@ -41,7 +41,7 @@ Prism::embeddings()
41
41
->using(Provider::VoyageAI, 'voyage-3-lite')
42
42
->fromInput('The food was delicious and the waiter...')
43
43
->withProviderMeta(Provider::VoyageAI, ['inputType' => 'document'])
44
- ->generate ();
44
+ ->asEmbeddings ();
45
45
```
46
46
47
47
### Truncation
@@ -58,7 +58,5 @@ Prism::embeddings()
58
58
->using(Provider::VoyageAI, 'voyage-3-lite')
59
59
->fromInput('The food was delicious and the waiter...')
60
60
->withProviderMeta(Provider::VoyageAI, ['truncation' => false])
61
- ->generate ();
61
+ ->asEmbeddings ();
62
62
```
63
-
64
- ### Truncation
You can’t perform that action at this time.
0 commit comments