Skip to content

Add documentation for Meilisearch chat feature#3273

Merged
Kerollmops merged 9 commits into
mainfrom
docs/chat-feature
Jun 11, 2025
Merged

Add documentation for Meilisearch chat feature#3273
Kerollmops merged 9 commits into
mainfrom
docs/chat-feature

Conversation

@tpayet

@tpayet tpayet commented Jun 11, 2025

Copy link
Copy Markdown
Member

Summary

  • Add comprehensive documentation for the new experimental chat feature
  • Create guides and references to help users implement AI-powered conversational search
  • Follow existing documentation patterns and style guidelines

Context

This PR documents the new chat feature being added to Meilisearch in meilisearch/meilisearch#5556. The chat feature enables AI-powered conversational search by integrating Large Language Models with Meilisearch's search capabilities.

Changes

1. Conceptual Overview (learn/ai_powered_search/conversational_search_with_chat.mdx)

  • Explains what conversational search is
  • Compares chat vs traditional search
  • Details the simplified RAG implementation
  • Describes the architecture and security model

2. API Reference (reference/api/chats.mdx)

  • Complete API documentation for all chat endpoints
  • Follows the existing API reference format (similar to indexes, documents, etc.)
  • Includes request/response examples
  • Documents OpenAI SDK compatibility

3. Implementation Guide (guides/ai/getting_started_with_chat.mdx)

  • Step-by-step quick start
  • Practical code examples for building chat interfaces
  • Best practices for prompts, streaming, and conversation management
  • Common use cases (customer support, documentation, e-commerce)

4. Supporting Updates

  • Updated experimental features page to include chat feature
  • Added navigation entries in docs.json following existing structure
  • Created new "AI" section in guides for AI-related content

Documentation Decisions

  1. Terminology: Used "conversational search" for conceptual docs and "chat completions" for technical/API docs
  2. Structure: Followed the learn/reference/guide pattern established in the codebase
  3. Placement: Added chat to AI-powered search section (conceptual fit) and created dedicated API reference page
  4. Examples: Focused on streaming examples since non-streaming is not yet implemented

Notes for Reviewers

  • All code examples are based on the OpenAI-compatible interface described in the PR
  • Security sections emphasize proper API key management and tenant token usage
  • Experimental feature warnings are prominently displayed
  • Content aligns with the product positioning from internal documentation

🤖 Generated with Claude Code

@tpayet tpayet force-pushed the docs/chat-feature branch from 2239ac7 to b4b2834 Compare June 11, 2025 08:59
@Kerollmops Kerollmops marked this pull request as draft June 11, 2025 09:04
@tpayet tpayet force-pushed the docs/chat-feature branch from 8c03737 to 298ac04 Compare June 11, 2025 09:07
@tpayet tpayet force-pushed the docs/chat-feature branch from dc6b028 to 298ac04 Compare June 11, 2025 09:19
@tpayet tpayet force-pushed the docs/chat-feature branch from 17bc9d1 to c6ad6aa Compare June 11, 2025 09:39
@tpayet tpayet force-pushed the docs/chat-feature branch from 02ab8b1 to a86e1cf Compare June 11, 2025 09:44
@tpayet tpayet force-pushed the docs/chat-feature branch from 33ad956 to a40b34c Compare June 11, 2025 09:56
@tpayet tpayet force-pushed the docs/chat-feature branch 2 times, most recently from bc5be35 to 5307fb9 Compare June 11, 2025 10:18
@tpayet tpayet force-pushed the docs/chat-feature branch from e1182e4 to 5e7e71c Compare June 11, 2025 10:19
- Add conceptual overview of conversational search in learn/ai_powered_search/
- Add comprehensive API reference for /chats endpoints in reference/api/
- Add practical implementation guide in guides/ai/
- Update experimental features page to include chatCompletions
- Support all 5 LLM sources: openAi, azureOpenAi, mistral, gemini, vLlm
- Document OpenAI SDK compatibility with code examples
- Add navigation entries in docs.json under Artificial intelligence section
@tpayet tpayet force-pushed the docs/chat-feature branch from 5ec474f to f707cfa Compare June 11, 2025 10:27
@Kerollmops Kerollmops merged commit 44fd90f into main Jun 11, 2025
3 checks passed
@Kerollmops Kerollmops deleted the docs/chat-feature branch June 11, 2025 15:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants