embedders#
Embedder objects help convert texts to embeddings.
All embedders derive from the Embedder base class.
Tip
Instead of using run() directly, use a
step that takes an Embedder as an args
argument such as Embed or construct a
Retriever with the embedder and then use a
retrieval step such as Retrieve.
- class datadreamer.embedders.Embedder(model_name, cache_folder_path=None)[source]#
Bases:
TaskModel
- class datadreamer.embedders.SentenceTransformersEmbedder(model_name, device=None, dtype=None, cache_folder_path=None, **kwargs)[source]#
Bases:
Embedder