All work Enterprise AI

A grounded enterprise chatbot over 2,000+ documents, drawings, video and audio

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.

Our role
Solution design, ingestion pipeline, chatbot delivery and quality evaluation
Technology
Azure OpenAI (GPT)Azure AI SearchAzure Communication ServicesWhisperRAGASSharePointPython

The challenge

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.

How it works

From SharePoint to a cited answer
Enterprise chatbot architectureFiles in SharePoint are routed by type. Text is extracted from PDFs, Excel files and drawings. Video has its audio extracted, and audio is transcribed with Azure speech-to-text or Whisper. Text and transcripts are chunked and loaded into one Azure AI Search index. At question time the chatbot retrieves passages from the index, GPT on Azure answers from them, and the answer links to its sources. RAGAS scores the answers against more than 100 expert golden questions.SourcePrepareIndexAnswerSharePointPDFExcelEngineering drawingsVideoAudiofiles are routed by typeExtract textPDF, Excel, drawingsExtract audio trackfrom videoTranscribeAzure speech-to-textor WhisperChunktext and transcriptssplit into passagessized for retrievalAzure AI Searchone index for everycontent typeUser questionRetrieve passagesbest matches from the indexGPT on Azureanswers from the passagesAnswer + source linkslinks to the original filesRAGAS evaluation100+ expert golden questions with ideal answers

Every file type is turned into text passages, indexed once, and retrieved at question time.

What we built

Ingestion from SharePoint

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.

Documents

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.

Video and audio

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.

  • Two transcription engines supported, so the choice can follow the requirements of each workload.
  • Video and audio share one path after transcription, which keeps the pipeline small.

One search index

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.

Answers with source links

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.

Measuring answer quality

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.

Deployment

The pipeline and chatbot run on Azure next to the organization's existing Microsoft estate, deployed as a production service rather than a prototype.

How it flows

  1. FetchPull files from SharePoint.
  2. RouteSend each file down the path for its type: document, video or audio.
  3. ExtractRead text from documents; extract the audio track from video.
  4. TranscribeConvert audio to text with Azure speech-to-text or Whisper.
  5. ChunkSplit text and transcripts into retrieval-sized passages.
  6. IndexLoad the chunks into Azure AI Search.
  7. Retrieve and answerFetch the best passages for a question and answer from them, with source links.
  8. EvaluateScore answers against the expert golden set with RAGAS.

What changed

  • More than 2,000 files across documents, spreadsheets, drawings, audio and video searchable through one index and one chat experience.
  • Spoken content that was previously unsearchable is now retrievable as text passages.
  • Answers are generated from the organization's own content and link back to their sources.
  • Quality measured against more than 100 expert-written golden questions using RAGAS, not judged by impression.
  • A repeatable pipeline replaces manual preparation of content for search.
  • Running in production on Azure.

Facing something similar?

Tell us what you are building and we will say plainly whether and how we can help.

Start a conversation