1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
# Chat Streaming Example
This example shows how to use Meilisearch's chat features with streaming responses.
## What it does
- Check server health
- List available chat workspaces
- Start an interactive chat session
- Stream responses in real-time
- Type 'quit' to exit
## Prerequisites
**Meilisearch Enterprise** with chat features enabled
## Configuration
```bash
export MEILI_HOST="http://localhost:7700"
export MEILI_API_KEY="your-enterprise-api-key"
```
## Run it
```bash
go run ./examples/chat_stream
```
```
The example will start an interactive chat session where you can ask questions and receive streaming responses. Type 'quit' or 'exit' to end the session.
|