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
Client ──POST /api/workspaces/:id/query/stream──► Node.js API
Node.js API ──POST /agent/query/stream──► Agent Service
Agent Service yields SSE events:
event: plan { strategy, steps }
event: thinking { content }
event: tool_call { tool, input }
event: tool_result { tool, result }
event: answer_chunk { content } ← multiple, streamed word by word
event: answer_complete { answer, citations, qualityScore, suggestions }
event: done { status }
RAGAS Evaluation Results
Metric
Score
Faithfulness
0.87
Answer Relevancy
0.91
Context Recall
0.83
Context Precision
0.85
Overall
0.87
Scores obtained by running GET /rag/eval/summary after 10 seed queries. Run bash scripts/seed-eval.sh to reproduce.
Quick start (Docker Compose)
# 1. Clone and setup
git clone https://github.com/yourname/docsense
cd docsense
bash scripts/setup.sh # generates secrets, copies .env files# 2. Add your LLM key
vim infra/compose/env/agent.env # set OPENAI_API_KEY
vim infra/compose/env/rag.env # set OPENAI_API_KEY# 3. Boot all services
docker compose up -d --build
# 4. Wait ~90s for health checks, then open:
open http://localhost
deploy(main branch only) — push images to registry, rolling deploy to K8s
Local development
# API (hot reload)cd services/api && npm run dev
# RAG servicecd services/rag && uvicorn app.main:app --reload --port 8000
# Agent servicecd services/agent && uvicorn app.main:app --reload --port 8100
# Frontendcd apps/web && npm run dev
Or just use Docker Compose for everything:
docker compose up
About
Document intelligence platform combining a scalable RAG architecture with an Agentic AI orchestration layer for multi-step planning, tool execution, and context-grounded reasoning, powered by a Go backend and vector database infrastructure.