This guide will walk you through the process of setting up Meilisearch with Hugging Face Inference Endpoints.
huggingface
, or remotely in Hugging Face’s servers by setting the embeder source to rest
.source
: declares Meilisearch should connect to this embedder via its REST APIurl
: replace ENDPOINT_URL
with the address of your Hugging Face model endpointapiKey
: replace API_KEY
with your Hugging Face API keydimensions
: specifies the dimensions of the embeddings, which are 384 for baai/bge-small-en-v1.5
documentTemplate
: an optional but recommended template for the data you will send the embedderrequest
: defines the structure and parameters of the request Meilisearch will send to the embedderresponse
: defines the structure of the embedder’s responsehybrid
search parameter, setting semanticRatio
to 1
:
q
: the search queryhybrid
: enables AI-powered search functionality
semanticRatio
: controls the balance between semantic search and full-text search. Setting it to 1
means you will only receive semantic search resultsembedder
: the name of the embedder used for generating embeddings