Use cases
Agentic search covers a range of natural-language search experiences, from AI agents that call Meilisearch as a tool to conversational chat interfaces:Agents with a search tool
Give any AI agent or LLM application the ability to query your Meilisearch indexes as part of a larger task, tool call, or multi-step reasoning process. The agent decides when to search, what to search for, and how to use the results. Example: A support agent looks up your product catalog before answering a compatibility question, then combines the results with its own reasoning.RAG pipelines
Integrate Meilisearch as the retrieval layer in a broader RAG architecture that your agent or application controls. Meilisearch handles hybrid retrieval, while your code decides how to use the results and when to generate a response. Example: A product recommendation engine that retrieves matching products via Meilisearch, then uses a custom prompt to generate personalized suggestions.Multi-turn chat
Build a full conversational interface where users ask follow-up questions and the agent maintains context across the conversation. This is ideal for knowledge bases, customer support, and documentation search. Example: A user asks “What models do you support?”, then follows up with “Which one is the fastest?” without restating the context.One-shot answer summarization
Generate a single, concise answer to a user’s question without maintaining conversation history. This is useful when you want to display a summarized answer alongside traditional search results. Example: A user searches “How do I reset my password?” and gets a direct answer synthesized from your help articles, displayed above the regular search results.How it works
Here is how a typical agentic search workflow looks like:- Query understanding: The LLM transforms the user’s natural language question into optimized search parameters
- Retrieval: Search your indexes to find the most relevant documents using hybrid search for better relevancy
- Answer generation: The LLM generates a response using only the retrieved documents as context
- Source attribution: Every response can include references to the source documents used to generate the answer
Implementation strategies
AI SDK (recommended)
@meilisearch/ai-sdk provides ready-made search tools for the Vercel AI SDK, so any agent or LLM application can call Meilisearch directly, without an engine-managed /chats workspace. This is the recommended way to build agentic and conversational search on top of Meilisearch.
Get started with the agentic search getting started guide.
Chats API (experimental)
The experimental/chats route consolidates retrieval, context management, and generation into a single, engine-managed endpoint.
See the Chats API guide for setup, chat patterns, streaming, and tools. Consult the chat completions API reference for the full list of supported parameters.