(docs) add voyage ai

This commit is contained in:
ishaan-jaff 2023-12-28 17:12:58 +05:30
parent 95e6d2fbba
commit aa2bd93166
2 changed files with 31 additions and 0 deletions

View file

@ -0,0 +1,30 @@
# Voyage AI
https://docs.voyageai.com/embeddings/
## API Key
```python
# env variable
os.environ['VOYAGE_API_KEY']
```
## Sample 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 |
|--------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| mistral-embed | `embedding(model="voyage/voyage-01", input)` |

View file

@ -81,6 +81,7 @@ const sidebars = {
"providers/replicate",
"providers/cohere",
"providers/togetherai",
"providers/voyage",
"providers/aleph_alpha",
"providers/baseten",
"providers/openrouter",