← All work

TwinQuery AI — RAG over city policy

A retrieval-augmented assistant that answers questions about policy documents in Dutch or English, and cites the exact page every time.

twinquery.ai
TwinQuery AI — RAG over city policy

01 — The problem

Policy lived in hundreds of long PDFs. Staff and residents could not find what applied to them, and a generic chatbot would make things up.

02 — What I built

  • ✦Document ingestion with layout-aware chunking and metadata
  • ✦Multilingual embeddings and a vector index with hybrid search
  • ✦Answer generation grounded in retrieved passages, with citations
  • ✦An evaluation set to measure answer quality before each release

03 — What changed

Answers people can check, in their own language, in seconds instead of an afternoon of searching.

04 — Tools

PythonHuggingFaceLangChainpgvectorFastAPITypeScript

Next project

Fintech payments API platform

→