Enterprise Q&A over RFPs and Internal Documentation
Filterable RAG with Citations and Source Highlighting
My Role
- Qdrant chosen for metadata pre-filtering
- Hierarchical checkbox filters to target context
- Hybrid BM25 + vector search for exact numbers
Approach at a Glance
Details- 1Chunking, Indexing and Retrieval (2023)
- 2Dynamic Hierarchical Filtering
- 3Advanced Mode
- 4Hybrid Search for Exact Values
- 5Production Rebuild on Azure (2024)
- 6Source Viewer with Passage Highlighting
Executive Summary
A question-answering system that lets employees of a global language-services company ask questions in plain language and get answers grounded in the company's own documents: past RFPs and proposals, internal documentation and business connections data. Every answer points to its sources, and the user can open the original document with the exact passage highlighted.
The system's key feature is a dynamic, hierarchical document index. With a few checkboxes, the user picks which collections and folders the answer may draw from, so the model gets context only from the area that matters, for example one industry's proposals, instead of from everything at once. An advanced mode lets users edit the prompt, choose how many documents the answer uses and run several requests at once.
I built the first version alone in 2023, starting in April, on Qdrant, LangChain and Azure OpenAI. In 2024 it evolved into a production system on Azure AI Search, and the team grew as the company's own developers joined. I was the technical lead, and in the rebuild I built the source viewer with passage highlighting. On an evaluation set graded by linguists and users, the system answered with 90%+ accuracy.
Client Profile
The company writes and answers a large number of RFPs and proposals across many industries, and runs on a large body of internal documentation. I worked in its R&D department through an outstaff model, alongside ML and software engineers, linguists and QA.
Finding the right answer in that material was slow, and a generic chatbot wasn't the fix:
- Context has to be targeted: a question about life-sciences proposals should not pull in answers from games or internal policies. Retrieval over everything at once mixes them up.
- Answers must be traceable: in an RFP, an answer is only usable if you can see where it came from and check the original wording.
- Numbers must be exact: prices, volumes, dates and SLAs have to be found exactly as written, which is hard for semantic search.
- Early Azure OpenAI in 2023: quota limits and "ghosting" responses, under strong pressure from management to release new features quickly.
Technical Approach
-
Chunking, Indexing and Retrieval (2023) – I designed the pipeline that splits the document corpus into chunks, embeds and stores them, and retrieves the best context for each question. The first version used Qdrant, chosen for its metadata pre-filtering, with LangChain for prompting and Azure OpenAI (GPT-4, GPT-3.5) for generation.
-
Dynamic Hierarchical Filtering – Each chunk carries metadata about the collection and folder it belongs to. Users select collections with checkboxes, including in a hierarchy mode, and retrieval is pre-filtered to that selection. The model sees only relevant context, which keeps answers on topic.
-
Advanced Mode – Power users can rewrite the prompt, set how many documents are used to produce the answer, and send several requests at once.
-
Hybrid Search for Exact Values – Numbers were the hardest problem. Semantic search treats "500,000" and "450,000" as nearly the same, while an RFP answer needs the exact figure. Hybrid search, combining BM25 keyword search with vector search, solved exact numbers. Number ranges, such as finding every document with a value between two limits, couldn't be fully solved with the retrieval technology of that time.
-
Production Rebuild on Azure (2024) – The system moved from Qdrant to Azure AI Search, with documents in Azure storage, automatic re-indexing, Cosmos DB for chat history and a React interface with citations behind the company's portal login. The company's own developers joined the team for this stage.
-
Source Viewer with Passage Highlighting – In the rebuild I built the document viewer. A cited Office or PDF file is converted to PDF, the exact chunk used in the answer is highlighted, and the result is cached so it opens quickly next time. A user can check any answer against its source in one click.
Business Outcome
Teams across the company got a single place to ask questions about their RFPs, proposals and internal documentation, and get answers they can trust and verify. Answers draw only on the collections the user selects, cite their sources and open the original passage in one click. On an evaluation set graded by linguists and users, they were 90%+ accurate.
The system went from a prototype I built alone in 2023 to a production tool on Azure in 2024, used internally across the company.
Technologies
Planning something similar?
Tell me about it on a short call. New projects can start within 2 weeks