mirror of
https://github.com/hwchase17/langchain.git
synced 2025-10-15 22:10:05 +00:00
Upgrade cohere embedding model to v3 (#13219)
Just updates API docs, doesn't change default param from 2.0 (could be breaking change)
This commit is contained in:
@@ -20,7 +20,7 @@ class ClarifaiEmbeddings(BaseModel, Embeddings):
|
|||||||
|
|
||||||
from langchain.embeddings import ClarifaiEmbeddings
|
from langchain.embeddings import ClarifaiEmbeddings
|
||||||
clarifai = ClarifaiEmbeddings(
|
clarifai = ClarifaiEmbeddings(
|
||||||
model="embed-english-light-v2.0", clarifai_api_key="my-api-key"
|
model="embed-english-light-v3.0", clarifai_api_key="my-api-key"
|
||||||
)
|
)
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
@@ -17,7 +17,7 @@ class CohereEmbeddings(BaseModel, Embeddings):
|
|||||||
|
|
||||||
from langchain.embeddings import CohereEmbeddings
|
from langchain.embeddings import CohereEmbeddings
|
||||||
cohere = CohereEmbeddings(
|
cohere = CohereEmbeddings(
|
||||||
model="embed-english-light-v2.0", cohere_api_key="my-api-key"
|
model="embed-english-light-v3.0", cohere_api_key="my-api-key"
|
||||||
)
|
)
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user