langchain/libs/partners/nomic
Erick Friis 17e886388b
nomic: init pkg (#16853)
Co-authored-by: Lance Martin <lance@langchain.dev>
2024-01-31 16:46:35 -08:00
..
langchain_nomic nomic: init pkg (#16853) 2024-01-31 16:46:35 -08:00
scripts nomic: init pkg (#16853) 2024-01-31 16:46:35 -08:00
tests nomic: init pkg (#16853) 2024-01-31 16:46:35 -08:00
.gitignore nomic: init pkg (#16853) 2024-01-31 16:46:35 -08:00
LICENSE nomic: init pkg (#16853) 2024-01-31 16:46:35 -08:00
Makefile nomic: init pkg (#16853) 2024-01-31 16:46:35 -08:00
poetry.lock nomic: init pkg (#16853) 2024-01-31 16:46:35 -08:00
pyproject.toml nomic: init pkg (#16853) 2024-01-31 16:46:35 -08:00
README.md nomic: init pkg (#16853) 2024-01-31 16:46:35 -08:00

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?")