This guide will walk you through the process of setting up Meilisearch with Voyage AI embeddings to enable semantic search capabilities.
voyage-large-2-instruct
: 1024 dimensionsvoyage-multilingual-2
: 1024 dimensionsvoyage-large-2
: 1536 dimensionsvoyage-2
: 1024 dimensionssource
: Specifies the source of the embedder, which is set to “rest” for using a REST API.apiKey
: Replace <Voyage AI API Key>
with your actual Voyage AI API key.dimensions
: Specifies the dimensions of the embeddings. Set to 1024 for voyage-2
, voyage-large-2-instruct
, and voyage-multilingual-2
, or 1536 for voyage-large-2
.documentTemplate
: Optionally, you can provide a custom template for generating embeddings from your documents.url
: Specifies the URL of the Voyage AI API endpoint.request
: Defines the request structure for the Voyage AI API, including the model name and input parameters.response
: Defines the expected response structure from the Voyage AI API, including the embedding data.q
: Represents the user’s search query.hybrid
: Specifies the configuration for the hybrid search.
semanticRatio
: Allows you to control the balance between semantic search and traditional search. A value of 1 indicates pure semantic search, while a value of 0 represents full-text search. You can adjust this parameter to achieve a hybrid search experience.embedder
: The name of the embedder used for generating embeddings. Make sure to use the same name as specified in the embedder configuration, which in this case is “voyage”.