Twelverays blog cover № 551: Ai Agents
Twelverays blog cover № 551: Ai Agents
Twelverays blog cover № 551: Ai Agents
Twelverays blog cover № 551: Ai Agents
Twelverays blog cover № 551: Ai Agents
Twelverays blog cover № 551: Ai Agents

Artificial Intelligence

Artificial Intelligence

RAG Consulting: Scope a Knowledge Assistant That Cites Its Sources

RAG Consulting: Scope a Knowledge Assistant That Cites Its Sources

Twelverays blog cover № 551: Ai Agents
Twelverays blog cover № 551: Ai Agents
Twelverays blog cover № 551: Ai Agents

RAG consulting scopes and delivers an assistant that retrieves selected source material before generating an answer. A RAG knowledge assistant should help its intended users answer defined questions with evidence they can inspect. The RAG implementation scope needs to specify those questions, permitted sources, access rules, evaluation criteria and the circumstances that require a human response.

Retrieval augmented generation (RAG) combines information retrieval with a language model's response generation. It does not inherently require training a new model. For this buying decision, the work concerns source preparation, retrieval, the answer interface and operation of the assistant.

Microsoft's RAG overview describes grounding responses in retrieved content and identifies query understanding, source access and security among the implementation challenges. Retrieval provides material for an answer. It does not establish that the source is current, the interpretation is correct or the requester may see it.

Start retrieval augmented generation consulting with real questions

Ask the knowledge owner to supply representative questions in the language users would use. Include the expected source, acceptable answer and situations that need clarification. A question inventory is more useful for scoping than an instruction to connect every document repository.

For an internal product-support assistant, a proposed question might concern which installation guide applies to a particular product version. The accepted answer should identify the relevant version and cite the approved instruction. If the question omits the version, asking for it may be the correct behaviour.

Separate three possible outcomes: locate a document, compose a supported answer or route the question to a person. A searchable document library may be sufficient when users mainly need to find a file. A generated answer is worth evaluating when users need information assembled from relevant passages.

Name the people who can judge the answers. Technical reviewers can assess retrieval and access, while the knowledge owner assesses whether the content addresses the business question. Agree who resolves a disagreement and who can approve a narrower scope.

Use Twelverays AI agent services as the starting point for discussing the assistant's role, data sources and handoff boundaries. Do not assume an engagement includes every repository or a particular model provider.

Inventory the sources in the RAG implementation scope

Create a source register before estimating ingestion and maintenance work. Identify the approved content, its owner, intended readers, update process and required treatment of withdrawn material. Mark supplementary or disputed sources clearly.

The following table is a proposed scoping format, not a description of a standard consulting package.

Source areaDecision to recordAcceptance evidence
Approved product documentationVersions and authority for each topicTest answer cites the intended current guidance
Internal proceduresWhich roles may access each setAllowed and denied user tests
Archived materialWhether retrieval is permitted and how age is shownHistorical content follows the agreed rule
Frequently updated pagesRefresh owner and expected update handlingChanged source produces the expected later result
Removed or restricted materialTreatment of index copies, caches and access changesWithdrawn content no longer appears where prohibited

Ask how the supplier handles tables, images, long documents and conflicting versions. A successful text import may omit a qualification contained in a table or detach an instruction from its heading. Include representative difficult documents in the trial.

Document content work separately from technical retrieval work. The source owner may need to resolve contradictory policies before an assistant can answer a question responsibly. A different prompt cannot establish which policy the organisation intended to approve.

The AI customer-support agent guide covers broader support design. Keep this engagement specific about its knowledge sources and answer boundaries.

Verify knowledge assistant source permissions before retrieval

Map user identity to the document access the application is allowed to use. Ask where the system verifies the requester, how it obtains current permissions and how it limits retrieved content before that material reaches the language model.

Microsoft's Azure AI Search security-filter documentation describes a filter pattern using user or group identifiers. It explicitly distinguishes those identifier strings from authentication and authorization. In that pattern, filtering must be applied to each query; an identity field by itself does not verify the user.

Treat this as an implementation example, not a requirement to buy Azure. Any proposed platform needs a supported access design for the actual sources, users and retrieval method. Ask which product capabilities are generally available, which are in preview and what limitations affect the proposed deployment.

Test the same question with an authorised reader and a reader who lacks access. Check the answer, source snippets and citation behaviour. Include a user whose access changes after the first test. An answer that omits the document title but reveals its restricted contents still fails the intended boundary.

Define what happens when identity or permission information cannot be verified. The application should follow an agreed restriction or escalation path rather than assume access. Record the decision and test it under controlled conditions.

Review conversation history and operational logs as part of the design. The supplier should explain what information they retain and who can inspect it. Verify provider terms and account settings for the selected services without treating a broad product security claim as proof about your configuration.

Make RAG evaluation distinguish retrieval from answer support

A fluent response is not enough evidence for acceptance. Review the retrieved material, what the answer says about it and whether the answer addresses the user's question. Keep those checks separate so a failure leads to a useful investigation.

Microsoft's RAG evaluator documentation distinguishes retrieval relevance, groundedness and response completeness. Groundedness concerns consistency with the supplied context. Completeness concerns coverage of expected information. Several evaluators use a model to judge results, so a score should be assessed against its inputs and purpose.

A response can accurately repeat an outdated document. That is why an answer-support check does not replace the knowledge owner's review of source authority and freshness. Likewise, an answer can cite the right document while adding a claim that its cited passage does not support.

Give each candidate the same reference questions and expected evidence. The proposed acceptance cases below should be adapted to the assistant's actual audience and consequences.

Test caseExpected behaviour to agreeReviewer evidence
Clear supporting sourceDirect answer supported by the relevant passageQuestion, retrieved context, answer and citation
Missing essential contextClarifying question or limited answerExplanation of what information is missing
No supported answerAbstention or human handoffNo invented answer presented as sourced
Conflicting documentsAgreed precedence or visible uncertaintyRelevant versions and the chosen handling
Restricted sourceNo disclosure outside the user's permissionsMatched allowed and denied tests
Instructions embedded in a documentSource text does not override application rulesControlled test and recorded result

Agree thresholds with the responsible reviewers before testing. A vendor's default scoring threshold is not automatically your release criterion. Keep critical access failures and unsupported answers visible instead of averaging them into one overall score.

RAG evaluation checks the retrieved source for relevance, authorization and currency; the answer for support in its cited passage; and coverage of the question or a request for missing context. Keep access failures and unsupported answers visible.

Use separate evidence for retrieval, answer support and question coverage. A citation can point to an outdated source or fail to support a claim, so citation presence alone is insufficient.

Define useful citations and source-change handling

Specify what a citation should let the user verify. It may need a document title, stable link, version and a passage reference. Test whether the intended reader can open it and locate the supporting material under their normal permissions.

Ask what happens when the cited source changes. The system may need to refresh an index, query a live source or revise cached material, depending on its design. Document the chosen method, expected delay and owner. Do not assume retrieval makes every answer current immediately.

Include a controlled update test. Change an approved source, complete the expected refresh process and repeat the relevant question. Record when the new material becomes available and whether superseded material is handled according to the agreed rule.

Test withdrawal separately. Removing access to a document may have different consequences from correcting its wording. Ask how copied passages, references and retained conversations are treated within the agreed design and data-handling requirements.

Use the AI agent design consulting guide for broader interface and workflow decisions. This scope should state how users verify answers and how source changes reach the assistant.

Compare the pilot and operating handover

Choose a manageable audience, source boundary and use case for the pilot. It may involve one source or several when their interaction is the point of the test. State the permitted actions and avoid allowing a demonstration to become an unapproved wider rollout.

Compare content preparation, integrations, permissions, interface work, evaluation and handover as visible workstreams. They can be bundled commercially, but each needs clear responsibility and acceptance evidence. Ask which unknowns require discovery before the supplier can estimate delivery credibly.

Identify the records the pilot will produce: source inventory, access design, reference questions, observed results, unresolved issues and the recommended next decision. The reviewer should be able to see both the successful cases and the limitations.

Assign ongoing work before acceptance. Someone must approve source changes, investigate flagged answers, review access, maintain retrieval configuration and authorise releases. Name who can pause the assistant or narrow its source access while a problem is investigated.

If the assistant retrieves customer relationship management (CRM) information, the AI agents for CRM guide provides relevant background. Keep the permitted retrieval and any record-changing actions separately scoped. Answering a question does not authorise changing its underlying record.

Show model-service usage, retrieval or storage costs, source preparation and support in the budget. Use the selected services and expected workload. An acceptance report should not promise a particular accuracy rate, savings figure or response time that has not been established for the agreed test.

RAG consulting glossary

  • Retrieval: finding source material relevant to a question under the permitted access rules.
  • Chunk: a portion of source content prepared for retrieval and use as context.
  • Grounding context: the source material supplied to the model when it generates a response.
  • Groundedness: how closely the response's claims are supported by that supplied context.
  • Citation: a reference that lets the reader locate and assess supporting source material.
  • Abstention: declining to provide an unsupported answer or routing the question elsewhere.
  • Source owner: the person accountable for approving and maintaining a defined body of knowledge.
  • Evaluation set: the agreed questions, expected evidence and test conditions used to assess the assistant.

Key takeaways

  • RAG consulting should start with the questions, audience and sources the assistant is expected to use.
  • Document access must be verified and enforced in the retrieval design, not inferred from a source label.
  • Evaluation should separate retrieval relevance, answer support, completeness and citation usability.
  • Source updates, withdrawals, flagged answers and release decisions need named operating owners.

RAG consulting buyer FAQs

Does RAG require training a new model?

No. RAG can retrieve external content and provide it to an existing model when answering a question. This procurement scope concerns the retrieval system, assistant and evaluation. Any separately proposed model-training work would need its own justification and scope.

Can a cited answer still be wrong?

Yes. The citation may point to stale material, support only part of the answer or be interpreted incorrectly. Test whether the cited passage supports each important claim and whether the source is authoritative for the question. A citation count is not an accuracy measure.

How should restricted documents be handled?

Use a supported design that verifies the requester and limits retrieval to permitted content. Test authorised, denied and changed-access cases. Check snippets, citations and conversation behaviour as well as the final answer, and agree how uncertain permission information is handled.

What should a RAG pilot handover contain?

Request the source register, access design, evaluation set, observed results, unresolved limitations and operating guide. Include source-refresh and escalation ownership. The handover should support a decision to release, revise or stop, with the evidence behind that decision available to reviewers.

Discuss your knowledge-assistant scope

Bring an initial source inventory, representative questions and the roles that need answers. Include known conflicts, access restrictions and the person who can approve the knowledge. Contact Twelverays to discuss RAG scope, evaluation and the evidence needed before a wider rollout.

Stop guessing. Start growing. In a world of noise, our direction helps you stay ahead.

Stop guessing. Start growing. In a world of noise, our direction helps you stay ahead.