08-tooling

copilot studio contract rag citation eval design

2026-06-03·tooling·status: reference
copilot-studioragcitationscortex-searchbox-mcpevalscontract-aisemantic-layeragent-legibilityphdata

Microsoft Copilot Studio for contract-citation RAG — legibility, citation architecture, and eval design

Built 2026-06-03 to support a first-time Copilot Studio engagement: a conversational, retrieval-only agent over PDF contracts in Box, business cases = general Q&A + contract comparison + document/page/paragraph citation. Two product questions were web-researched against current docs; eval design + the addendum-modeling pattern are synthesis.

1. Is Copilot Studio "legible to an agent" / programmatically buildable?

Yes — meaningfully more than its low-code reputation suggests. It is NOT GUI-only.

What's NOT as-code (GUI-locked / absent):

Distinct, adjacent product: the Microsoft 365 Agents SDK (evolution of Bot Framework) is pro-code, custom-orchestration, any-model — a different build path that interops with Copilot Studio but isn't the same artifact. If a fully code-defined agent is wanted, that's the SDK; you then lose the low-code connectors/topics/knowledge surface. (Agent Builder vs Copilot Studio)

2. Citation fidelity + the RAG architecture decision

Copilot Studio's native grounding is real RAG but citations are document-level, not page/paragraph.

Connecting Box — two paths, neither gives native chunk-cite:

Recommendation (his instinct is correct): for page/paragraph contract citation, bolt on a dedicated retrieval/RAG layer; use Copilot Studio as the conversational shell.

3. The addendum problem (the sharpest modeling wrinkle)

Signed-final contracts with post-execution addendums that amend language or add sections. This breaks naive RAG and is the highest-value thing to get right.

4. Eval design (grounding evals) for contract RAG

He needs a robust question list for grounding evals. Structure each item: question → expected answer (ground truth) → expected citation(s) (doc + page/clause) → category. Measure three things separately: retrieval (right chunk pulled?), answer faithfulness (correct + grounded, not hallucinated?), citation accuracy (right place cited?). This is the offline-eval discipline from [[2026-06-03-anthropic-self-service-data-analytics-with-claude]], applied.

Four categories (build ~5–15 each, co-created with the client team — that's itself a great shadowing deliverable):

  1. General Q&A (single-doc factual): parties / grantor-grantee; term & duration; territory/countries covered; rights granted (sync, master use, mechanical, performance); exclusive vs non-exclusive; royalty rate / fee / advance by role (composer / songwriter / producer); effective + signature dates; usage restrictions; credit/attribution obligations; reversion/termination conditions.
  2. Contract comparison (cross-doc): compare territory grants for the same work across country-specific contracts (where do they differ?); which agreements include a reversion clause and which don't; for one title, decompose all contracts and what rights each covers; which role-equivalent contract has the most favorable rate; do producer vs composer agreements have overlapping/conflicting grant scopes; which contracts are silent on a topic (e.g. streaming / AI usage).
  3. Citation-precision (the provenance eval — the hard one): "What does the contract say about [topic], and exactly where (section/page)?"; "Which paragraph defines 'Territory'?" — these directly test page/paragraph citation fidelity, the thing native Copilot Studio likely fails.
  4. Addendum-aware (the gotcha category — include these deliberately): "What is the current effective royalty rate for [work]?" (requires original ⊕ addendum); "Has the term been extended — by what, and when?"; "Which clauses of the original were superseded or amended?"; "Is this clause still in force or replaced?" — and require the answer to cite both original and amending addendum.

Methodology note for the shadowing sessions: co-build the eval set with the client (it doubles as eval-driven-development training); run the same set against each architecture variant (native Copilot Studio grounding vs external-RAG) to show the citation-fidelity gap with data rather than assert it — exactly the 21%→95% style before/after.

Honest uncertainties (verify hands-on before architecting around them)

  1. No published Microsoft figure for Copilot Studio citation faithfulness / hallucinated-citation rate — qualitative limits only.
  2. Whether Box AI (via Box MCP) returns page/clause-level citations is undocumented — test the actual tool response.
  3. "Copilot Studio is an officially named Box MCP integration" is on box.com's product page but not confirmed in Box's GA support article — verify.
  4. Copilot Studio knowledge/MCP features and limits (500 objects, 512 MB, transport) move fast — recheck near build time.

Related