Set the score threshold. If None, the score threshold is not used.
Arguments:
v
(float | None
): The score threshold.Returns:
float | None
: The score threshold.
Encode a list of documents. Documents can be any type, but the encoder must
be built to handle that data type. Typically, these types are strings or arrays representing images.
Arguments:
docs
(List[Any]
): The documents to encode.Returns:
List[List[float]]
: The encoded documents.
Encode a list of documents asynchronously. Documents can be any type, but the
encoder must be built to handle that data type. Typically, these types are strings or arrays representing images.
Arguments:
docs
(List[Any]
): The documents to encode.Returns:
List[List[float]]
: The encoded documents.
An encoder that encodes documents into a sparse format.
Sparsely encode a list of documents. Documents can be any type, but the encoder must
be built to handle that data type. Typically, these types are strings or arrays representing images.
Arguments:
docs
(List[Any]
): The documents to encode.Returns:
List[SparseEmbedding]
: The encoded documents.
Encode a list of documents asynchronously. Documents can be any type, but the
encoder must be built to handle that data type. Typically, these types are strings or arrays representing images.
Arguments:
docs
(List[Any]
): The documents to encode.Returns:
List[SparseEmbedding]
: The encoded documents.
Convert query texts to dense embeddings optimized for querying
Convert document texts to dense embeddings optimized for storage
Async version of encode_queries
Async version of encode_documents
Convert query texts to dense embeddings optimized for querying
Convert document texts to dense embeddings optimized for storage
Async version of encode_queries
Async version of encode_documents