Study FAQ
How does retrieval-augmented generation ground answers in business documents?
Also asked as 2
- How does RAG use company information to answer questions?
- What happens from document retrieval to the final answer in a RAG system?
Answer
Retrieval-augmented generation (RAG) supplies retrieved context to a model at request time. In a permission-aware design, the application restricts retrieval to evidence the user may access. In a classic indexed design, a search service retrieves passages from prepared business content. The application passes selected passages, instructions, and the user’s question to the model so it can compose an answer grounded in that evidence.
For a policy assistant, the content owner first approves the sources and provides effective dates and access information. The indexing process divides the documents into searchable units, retaining context and source references. When someone asks a question, the application authenticates the user, retrieves relevant passages permitted for that user, builds the model request, and presents the response with useful references. Some supported retrieval designs query a remote source live, which changes the ingestion and freshness responsibilities.
Inspect both the returned passages and what the model says about them. A source reference lets someone check the evidence. The model can still misread an applicable rule, omit an exception, or invent an answer when the evidence is incomplete. Define how the workflow should report missing or conflicting information.
Microsoft’s RAG patterns and retrieval design · Microsoft’s grounding data design guidance
Full explanation
AB-731: Prompt Engineering, Grounding, and RAG for Business Solutions
Study guide · AB-731
Read the full explanation