forked from phoenix/litellm-mirror
(docs) voyage ai embeddings
This commit is contained in:
parent
aa2bd93166
commit
a1484171b5
2 changed files with 26 additions and 1 deletions
|
@ -224,3 +224,26 @@ print(response)
|
||||||
| mistral-embed | `embedding(model="mistral/mistral-embed", input)` |
|
| mistral-embed | `embedding(model="mistral/mistral-embed", input)` |
|
||||||
|
|
||||||
|
|
||||||
|
## Voyage AI Embedding Models
|
||||||
|
|
||||||
|
### Usage - Embedding
|
||||||
|
```python
|
||||||
|
from litellm import embedding
|
||||||
|
import os
|
||||||
|
|
||||||
|
os.environ['VOYAGE_API_KEY'] = ""
|
||||||
|
response = embedding(
|
||||||
|
model="voyage/voyage-01",
|
||||||
|
input=["good morning from litellm"],
|
||||||
|
)
|
||||||
|
print(response)
|
||||||
|
```
|
||||||
|
|
||||||
|
## Supported Models
|
||||||
|
All models listed here https://docs.voyageai.com/embeddings/#models-and-specifics are supported
|
||||||
|
|
||||||
|
| Model Name | Function Call |
|
||||||
|
|--------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||||
|
| voyage-01 | `embedding(model="voyage/voyage-01", input)` |
|
||||||
|
| voyage-lite-01 | `embedding(model="voyage/voyage-lite-01", input)` |
|
||||||
|
| voyage-lite-01-instruct | `embedding(model="voyage/voyage-lite-01-instruct", input)` |
|
||||||
|
|
|
@ -25,6 +25,8 @@ All models listed here https://docs.voyageai.com/embeddings/#models-and-specific
|
||||||
|
|
||||||
| Model Name | Function Call |
|
| Model Name | Function Call |
|
||||||
|--------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
|--------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||||
| mistral-embed | `embedding(model="voyage/voyage-01", input)` |
|
| voyage-01 | `embedding(model="voyage/voyage-01", input)` |
|
||||||
|
| voyage-lite-01 | `embedding(model="voyage/voyage-lite-01", input)` |
|
||||||
|
| voyage-lite-01-instruct | `embedding(model="voyage/voyage-lite-01-instruct", input)` |
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue