{ "data": { "response": "Our refund policy allows for full refunds within 30 days of purchase. For products purchased more than 30 days ago, we offer store credit or exchanges. Please contact our customer service team at support@example.com to initiate a refund request.", "context": "Based on company policy documentation regarding refunds and returns", "sources": [ { "id": "doc_01H8X9QK5R2N7P3M6Z8W4Y1V7V", "content": "Refund Policy: Full refunds are available within 30 days of purchase...", "metadata": { "document_type": "policy", "section": "refunds", "last_updated": "2025-01-01" } } ] }, "errors": null}
Knowledge Bases
Chat with Knowledge Base
Performs a conversational query against knowledge bases with context.
{ "data": { "response": "Our refund policy allows for full refunds within 30 days of purchase. For products purchased more than 30 days ago, we offer store credit or exchanges. Please contact our customer service team at support@example.com to initiate a refund request.", "context": "Based on company policy documentation regarding refunds and returns", "sources": [ { "id": "doc_01H8X9QK5R2N7P3M6Z8W4Y1V7V", "content": "Refund Policy: Full refunds are available within 30 days of purchase...", "metadata": { "document_type": "policy", "section": "refunds", "last_updated": "2025-01-01" } } ] }, "errors": null}
Query a knowledge base using natural language and receive contextual responses. This endpoint supports both direct queries and conversational context through message history.
{ "data": { "response": "Our refund policy allows for full refunds within 30 days of purchase. For products purchased more than 30 days ago, we offer store credit or exchanges. Please contact our customer service team at support@example.com to initiate a refund request.", "context": "Based on company policy documentation regarding refunds and returns", "sources": [ { "id": "doc_01H8X9QK5R2N7P3M6Z8W4Y1V7V", "content": "Refund Policy: Full refunds are available within 30 days of purchase...", "metadata": { "document_type": "policy", "section": "refunds", "last_updated": "2025-01-01" } } ] }, "errors": null}