Retrieval Pipeline Tool
Runs only the retrieval stage — queries the knowledge base and returns matched chunks. No LLM generation is performed.
Endpoint
POST /components/{chatbot_id}:retrieval-pipeline/runExample Request
curl -X POST "https://glchat.glair.ai/components/{chatbot_id}:retrieval-pipeline/run" \
-H "Content-Type: application/json" \
-H "X-API-Key: {your_user_api_key}" \
-d '{
"inputs": {
"standalone_query": "What is our refund policy?"
},
"config": {}
}'Response
{
"chunks": [
{
"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