mirror of
https://github.com/hwchase17/langchain
synced 2024-11-08 07:10:35 +00:00
17e886388b
Co-authored-by: Lance Martin <lance@langchain.dev>
23 lines
476 B
Markdown
23 lines
476 B
Markdown
# langchain-nomic
|
|
|
|
This package contains the LangChain integration with Nomic
|
|
|
|
## Installation
|
|
|
|
```bash
|
|
pip install -U langchain-nomic
|
|
```
|
|
|
|
And you should configure credentials by setting the following environment variables:
|
|
|
|
* `NOMIC_API_KEY`: your nomic API key
|
|
|
|
## Embeddings
|
|
|
|
`NomicEmbeddings` class exposes embeddings from Nomic.
|
|
|
|
```python
|
|
from langchain_nomic import NomicEmbeddings
|
|
|
|
embeddings = NomicEmbeddings()
|
|
embeddings.embed_query("What is the meaning of life?") |