Flagship project
Ask the Filings
Question answering over SEC 10-K filings that cites its sources and refuses when it should.
How it worksShow less
- Problem
- Most retrieval demos look good and fail quietly. I wanted a system whose quality I could measure, that never states a number it can’t point to.
- What I built
- Hybrid search (Postgres full-text plus pgvector embeddings, merged with reciprocal rank fusion) and a cross-encoder reranker, with guardrails before and after the model and an eval that decides every design choice.
95%of answerable questions correct
Eval results
- Answerable questions correct
- 111 of 117
- Likely range 89 to 98% (95% confidence)
- Wrong answers
- 0
- The other 6 said the answer was not found
- Main figure right, checked in code
- 65 of 67
- The 2 misses are refusals
- Answers with every number in the cited passages
- 112 of 112
- Unanswerable questions refused
- 26 of 27
- Guardrail tests passed
- 21 of 21
- Cost per question
- $0.007
- Median latency
- 5.5 s
Show the retrieval chartShow less
| Setup | Recall |
|---|---|
| Embeddings only | 0.60 |
| Keywords only (Postgres full-text) | 0.68 |
| Hybrid (both, merged with RRF) | 0.74 |
| Hybrid + reranker (default) | 0.89 |
| Hybrid + reranker, no company detection | 0.77 |
- Python
- PostgreSQL
- pgvector
- Gemini API
- Cross-encoder reranker
- Docker








