nemoguardrails.embeddings.providers.base
Module Contents
Classes
API
Abstract
Generic interface for an embedding model.
The embedding model is responsible for creating the embeddings given a list of input texts.
engine_name
abstract
Encode the provided documents into embeddings.
Parameters:
documents
The list of documents for which embeddings should be created.
Returns: List[List[float]]
List[List[float]]: The list of embeddings corresponding to the input documents.
asyncabstract
Encode the provided documents into embeddings.
Parameters:
documents
The list of documents for which embeddings should be created.
Returns: List[List[float]]
List[List[float]]: The list of embeddings corresponding to the input documents.