Skip to content
Cloud Mechanics
Knowledge Assistant Solution iconAI Agent

Knowledge Assistant Solution

RAG assistant that answers over your documents securely

The challenge

Knowledge is spread across SharePoint, file shares, wikis and closed tickets, so people ask a colleague instead of searching. The answer depends on who you ask, new joiners take months to become useful, and any search tool that ignores source permissions is a data leak waiting to happen.

The outcome

Azure AI Document Intelligence parses the content, Azure AI Search indexes it with the source permissions attached, and Azure OpenAI answers with a citation. Retrieval is security-trimmed before generation, so people only ever see what they were already entitled to read, and unanswerable questions are logged as gaps.

At a glance

Type
ai search

Next step

Move from solution to engagement.

Build This Solution

01 — Architecture

End-to-end architecture

Content is crawled from SharePoint, file shares and wikis, parsed by Document Intelligence, chunked and embedded into a hybrid AI Search index that carries the source permissions. At query time the retrieval is security-trimmed before generation, so the assistant can only ground an answer in material the user was already allowed to read.

USEREmployee /Customerweb · Teams · portalFRONT ENDAzure Static WebAppsbranded chat UIMicrosoft Teamsin-flow assistantAPPLICATIONAzure APIManagementgateway · auth · SLAAzure ContainerAppsRAG orchestrationAI & RETRIEVALAzure AI Searchhybrid & vector indexMicrosoft FoundryAgenttools & citationsAzure OpenAImodelsanswers & embeddingsAzure AI ContentSafetygrounding guardrailsCONTENT & DATASharePoint /OneDrivesource documentsAI DocumentIntelligenceparse PDFs & tablesAzure BlobStoragechunks & artefactsGOVERNANCE & INSIGHTPermissiontrimminganswer only in scopeAzure Key Vaultsecrets & keysPower BI / Fabricusage & gap analysisDEVOPS & DELIVERYGitHubsource control & CIDockercontainer buildContainer Registryversioned imagesAssistant releasedeploy with rollback
Figure 1 — End-to-end reference architecture for a permission-aware RAG assistant on the Microsoft stack.
  • User: Employee / Customer
  • Front end: Azure Static Web Apps, Microsoft Teams
  • Application: Azure API Management, Azure Container Apps
  • AI & retrieval: Azure AI Search, Microsoft Foundry Agent, Azure OpenAI models, Azure AI Content Safety
  • Content & data: SharePoint / OneDrive, AI Document Intelligence, Azure Blob Storage
  • Governance & insight: Permission trimming, Azure Key Vault, Power BI / Fabric

02 — Workflow

Process & decision workflow

How content becomes a trustworthy answer — connect, parse, chunk, index, retrieve and answer, then branch. A grounded answer is returned with its citations; when no trusted source exists the assistant says so, logs the gap and offers a human route rather than guessing.

1ConnectSharePoint, file shares, wikis andticket systems2ParsePDFs, decks and tables turned into cleantext3ChunkSplit, embed and tag with source andpermissions4IndexHybrid keyword and vector index in AzureAI Search5RetrieveSecurity-trimmed passages fetched forthe question6AnswerGrounded response with citations andconfidenceGrounded& in scope?Path 1 · grounded answerAnswer with citationsResponse returned with links to thesourcePath 2 · no trusted sourceSay so and route onThe assistant declines, logs the gap andoffers a humanCited source openedUser verifies the passage behindthe answerKnowledge gap loggedUnanswered question routed tothe ownerCloseanswer trusted
Figure 2 — Connect → parse → chunk → index → security-trimmed retrieval → grounding branch → cited answer or honest refusal.
  1. Connect: SharePoint, file shares, wikis and ticket systems
  2. Parse: PDFs, decks and tables turned into clean text
  3. Chunk: Split, embed and tag with source and permissions
  4. Index: Hybrid keyword and vector index in Azure AI Search
  5. Retrieve: Security-trimmed passages fetched for the question
  6. Answer: Grounded response with citations and confidence
  7. Path 1 · grounded answerAnswer with citations: Response returned with links to the source
  8. Path 2 · no trusted sourceSay so and route on: The assistant declines, logs the gap and offers a human

03 — Components

Key Microsoft components

Enterprise retrieval-augmented generation is a permissions problem as much as a search problem — both are handled inside the Microsoft ecosystem.

  • Azure AI Search iconAzure AI SearchHybrid keyword and vector index with security trimming.
  • Azure OpenAI models iconAzure OpenAI modelsEmbeddings, query rewriting and grounded answer generation.
  • Microsoft Foundry Agent Service iconMicrosoft Foundry Agent ServiceRetrieval tools, citation rules and refusal behaviour.
  • Azure AI Content Safety iconAzure AI Content SafetyGuardrails against ungrounded, unsafe or off-topic answers.
  • Azure AI Document Intelligence iconAzure AI Document IntelligenceParses PDFs, decks, scans and tables into clean text.
  • Microsoft Entra permissions iconMicrosoft Entra permissionsSecurity trimming so users only retrieve what they may read.
  • Azure Functions iconAzure FunctionsChunking, embedding and incremental index refresh.
  • Azure Logic Apps iconAzure Logic AppsConnectors and scheduled crawls across content sources.
  • Azure Blob Storage iconAzure Blob StorageSource documents, chunks and extracted artefacts.
  • Azure Cosmos DB iconAzure Cosmos DBConversation history, feedback and citation records.
  • Azure Container Apps iconAzure Container AppsRetrieval orchestration API that scales with usage.
  • Azure API Management iconAzure API ManagementSecure gateway, throttling and per-application access.
  • Azure Key Vault iconAzure Key VaultConnector secrets, keys and certificate management.
  • Power BI / Microsoft Fabric iconPower BI / Microsoft FabricUsage, answer quality and knowledge-gap dashboards.

04 — AI

What the agent consumes

The capabilities behind every answer, and the line the assistant does not cross.

AI capabilities embedded in the agent

  • Document parsing
  • Semantic chunking
  • Vector embeddings
  • Hybrid retrieval
  • Query rewriting
  • Retrieval-augmented generation
  • Answer citation
  • Groundedness scoring
  • Security trimming
  • Refusal on low confidence
  • Knowledge-gap detection
  • Workflow orchestration

AI responsibility boundaries

The assistant answers only from indexed content the user is already permitted to see, and every answer carries its citation. Where no trusted source exists it says so rather than guessing, logs the gap for the content owner and offers a human route. Permissions are enforced at retrieval time, not filtered after generation.

05 — Personalization

Personalization & evolving process

The same methodology applies to every agent in the catalog. Tune the content sources, the retrieval template, the guardrails and the value model — the page structure stays identical.

Content & audience profile

Define the repositories in scope, languages, sensitivity labels, refresh cadence and who may see what. The personas are the employee, the content owner, the compliance officer and the external customer.

06 — Impact

Key outcomes & business impact

Starting targets for the value case — validate each one against the customer baseline during discovery.

  • Search time−60%Answers arrive with citations instead of a list of links.
  • Expert interruptions−40%Repeat questions are answered from the indexed source of truth.
  • OnboardingDaysNew joiners self-serve against the same trusted knowledge base.
  • Answer traceability100%Every response links to the passage and document behind it.

Illustrative improvement index

Manual baseline = 100. Illustrative targets, not a commitment — confirm against the customer baseline.

10040Time to find an answer10060Expert interruptions10045Onboarding ramp timeManual baselineAI-assisted target
  • Time to find an answer: manual baseline 100, AI-assisted target 40
  • Expert interruptions: manual baseline 100, AI-assisted target 60
  • Onboarding ramp time: manual baseline 100, AI-assisted target 45

Related & recommended

Derived automatically from our solution knowledge graph.

Ready to move from challenge to solution?

Talk to a Cloud Mechanics expert or build your solution in minutes.