nemoguardrails.embeddings.providers.fastembed
Module Contents
Classes
Functions
API
Bases: EmbeddingModel
Embedding model using FastEmbed.
This class represents an embedding model that utilizes the FastEmbed library for generating sentence embeddings.
Parameters:
embedding_model
The name or path of the pre-trained model.
embedding_size
engine_name
model
Encode a list of documents into their corresponding sentence embeddings.
Parameters:
documents
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.
async
Encode a list of documents into their corresponding sentence embeddings.
Parameters:
documents
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.