curl --request POST \
--url https://api.example.com/api/chat \
--header 'Content-Type: application/json' \
--data '
{
"message": "<string>",
"conversation_id": "<string>",
"namespace": "All",
"use_query_expansion": true
}
'{
"answer": "<string>",
"answer_origin": "library_rag",
"conversation_id": "<string>",
"question_type": "content",
"sources": [
{
"namespace": "<string>",
"preview": "<string>",
"source_type": "youtube",
"title": "<string>",
"url": "<string>",
"file_path": "<string>",
"full_text": "<string>",
"rerank_score": 123,
"source_id": "<string>",
"timestamp": 1,
"video_id": "<string>"
}
],
"model_name": "<string>",
"provenance_note": "<string>",
"provider": "<string>",
"reranker_available": true,
"suggested_sources": [
{
"namespace": "<string>",
"preview": "<string>",
"source_type": "youtube",
"title": "<string>",
"url": "<string>",
"file_path": "<string>",
"full_text": "<string>",
"rerank_score": 123,
"source_id": "<string>",
"timestamp": 1,
"video_id": "<string>"
}
],
"timing": {
"llm_ms": 0,
"rerank_ms": 0,
"search_ms": 0,
"total_ms": 0
},
"videos_for_selection": [
{
"namespace": "<string>",
"title": "<string>",
"video_id": "<string>"
}
]
}Send a chat message and get RAG response.
curl --request POST \
--url https://api.example.com/api/chat \
--header 'Content-Type: application/json' \
--data '
{
"message": "<string>",
"conversation_id": "<string>",
"namespace": "All",
"use_query_expansion": true
}
'{
"answer": "<string>",
"answer_origin": "library_rag",
"conversation_id": "<string>",
"question_type": "content",
"sources": [
{
"namespace": "<string>",
"preview": "<string>",
"source_type": "youtube",
"title": "<string>",
"url": "<string>",
"file_path": "<string>",
"full_text": "<string>",
"rerank_score": 123,
"source_id": "<string>",
"timestamp": 1,
"video_id": "<string>"
}
],
"model_name": "<string>",
"provenance_note": "<string>",
"provider": "<string>",
"reranker_available": true,
"suggested_sources": [
{
"namespace": "<string>",
"preview": "<string>",
"source_type": "youtube",
"title": "<string>",
"url": "<string>",
"file_path": "<string>",
"full_text": "<string>",
"rerank_score": 123,
"source_id": "<string>",
"timestamp": 1,
"video_id": "<string>"
}
],
"timing": {
"llm_ms": 0,
"rerank_ms": 0,
"search_ms": 0,
"total_ms": 0
},
"videos_for_selection": [
{
"namespace": "<string>",
"title": "<string>",
"video_id": "<string>"
}
]
}Successful Response
Response from chat endpoint.
library_rag, web_rag, policy, general, skill content, clear_meta, ambiguous, video_select, general, skill Show child attributes
Show child attributes
Timing breakdown for a chat request.
Show child attributes
Show child attributes