Company Knowledge Assistant
RAG over 60,000 Project Documents with a Built-In Answer-Quality Review
My Role
- Review app checks answers against retrieved contexts
- One vector-store interface: Azure Search or Pinecone
- Per-user rate limiting independent of client IP
Approach at a Glance
Details- 1Document Indexing Pipeline
- 2Composable Pipelines and Vector Stores
- 3Scraping
- 4RAG Chat API
- 5Answer-Quality Review
- 6Production Hardening
Executive Summary
A knowledge assistant for a software development company with many project teams. Each team produces its own documentation, specifications and project knowledge, and finding an answer meant knowing which team had it and where. The assistant indexes that knowledge across all project teams, about 60,000 documents, and answers employees' questions with retrieval-augmented generation (RAG).
What made it trustworthy was the built-in quality loop. Alongside the assistant, we built a review application where people check answers together with the exact contexts the model retrieved, rate them and export reports. Answer quality measured this way ranged from 0.82 to 0.91, depending on the document set. The reviews showed where retrieval or the documents needed improvement.
I was the tech lead of a team of four to five engineers. I designed the architecture of the indexing pipeline, the vector stores and the APIs, set up the answer-quality review process, and took care of rate limiting and deployment. The assistant runs in production as one of the company's own products.
Client Profile
The company runs many client projects in parallel, and knowledge piles up inside each team: requirements, architecture notes, how-tos, decisions and lessons learned. When someone needs that knowledge in another team, or after people move on, it's effectively lost.
The challenges:
- Volume and spread: tens of thousands of documents in different formats, owned by different teams.
- Freshness: documents are added, changed and removed all the time, so the index has to follow.
- Trust: an assistant that answers confidently but wrongly does more harm than none, so answer quality had to be measured, not assumed.
- Shared service: many users at once, which needs protection against overload.
Technical Approach
-
Document Indexing Pipeline – An API accepts raw documents, preprocesses and chunks them in the background, indexes the chunks and records which chunks belong to which document. Deleting or replacing a document removes exactly its chunks, so the index stays in sync with the source.
-
Composable Pipelines and Vector Stores – Indexing and question answering are built as composable pipelines over a vector-store interface with implementations for Azure Cognitive Search and Pinecone, so the storage can be chosen per deployment without changing the pipelines.
-
Scraping – A scraper brings in content from web sources alongside uploaded documents.
-
RAG Chat API – Questions are answered from the retrieved chunks by an LLM, through a chat API used by the assistant's interface.
-
Answer-Quality Review – A separate Streamlit review application shows each question, the answer and the retrieved contexts. Reviewers rate the answers, and the results are exported to Excel reports for analysis. Answer quality ranged from 0.82 to 0.91.
-
Production Hardening – Rate limiting per user that doesn't depend on the client's IP, health checks, containerised deployment with Docker and API documentation.
Business Outcome
Employees can find knowledge from any project team in one place, across about 60,000 documents, instead of asking around. Because every answer can be reviewed against the contexts it came from, the team measured answer quality at 0.82 to 0.91 and knew where to improve. The assistant runs in production as one of the company's own products.
Technologies
Planning something similar?
Tell me about it on a short call. New projects can start within 2 weeks