NomicEmbeddings
This will help you get started with Nomic embedding models using LangChain. For detailed documentation on NomicEmbeddings
features and configuration options, please refer to the API reference.
Overviewโ
Integration detailsโ
Provider | Package |
---|---|
Nomic | langchain-nomic |
Setupโ
To access Nomic embedding models you'll need to create a/an Nomic account, get an API key, and install the langchain-nomic
integration package.
Credentialsโ
Head to https://atlas.nomic.ai/ to sign up to Nomic and generate an API key. Once you've done this set the NOMIC_API_KEY
environment variable:
import getpass
import os
if not os.getenv("NOMIC_API_KEY"):
os.environ["NOMIC_API_KEY"] = getpass.getpass("Enter your Nomic API key: ")
If you want to get automated tracing of your model calls you can also set your LangSmith API key by uncommenting below:
# os.environ["LANGCHAIN_TRACING_V2"] = "true"
# os.environ["LANGCHAIN_API_KEY"] = getpass.getpass("Enter your LangSmith API key: ")
Installationโ
The LangChain Nomic integration lives in the langchain-nomic
package:
%pip install -qU langchain-nomic
Note: you may need to restart the kernel to use updated packages.