VoyageMultimodalEmbeddingOptions type defines the configuration options you can pass when generating embeddings with multimodal embedding models that support both text and images.
Properties
Type of the input.Default:
queryWhen inputType is specified as query or document, Voyage automatically prepends a prompt to your inputs before vectorizing them, creating vectors more tailored for retrieval/search tasks.For retrieval/search purposes where a query is used to search through documents, we recommend specifying whether your inputs are queries or documents. Since inputs can be multimodal, “queries” and “documents” can be text, images, or an interleaving of both modalities.The following prompts are prepended:- For
query: “Represent the query for retrieving supporting documents: ” - For
document: “Represent the document for retrieval: ”
The data type for the resulting output embeddings.Default:
null (embeddings are represented as a list of floating-point numbers)- If
null(not specified): The embeddings are represented as a list of floating-point numbers. - If
base64: The embeddings are represented as a Base64-encoded NumPy array of single-precision floats.
Whether to truncate the input texts to fit within the context length.Default:
true