Skip to content

Commit

Permalink
Merge branch 'master' into docs-qdrant-new-store
Browse files Browse the repository at this point in the history
  • Loading branch information
Anush008 authored Jul 13, 2024
2 parents 67cb5aa + a653b20 commit 9952a3d
Show file tree
Hide file tree
Showing 81 changed files with 2,529 additions and 4,251 deletions.
7 changes: 4 additions & 3 deletions docs/docs/how_to/embed_text.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -67,15 +67,16 @@ If you'd prefer not to set an environment variable you can pass the key in direc
```python
from langchain_cohere import CohereEmbeddings

embeddings_model = CohereEmbeddings(cohere_api_key="...")
embeddings_model = CohereEmbeddings(cohere_api_key="...", model='embed-english-v3.0')
```

Otherwise you can initialize without any params:
Otherwise you can initialize simply as shown below:
```python
from langchain_cohere import CohereEmbeddings

embeddings_model = CohereEmbeddings()
embeddings_model = CohereEmbeddings(model='embed-english-v3.0')
```
Do note that it is mandatory to pass the model parameter while initializing the CohereEmbeddings class.

</TabItem>
<TabItem value="huggingface" label="Hugging Face">
Expand Down
Loading

0 comments on commit 9952a3d

Please sign in to comment.