forked from phoenix/litellm-mirror
(docs) add voyage ai
This commit is contained in:
parent
95e6d2fbba
commit
aa2bd93166
2 changed files with 31 additions and 0 deletions
30
docs/my-website/docs/providers/voyage.md
Normal file
30
docs/my-website/docs/providers/voyage.md
Normal 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)` |
|
||||||
|
|
||||||
|
|
|
@ -81,6 +81,7 @@ const sidebars = {
|
||||||
"providers/replicate",
|
"providers/replicate",
|
||||||
"providers/cohere",
|
"providers/cohere",
|
||||||
"providers/togetherai",
|
"providers/togetherai",
|
||||||
|
"providers/voyage",
|
||||||
"providers/aleph_alpha",
|
"providers/aleph_alpha",
|
||||||
"providers/baseten",
|
"providers/baseten",
|
||||||
"providers/openrouter",
|
"providers/openrouter",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue