You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
DocsClaw should be able to query RAG (Retrieval-Augmented Generation) databases to ground agent responses in domain-specific knowledge. This would enable agents to retrieve relevant context from vector stores before generating responses, improving accuracy for enterprise use cases.
Motivation
Several user stories from the business user requirements involve processing domain-specific documents where the agent needs access to organizational knowledge bases:
HR agents screening resumes against historical hiring data
Compliance officers matching controls against policy repositories
Security analysts cross-referencing findings against asset inventories
A RAG tool would let agents query a vector database (e.g. pgvector, Milvus, Qdrant, Elasticsearch) to retrieve relevant documents or passages, then use that context in their responses.
Proposed approach
Add a new tool (e.g. rag_query or fetch_context) in internal/rag/ that:
Accepts a natural language query and optional filters
Queries a configured vector database endpoint
Returns ranked document chunks with metadata
Configurable via agent-config.yaml (endpoint, collection, top-k, similarity threshold)
Open questions
Which vector database backends to support first?
Should this be a single generic tool or separate tools per backend?
How does this interact with the fetch_document tool — complementary or overlapping?
Authentication model for the RAG endpoint (SA token, API key, mTLS?)
Activity
pavelanni commentedon Jul 1, 2026
Resolved in PR #73 (v0.10.0). RAG search tool with Weaviate backend is available via the
rag:block in agent-config.yaml.