Skip to content

Commit f26bba4

Browse files
Review /chats documentation in preparation for marketing launch (#3356)
1 parent 09f6519 commit f26bba4

File tree

4 files changed

+244
-303
lines changed

4 files changed

+244
-303
lines changed
Lines changed: 24 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,29 @@
11
---
2-
title: Conversational search
3-
sidebarTitle: Conversational search
4-
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.
54
---
65

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.
87

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
119

12-
```sh
13-
curl \
14-
-X PATCH 'MEILISEARCH_URL/experimental-features/' \
15-
-H 'Content-Type: application/json' \
16-
--data-binary '{
17-
"chatCompletions": true
18-
}'
19-
```
20-
</Note>
10+
Use conversational search when:
2111

22-
## What is conversational search?
12+
- 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
2315

24-
Conversational search interfaces allow users to:
16+
Use traditional search when:
2517

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
3021

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>
3225

33-
## How chat completions differs from traditional search
26+
## Conversational search user workflow
3427

3528
### Traditional search workflow
3629

@@ -43,73 +36,24 @@ This approach bridges the gap between traditional search and modern AI experienc
4336
1. User asks a question in natural language
4437
2. Meilisearch retrieves relevant documents
4538
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
5639

57-
### Use traditional search when:
40+
## Implementation strategies
5841

59-
- Users need to browse multiple options
60-
- Results require comparison (e-commerce products, listings)
61-
- Exact matching is critical
62-
- Response time is paramount
42+
### Retrieval Augmented Generation (RAG)
6343

64-
## 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.
6545

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:
6747

6848
1. **Query understanding**: automatically transforms questions into search parameters
6949
2. **Hybrid retrieval**: combines keyword and semantic search for better relevancy
7050
3. **Answer generation**: uses your chosen LLM to generate responses
7151
4. **Context management**: maintains conversation history by constantly pushing the full conversation to the dedicated tool
7252

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)
82-
- Apply custom prompts
83-
- Access specific indexes based on API keys
84-
- Maintain separate conversation contexts
85-
86-
### Key components
87-
88-
1. **Chat endpoint**: `/chats/{workspace}/chat/completions`
89-
- OpenAI-compatible interface
90-
- Supports streaming responses
91-
- Handles tool calling for index searches
92-
93-
2. **Workspace settings**: `/chats/{workspace}/settings`
94-
- Configure LLM provider and model
95-
- Set system prompts
96-
- Manage API credentials
97-
98-
3. **Index integration**:
99-
- Automatically searches relevant indexes
100-
- Uses existing Meilisearch search capabilities
101-
- Respects API key permissions
102-
103-
## Security considerations
104-
105-
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.
10654

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)
11156

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.
11358

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

Comments
 (0)