curl --request POST \
--url https://api.example.com/api/chat/stream \
--header 'Content-Type: application/json' \
--data '
{
"message": "<string>",
"conversation_id": "<string>",
"namespace": "All",
"use_query_expansion": true
}
'{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"ctx": {},
"input": "<unknown>"
}
]
}Send a chat message and stream the RAG response as SSE.
curl --request POST \
--url https://api.example.com/api/chat/stream \
--header 'Content-Type: application/json' \
--data '
{
"message": "<string>",
"conversation_id": "<string>",
"namespace": "All",
"use_query_expansion": true
}
'{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"ctx": {},
"input": "<unknown>"
}
]
}