Skip to content

Commit 26bafca

Browse files
committed
iframe working
1 parent f1562b2 commit 26bafca

File tree

3 files changed

+51
-1
lines changed

3 files changed

+51
-1
lines changed

docs.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,8 @@
179179
"pages": [
180180
"learn/chat/getting_started_with_chat",
181181
"learn/chat/chat_tooling_reference",
182-
"learn/chat/conversational_search"
182+
"learn/chat/conversational_search",
183+
"learn/chat/chat_ui_component"
183184
]
184185
},
185186
{
File renamed without changes.

learn/chat/chat_ui_component.mdx

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
---
2+
title: Chat UI Component
3+
sidebarTitle: Chat UI Component
4+
description: Interactive chat interface component for conversational search
5+
---
6+
7+
This page provides an interactive chat interface component that demonstrates Meilisearch's conversational search capabilities.
8+
9+
## Interactive Demo
10+
11+
<iframe
12+
src="https://chat-frontend-iframe-fk5ekooet-meili.vercel.app/"
13+
title="Embedded content"
14+
className="w-full h-96 rounded-xl"
15+
sandbox="allow-scripts allow-same-origin allow-forms allow-popups"
16+
allow="clipboard-write"
17+
onLoad="console.log('Iframe loaded successfully')"
18+
onError="console.log('Iframe failed to load')"
19+
></iframe>
20+
21+
<div className="mt-4 text-center">
22+
<p className="text-sm text-gray-600 mb-2">If the chat interface doesn't load above, you can:</p>
23+
<a
24+
href="https://chat-frontend-iframe-605rmlkao-meili.vercel.app/"
25+
target="_blank"
26+
rel="noopener noreferrer"
27+
className="inline-block px-4 py-2 bg-blue-500 text-white rounded-lg hover:bg-blue-600 transition-colors"
28+
>
29+
Open Chat Interface in New Tab
30+
</a>
31+
</div>
32+
33+
## Features
34+
35+
This interactive component showcases:
36+
37+
- Real-time conversational search
38+
- Streaming responses
39+
- Source citations
40+
- Context-aware follow-up questions
41+
- Multiple LLM provider support
42+
43+
## Integration
44+
45+
The chat UI component can be integrated into your application using the provided iframe or by implementing the underlying API calls directly.
46+
47+
<Note>
48+
This is a demonstration component. For production use, implement proper authentication and security measures.
49+
</Note>

0 commit comments

Comments
 (0)