knowledgeforge
Generative AI · retrieval-augmented generation under access control
Every RAG demo assumes everyone can read everything. Real companies don’t. So the permission filter lives inside the index query here rather than running afterwards on the results, which means content you aren’t cleared for never reaches the app, the prompt or the logs. It never leaves the index at all.
- Evidence
evaluation/results.json— 30 questions, 10 documents, 51 chunks. This harness is how I picked the retriever, and Okapi BM25 won by roughly a third more MRR. It also keeps relevance scores identical no matter who’s asking.
- 0.767 hit@5
- 0.621 mean reciprocal rank
- 0.657 nDCG@5