Standard RAG Tool
Runs the full RAG pipeline — retrieval from the knowledge base followed by LLM answer generation with citations.
Endpoint
POST /components/{chatbot_id}:standard-rag/runExample Request
curl -X POST "https://glchat.glair.ai/components/{chatbot_id}:standard-rag/run" \
-H "Content-Type: application/json" \
-H "X-API-Key: {your_user_api_key}" \
-d '{
"inputs": {
"query": "What is our refund policy?"
},
"config": {}
}'Response
{
"response": "Our refund policy allows returns within 30 days of purchase...",
"references": [
{
"id": "54652883-dc0e-4e08-928e",
"content": "Returns are accepted within 30 days of purchase...",
"metadata": { "source": "policy-doc.pdf", ...},
"score": 0.71
}
]
}Field
Type
Description
Inputs Schema
Field
Type
Required
Default
Description
Last updated