RAG

Query knowledge base

Search your knowledge base using semantic search

post/api/v1/rag/query

Request

  • Base URL: http://dobby-ai.com
  • URL: http://dobby-ai.com/api/v1/rag/query
  • Auth: HTTP bearer

Request body

questionstring required

The question to search for

max_chunksinteger

Maximum number of relevant chunks to return

include_sourcesboolean

Whether to include source document info

Example request

{
  "question": "What are your business hours?"
}

Response

Query results

successboolean

Example response

{
  "success": true,
  "sources": [
    {
      "document_id": "doc_abc123",
      "content_preview": "Our business hours are...",
      "similarity": 0.89
    }
  ],
  "metadata": {
    "chunks_found": 5,
    "query_time_ms": 234
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.