Building BIS SmartAssist (MANAKAI): Zero-Hallucination AI for 23,800+ Indian Standards with OpenAI Codex A developer built BIS SmartAssist (MANAKAI), a retrieval-augmented conversational system that answers questions about India's 23,866+ published Indian Standards with strict citation traceability and a safe-refusal fallback. The system combines BM25 lexical search with 384-dimensional dense embeddings, reranks pooled candidates using a domain-tuned MiniLM cross-encoder, and gates answers on a closed-form confidence formula (rerank score, entity match, dual-channel consensus, and top-score margin) with a 0.70 threshold. The developer reports Recall@5 of 98.00% and MRR of 0.9323, and describes pair-programming the pipeline with OpenAI Codex. When an MSME manufacturer, startup founder, or laboratory engineer asks an AI: "What are the mandatory testing parameters under Scheme-I ISI Mark for IS 1786 High Strength Deformed Steel Bars ?" Standard commercial LLMs almost always fail catastrophically. They invent fictional standard numbers, cite revoked clauses, confuse voluntary Indian Standards with mandatory Quality Control Orders QCOs , and hallucinate chemical tolerance limits. In regulatory engineering, a single fabricated number can lead to legal penalties or factory shutdowns. The Bureau of Indian Standards BIS administers over 23,866 published Indian Standards IS , hundreds of mandatory QCOs, and complex certification schemes ISI Mark, CRS, Hallmarking, ECO Mark . To solve this regulatory discovery bottleneck, we engineered BIS SmartAssist MANAKAI — a production-grade, domain-grounded conversational system with strict citation traceability and zero hallucination. Here is the story of how we built it, and our step-by-step pair-programming walkthrough with OpenAI Codex . To architect our dual-channel retrieval pipeline, confidence calibration formula, and API handlers, we paired up with OpenAI Codex . Below is the interactive session trace recorded and scrubbed in the browser. You can explore the exact prompts, internal reasoning, tool calls, and test runs: Our foundational rule: Every factual claim must be strictly traceable to its primary document: Standard Number, Clause, Page Number, and official BIS portal reference. If confidence falls below calibrated thresholds, the system safely refuses to answer instead of guessing. php flowchart TD User User Query / Product / Standard -- Intent Intent Classifier & Exact Regex Extractor subgraph Candidate Pooling "1. Dual-Channel Candidate Pooling 50 Candidates " Intent -- |Lexical Term Frequency| BM25 "Lexical BM25 Okapi Index