curl --location -g --request PUT 'https:///api/v2/agent-responses/' \
--header 'Ocp-Apim-Subscription-Key: ' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data-raw '{
"question": "Can you tell me how RAG works from the sources given?",
"response": {
"query": "Provide detailed information about Retrieval-Augmented Generation (RAG).",
"answer": "Retrieval-Augmented Generation (RAG) combines retrieval of relevant documents with generative models to produce informed responses.",
"run_id": "123e4567-e89b-12d3-a456-426614174000",
"history": [
{
"bot": "Hello! How can I assist you today?",
"user": "Hi"
},
{
"bot": "Retrieval-Augmented Generation (RAG) combines retrieval of relevant documents with generative models to produce informed responses.",
"user": "Can you tell me about RAG from the sources?"
}
],
"indexes": [],
"sources": "",
"success": true,
"cache_hit": false,
"thread_id": 4329,
"agent_mode": "QnA",
"chatlog_id": 42444,
"corpus_ids": [
1345,
1346
],
"references": [],
"instructions": [],
"total_tokens": 2871,
"prompt_prefix": "abc",
"prompt_tokens": 2191,
"chat_thread_name": "RAG Framework",
"agent_response_id": 42444,
"completion_tokens": 680,
"followup_questions": []
},
"created_by": "user@example.com",
"total_tokens": 2871,
"prompt_tokens": 2191,
"completion_tokens": 680,
"cache_hit": false,
"query_source": "web",
"message_id": 1234,
"guardrail_triggered": false,
"chat_thread_id": 4354,
"user_id": 147,
"llm_config_id": 46,
"agent_id": 1251
}'
{
"success": true,
"message": "Agent Response Updated Successfully",
"data": {
"chat_thread_id": 1234,
"agent_id": 5678,
"user_id": 9101,
"llm_config_id": 1121,
"question": "How does the RAG framework operate?",
"response": {
"query": "Provide details about RAG.",
"answer": "Hello, what's up?",
"run_id": "abcd1234-5678-90ef-ghij-1234567890kl",
"history": [
{
"bot": "Hello! How can I assist you today?",
"user": "Hi"
},
{
"bot": "Hello, what's up?",
"user": "Tell me about RAG from the sources?"
}
],
"indexes": [],
"sources": "",
"success": true,
"cache_hit": false,
"thread_id": 2222,
"agent_mode": "QnA",
"chatlog_id": 3333,
"corpus_ids": [
4444,
5555
],
"references": [],
"instructions": [],
"total_tokens": 1000,
"prompt_prefix": "example_prefix",
"prompt_tokens": 700,
"chat_thread_name": "Example Thread",
"agent_response_id": 6666,
"completion_tokens": 300,
"followup_questions": []
},
"total_tokens": 1000,
"prompt_tokens": 700,
"completion_tokens": 300,
"created_by": "user@example.com",
"cache_hit": false,
"query_source": "web",
"message_id": 1234,
"guardrail_triggered": false
}
}