Skip to content

Commit 04a0aff

Browse files
authored
docs: fix asEmbeddings (#285)
1 parent fc34e3e commit 04a0aff

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

Diff for: docs/providers/voyageai.md

+3-5
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Prism::embeddings()
2828
->using(Provider::VoyageAI, 'voyage-3-lite')
2929
->fromInput('The food was delicious and the waiter...')
3030
->withProviderMeta(Provider::VoyageAI, ['inputType' => 'query'])
31-
->generate();
31+
->asEmbeddings();
3232
```
3333

3434
For document retrieval:
@@ -41,7 +41,7 @@ Prism::embeddings()
4141
->using(Provider::VoyageAI, 'voyage-3-lite')
4242
->fromInput('The food was delicious and the waiter...')
4343
->withProviderMeta(Provider::VoyageAI, ['inputType' => 'document'])
44-
->generate();
44+
->asEmbeddings();
4545
```
4646

4747
### Truncation
@@ -58,7 +58,5 @@ Prism::embeddings()
5858
->using(Provider::VoyageAI, 'voyage-3-lite')
5959
->fromInput('The food was delicious and the waiter...')
6060
->withProviderMeta(Provider::VoyageAI, ['truncation' => false])
61-
->generate();
61+
->asEmbeddings();
6262
```
63-
64-
### Truncation

0 commit comments

Comments
 (0)