mirror of
https://github.com/hwchase17/langchain
synced 2024-11-02 09:40:22 +00:00
25d1c1c9bb
## Description This PR implements local and dynamic mode in the Nomic Embed integration using the inference_mode and device parameters. They work as documented [here](https://docs.nomic.ai/reference/python-api/embeddings#local-inference). <!-- If no one reviews your PR within a few days, please @-mention one of baskaryan, efriis, eyurtsev, hwchase17. --> --------- Co-authored-by: Erick Friis <erickfriis@gmail.com> |
||
---|---|---|
.. | ||
langchain_nomic | ||
scripts | ||
tests | ||
.gitignore | ||
LICENSE | ||
Makefile | ||
poetry.lock | ||
pyproject.toml | ||
README.md |
langchain-nomic
This package contains the LangChain integration with Nomic
Installation
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.
from langchain_nomic import NomicEmbeddings
embeddings = NomicEmbeddings()
embeddings.embed_query("What is the meaning of life?")