langchain-nomic¶
Reference docs
This page contains reference documentation for Nomic. See the docs for conceptual guides, tutorials, and examples on using Nomic modules.
langchain_nomic
¶
Nomic partner integration for LangChain.
NomicEmbeddings
¶
Bases: Embeddings
NomicEmbeddings embedding model.
| METHOD | DESCRIPTION |
|---|---|
aembed_documents |
Asynchronous Embed search docs. |
aembed_query |
Asynchronous Embed query text. |
__init__ |
Initialize |
embed |
Embed texts. |
embed_documents |
Embed search docs. |
embed_query |
Embed query text. |
embed_image |
Embed images. |
aembed_documents
async
¶
aembed_query
async
¶
__init__
¶
__init__(
*,
model: str,
nomic_api_key: str | None = None,
dimensionality: int | None = None,
inference_mode: str = "remote",
device: str | None = None,
vision_model: str | None = None,
)
Initialize NomicEmbeddings model.
| PARAMETER | DESCRIPTION |
|---|---|
model
|
Model name
TYPE:
|
nomic_api_key
|
Optionally, set the Nomic API key. Uses the
TYPE:
|
dimensionality
|
The embedding dimension, for use with Matryoshka-capable models. Defaults to full-size.
TYPE:
|
inference_mode
|
How to generate embeddings. One of
TYPE:
|
device
|
The device to use for local embeddings. Choices include
Typically defaults to Warning Do not use on macOS.
TYPE:
|
vision_model
|
The vision model to use for image embeddings.
TYPE:
|