← Back to CV

Citewell

RAG server for MCP clients

MITGitHub ↗Docs ↗

citewell.searchsample query

“Yıllık ücretli izin kaç gün?”

1Labour Law art. 53, leave periodsvector #2 · full-text #1
2Labour Law art. 54, counting leavevector #1 · full-text #4
3Labour Law art. 56, splitting leavevector #5 · full-text #3

The problem

Assistants answer confidently from your documents but rarely show where the answer came from. Citewell retrieves, the assistant writes, and every claim points back to a page.

What it does

A headless RAG server for Claude, Cursor and any MCP client. Every passage it returns comes with file, page, chunk id and a verbatim quote, so answers can be checked.

Highlights

4
  • Hybrid search: pgvector and PostgreSQL full-text fused with Reciprocal Rank Fusion
  • Page-aware chunking that never crosses page boundaries, with stable chunk ids
  • Turkish first: stemming, correct I/ı and İ/i casing, a Turkish evaluation set
  • Built-in evaluation: Recall@k, MRR, page hit rate, p50/p95 latency

Stack

PostgreSQL · pgvector · MCP · Docker · RAG