A retrieval-augmented chatbot on Azure that answers questions from a company's own documents, spreadsheets, engineering drawings, videos and audio, fed by an automated SharePoint pipeline and scored against expert-written golden questions.
A large organization kept years of institutional knowledge in SharePoint: process and policy PDFs, spreadsheets, engineering drawings, recorded walkthroughs and training videos, and audio recordings. More than 2,000 files in all, and most of it effectively invisible. Keyword search cannot look inside a recording, and nobody watches an hour of video to find one answer.
The goal was a chatbot that answers from the company's own material rather than from a general model's memory, so every response is tied to content the organization already trusts and can be checked against its source. That meant solving the less visible problem first: getting mixed-format content out of SharePoint and into a form a retrieval system can use. It also meant being able to prove the answers were good, not just assert it.
Every file type is turned into text passages, indexed once, and retrieved at question time.
We built a pipeline that connects to SharePoint, fetches the files and routes each one by type, so the same process handles documents, spreadsheets, drawings and media without anyone sorting content by hand.
Text is extracted from each PDF and split into chunks sized for retrieval. Chunking matters: it lets a question be matched to the specific passage that answers it instead of to a whole file.
For video, the audio track is extracted first. Audio is then transcribed to text using either Azure Communication Services speech-to-text or the Whisper model. The transcript is chunked the same way as document text, so a spoken explanation becomes as searchable as a written paragraph.
Chunks from every source type are loaded into an Azure AI Search index. The index is the single retrieval layer the chatbot queries, so adding a new content type means adding an extraction step, not changing the chatbot.
At question time the chatbot retrieves the most relevant chunks from the index and builds its answer from them using GPT models on Azure. Every answer comes with links to the sources it was built from, so a reader can open the original file and check.
We did not rely on spot checks. Subject-matter experts prepared a golden set of more than 100 questions, each with the ideal source and the ideal answer. We scored the chatbot against it using the RAGAS evaluation framework, which measures retrieval and answer quality separately.
Separating the two tells you where a bad answer came from: the retrieval step fetched the wrong passage, or the model misused the right one. That makes tuning a measured exercise rather than guesswork, and gives a baseline to re-run after every change.
The pipeline and chatbot run on Azure next to the organization's existing Microsoft estate, deployed as a production service rather than a prototype.
Tell us what you are building and we will say plainly whether and how we can help.
Start a conversation