nemoguardrails.embeddings.providers.nim
Module Contents
Classes
API
Bases: EmbeddingModel
Embedding model using langchain-nvidia-ai-endpoints.
This class is a wrapper for using embedding models powered by NIM (hosted in the NVIDIA API Catalog or locally).
Parameters:
The name embedding model to be used.
Encode a list of documents into their corresponding sentence embeddings.
Parameters:
The list of documents to be encoded.
Returns: List[List[float]]
List[List[float]]: The list of sentence embeddings, where each embedding is a list of floats.
Encode a list of documents into their corresponding sentence embeddings.
Parameters:
The list of documents to be encoded.
Returns: List[List[float]]
List[List[float]]: The list of sentence embeddings, where each embedding is a list of floats.
Bases: NIMEmbeddingModel
A wrapper with a different name for the NIM embedding models.
There will be a better separation in the future between local NIM and NVIDIA AI Endpoints.