Get Agent Queries
GET
/api/agent/{agent_id}/query/
Evaluation APIs
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET '/api/agent//query/'
Response Response Example
{
"success": true,
"message": "Agent queries retrieved successfully.",
"data": [
{
"id": 7,
"comments": [
[]
],
"feedback": [
[]
],
"question": "what is the process of augmentation",
"response": {
"query": "'process of augmentation in RAG models'",
"answer": "Sorry, couldn't find the answer in the provided documents.",
"history": [
{
"bot": "Retrieval-Augmented Generation (RAG) is a model designed for knowledge-intensive Natural Language Processing (NLP) tasks. RAG models combine pre-trained parametric memory, such as a sequence-to-sequence (seq2seq) model, with non-parametric memory, such as a dense vector index of Wikipedia, which is accessed using a pre-trained neural retriever. This combination allows RAG models to access and manipulate knowledge more precisely than traditional pre-trained language models.",
"user": "what is RAG"
}
]
},
"created_by": "user@example.com",
"created_on": "2024-10-04T21:42:11.280077Z",
"is_deleted": false,
"total_tokens": 1151,
"query_source": "web",
"agent": 3
}
]
}
Request
Path Params
agent_id
integer
required
Example:
3