Run Chat
POST
/chat
Chat APIs
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/chat' \
--header 'Content-Type: application/json' \
--data-raw '{
"history": [
{
"user": "What are your professional strengths and weaknesses?",
"bot": "I am an AI assistant specializing in reviewing documents for GDPR compliance."
}
],
"category": 491,
"user_id": 46,
"created_by": "user@example.com",
"chat_thread_id": 823,
"overrides": {
"semantic_ranker": true,
"semantic_captions": false,
"top": 3,
"suggest_followup_questions": true,
"sources": false,
"cache_skip": false,
"mode_override": ""
},
"query_source": "web",
"model": "gpt4-o"
}'
Response Response Example
{
"data_points": "",
"answer": "As an AI assistant specializing in GDPR compliance, my professional strengths include...",
"sources": "",
"followup_questions": [
"What strategies do you use to improve your weaknesses?"
],
"thoughts": "Searched for: What are your professional strengths and weaknesses?",
"indexes": [],
"query": "What are your professional strengths and weaknesses?",
"total_tokens": 602,
"prompt_tokens": 329,
"completion_tokens": 273,
"cache_hit": false,
"history": [
{
"user": "tell me about yourself",
"bot": "I am an AI assistant specializing in reviewing documents for GDPR compliance."
}
],
"prompt_prefix": "You are an AI assistant specializing in reviewing documents for GDPR compliance.",
"instructions": [
""
],
"references": [],
"chat_thread_name": "AI Assistant Specializing",
"chatlog_id": 9539
}
Request
Body Params application/json