Skip to main content
For the complete documentation index for agents and LLMs, see llms.txt.

SentenceTransformersMultivectorDocumentEmbedder

SentenceTransformersMultivectorDocumentEmbedder is a Document embedder from the sentence-transformers integration in haystack-core-integrations. Use it in an indexing pipeline to embed your documents with a Sentence Transformers model. State here what it produces for each document and which retrievers can use the output.

Key Features​

Add Inputs, Outputs, Init Parameters, and Run Method Parameters tables. Each should list the parameter name, type, default, and description, taken from the component source.

Configuration​

  1. Drag the SentenceTransformersMultivectorDocumentEmbedder component onto the canvas from the Component Library.
  2. Open the configuration panel and set init parameters for your provider credentials and model settings.
  3. For workspace integrations, connect the provider under Settings when the component requires it.

Connections​

Wire SentenceTransformersMultivectorDocumentEmbedder to upstream and downstream components according to its input and output sockets in Pipeline Builder.

Source Code​

To check this component's source code, open sentence_transformers_multivector_document_embedder.py in the Haystack Core Integrations repository.

Usage Examples​

Basic Configuration​

SentenceTransformersMultivectorDocumentEmbedder:
type: haystack_integrations.components.embedders.sentence_transformers.sentence_transformers_multivector_document_embedder.SentenceTransformersMultivectorDocumentEmbedder
init_parameters: {}