How the assistant works
Every answer comes from FinBase's six official policy documents (effective Oct 1, 2026). If the documents don't contain the answer, the assistant says so.
1.PII redaction
Card numbers, Aadhaar, PAN, OTP/PIN, phones and e-mails are masked before anything else.
2.Query rewrite
Follow-ups and Hindi/Hinglish are rewritten into a standalone English query (one small GPT call).
3.Hybrid retrieval
FAISS dense search (OpenAI embeddings) + BM25 lexical search, fused with Reciprocal Rank Fusion.
4.Rerank
A FlashRank ONNX cross-encoder re-scores the top candidates.
5.Context assembly
Token-budgeted, max 2 blocks per section; table rows bring their table; conflicting sections are always shown together.
6.Abstain gate
Low retrieval confidence → the standard 'not in the knowledge base' reply, without calling the LLM.
7.Grounded generation
GPT answers only from numbered CONTEXT blocks and cites every fact like [1].
8.Verification
Citations validated, sources built from document metadata, every figure checked against the cited text.