langchain/libs/partners/nomic
2024-10-15 16:26:38 +00:00
..
langchain_nomic
scripts multiple: pydantic 2 compatibility, v0.3 (#26443) 2024-09-13 14:38:45 -07:00
tests
.gitignore
LICENSE
Makefile
poetry.lock nomic: release 0.1.3, core 0.3 compat but not required (#26511) 2024-09-15 20:10:25 -07:00
pyproject.toml multiple: rely on asyncio_mode auto in tests (#27200) 2024-10-15 16:26:38 +00:00
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?")