Policy search that knows which circular is in force

Staff at a non-bank lender asked colleagues instead of searching the policy library, and sometimes cited withdrawn circulars. The new search respects who may read each document and which version applies.

Length
9 weeks to a pilot with two departments

A library where the newest file is not always in force

The client. The compliance team of a non-bank financial institution in Dhaka, with about 1,400 internal policies and regulator circulars, a fifth of them superseded.

About a fifth of the library is superseded, but the newest file is not always the one in force, and department-only memos sit beside public circulars. An answer takes around forty minutes and often ends in a message to a colleague.

A general-purpose chatbot pilot quoted a withdrawn circular with confidence. Compliance needs answers that carry the version and respect who may read the source.

How the engineers did it

  1. Make the version a field

    Every document gets an effective date, a supersession link and a status. Undated documents go to a review queue.

  2. Filter before the model sees anything

    The reader's groups come from sign-in and filter retrieval. Restricted memos never reach the prompt.

  3. Search two ways

    Keyword search catches circular numbers, embeddings catch paraphrase, and a reranker orders the short list.

  4. Cite or abstain

    Each answer quotes its passages with the document version. If the passages do not answer, it says so.

  5. Compliance owns the test set

    A 2,000-query test set, split by department, date and question type, is rerun by the compliance team every month.

For your engineers

What was built

  • Ingestion with effective dates, supersession links and a review queue for undated documents
  • Permission-filtered hybrid retrieval on pgvector
  • Cited answers with version labels and abstention
  • Audit log of every question, passage and reader
  • Evaluation set and monthly slice report

Stack

Python, PostgreSQL with pgvector, hybrid retrieval, reranker, single sign-on groups

Length

9 weeks to a pilot with two departments

What changed

MeasureBeforeAfter
Time to a cited answerabout 40 minutes2 minutes
Restricted documents in answersnot checkednone in 2,000 test queries
Grounded answers on sampled questionsnot measured95%, scored by two blind graders

What we learned

  • The version in force is data. Capture it when a document is ingested.
  • Permissions belong in the retrieval query, never in the prompt.
  • Abstention is measured. An assistant that answers everything is hiding its failures.

Bring the library your team no longer trusts

The diagnostic samples your policies and circulars, finds the undated and superseded ones, and prices search that cites the version in force.