You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: Learn how to implement AI-powered conversational search using Meilisearch's chat feature
2
+
title: What is conversational search?
3
+
description: Conversational search allows people to make search queries using natural languages.
5
4
---
6
5
7
-
Meilisearch's chat completions feature enables AI-powered conversational search, allowing users to ask questions in natural language and receive direct answers based on your indexed content. This feature transforms the traditional search experience into an interactive dialogue.
6
+
Conversational search is an AI-powered search feature that allows users to ask questions in everyday language and receive answers based on the information in Meilisearch's indexes.
8
7
9
-
<Note>
10
-
This is an experimental feature. Use the Meilisearch Cloud UI or the experimental features endpoint to activate it:
8
+
## When to use conversational vs traditional search
- Users need easy-to-read answers to specific questions
13
+
- You are handling informational-dense content, such as knowledge bases
14
+
- Natural language interaction improves user experience
23
15
24
-
Conversational search interfaces allow users to:
16
+
Use traditional search when:
25
17
26
-
- Ask questions in natural language instead of using keywords
27
-
- Receive direct answers rather than just document links
28
-
- Maintain context across multiple questions
29
-
- Get responses grounded in your actual content
18
+
- Users need to browse multiple options, such as an ecommerce website
19
+
- Approximate answers are not acceptable
20
+
- Your users need very quick responses
30
21
31
-
This approach bridges the gap between traditional search and modern AI experiences, making information more accessible and intuitive to find.
22
+
<Warning>
23
+
Conversational search is still in early development. Conversational agents may occasionally hallucinate inaccurate and misleading information, so it is important to closely monitor it in production environments.
24
+
</Warning>
32
25
33
-
## How chat completions differs from traditional search
26
+
## Conversational search user workflow
34
27
35
28
### Traditional search workflow
36
29
@@ -43,73 +36,24 @@ This approach bridges the gap between traditional search and modern AI experienc
43
36
1. User asks a question in natural language
44
37
2. Meilisearch retrieves relevant documents
45
38
3. AI generates a direct answer based on those documents
46
-
4. User can ask follow-up questions
47
-
48
-
## When to use chat completions vs traditional search
49
-
50
-
### Use conversational search when:
51
-
52
-
- Users need direct answers to specific questions
53
-
- Content is informational (documentation, knowledge bases, FAQs)
54
-
- Users benefit from follow-up questions
55
-
- Natural language interaction improves user experience
## Use chat completions to implement RAG pipelines
44
+
In the majority of cases, you should use the [`/chats` route](/reference/api/chats)to build a Retrieval Augmented Generation (RAG) pipeline. RAGs excel when working with unstructured data and emphasise high-quality responses.
65
45
66
-
The chat completions feature implements a complete Retrieval Augmented Generation (RAG) pipeline in a single API endpoint. Meilisearch's chat completions consolidates RAG creation into one streamlined process:
46
+
Meilisearch's chat completions API consolidates RAG creation into a single process:
67
47
68
48
1.**Query understanding**: automatically transforms questions into search parameters
69
49
2.**Hybrid retrieval**: combines keyword and semantic search for better relevancy
70
50
3.**Answer generation**: uses your chosen LLM to generate responses
71
51
4.**Context management**: maintains conversation history by constantly pushing the full conversation to the dedicated tool
72
52
73
-
### Alternative: MCP integration
74
-
75
-
When integrating Meilisearch with AI assistants and automation tools, consider using [Meilisearch's Model Context Protocol (MCP) server](/guides/ai/mcp). MCP enables standardized tool integration across various AI platforms and applications.
76
-
77
-
## Architecture overview
78
-
79
-
Chat completions operate through workspaces, which are isolated configurations for different use cases. Each workspace can:
80
-
81
-
- Use different LLM sources (openAi, azureOpenAi, mistral, gemini, vLlm)
The chat completions feature integrates with Meilisearch's existing security model:
53
+
Follow the [chat completions tutorial](/learn/chat/getting_started_with_chat) for information on how to implement a RAG with Meilisearch.
106
54
107
-
-**API key permissions**: chat only accesses indexes visible to the provided API key
108
-
-**Tenant tokens**: support for multi-tenant applications
109
-
-**LLM credentials**: stored securely in workspace settings
110
-
-**Content isolation**: responses based only on indexed content
55
+
### Model Context Protocol (MCP)
111
56
112
-
## Next steps
57
+
An alternative method is using a Model Context Protocol (MCP) server. MCPs are designed for broader uses that go beyond answering questions, but can be useful in contexts where having up-to-date data is more important than comprehensive answers.
113
58
114
-
-[Get started with chat completions implementation](/learn/chat/getting_started_with_chat)
115
-
-[Explore the chat completions API reference](/reference/api/chats)
59
+
Follow the [dedicated MCP guide](/guides/ai/mcp) if you want to implement it in your application.
0 commit comments