Policy assistant with citations

Retrieval that refuses when it has no source, and never shows a document to someone who may not read it.

The brief

An HR team fields the same policy questions all week. The policies are spread over dozens of documents, and some, such as salary bands, only managers may see.

What you will build

  • Ingestion of a folder of policy documents
  • Answers that quote and cite the passage used
  • A refusal when nothing relevant is found
  • Filtering so each user only retrieves what they may see

Requirements

RequirementDone when
CitationsEvery answer links to the passage it used
RefusalOut-of-scope questions get a clear refusal
PermissionsA non-manager never retrieves a manager-only document
FreshnessUpdating a document updates the answers

What to learn it from

Milestones

  1. Collect 20 policy documents and mark two as manager-only
  2. Index them and answer one question with a citation
  3. Add the refusal path
  4. Add the permission filter
  5. Write 25 test questions, including ones that must be refused
  6. Measure and fix
How it is judged
A security reviewer asks a non-manager account about salaries and gets nothing. Then you walk them through every hop the data takes.

Stretch goals

  • Hybrid keyword and vector search
  • Answers that compare two policies
  • An admin view of the most asked questions

Before you call it done

Worth remembering
  • No answer without a source
  • No leak across permissions
  • Refusals are helpful, not blank
Back toAll frameworks

Every expert started right here.