forked from phoenix/litellm-mirror
(docs) embedding cohere
This commit is contained in:
parent
4dfefc475d
commit
f24e1cb133
1 changed files with 9 additions and 6 deletions
|
@ -89,12 +89,15 @@ import os
|
||||||
os.environ['COHERE_API_KEY'] = ""
|
os.environ['COHERE_API_KEY'] = ""
|
||||||
response = embedding('embed-english-v2.0', input=["good morning from litellm"])
|
response = embedding('embed-english-v2.0', input=["good morning from litellm"])
|
||||||
```
|
```
|
||||||
|
| Model Name | Function Call |
|
||||||
| Model Name | Function Call | Required OS Variables |
|
|--------------------------|--------------------------------------------------------------|
|
||||||
|-----------------------|--------------------------------------------------------------|-------------------------------------------------|
|
| embed-english-v3.0 | `embedding(model="embed-english-v3.0", input=["good morning from litellm", "this is another item"])` |
|
||||||
| embed-english-v2.0 | `embedding('embed-english-v2.0', input=input)` | `os.environ['COHERE_API_KEY']` |
|
| embed-english-light-v3.0 | `embedding(model="embed-english-light-v3.0", input=["good morning from litellm", "this is another item"])` |
|
||||||
| embed-english-light-v2.0 | `embedding('embed-english-light-v2.0', input=input)` | `os.environ['COHERE_API_KEY']` |
|
| embed-multilingual-v3.0 | `embedding(model="embed-multilingual-v3.0", input=["good morning from litellm", "this is another item"])` |
|
||||||
| embed-multilingual-v2.0 | `embedding('embed-multilingual-v2.0', input=input)` | `os.environ['COHERE_API_KEY']` |
|
| embed-multilingual-light-v3.0 | `embedding(model="embed-multilingual-light-v3.0", input=["good morning from litellm", "this is another item"])` |
|
||||||
|
| embed-english-v2.0 | `embedding(model="embed-english-v2.0", input=["good morning from litellm", "this is another item"])` |
|
||||||
|
| embed-english-light-v2.0 | `embedding(model="embed-english-light-v2.0", input=["good morning from litellm", "this is another item"])` |
|
||||||
|
| embed-multilingual-v2.0 | `embedding(model="embed-multilingual-v2.0", input=["good morning from litellm", "this is another item"])` |
|
||||||
|
|
||||||
## HuggingFace Embedding Models
|
## HuggingFace Embedding Models
|
||||||
LiteLLM supports all Feature-Extraction Embedding models: https://huggingface.co/models?pipeline_tag=feature-extraction
|
LiteLLM supports all Feature-Extraction Embedding models: https://huggingface.co/models?pipeline_tag=feature-extraction
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue