@kai-nakamuraai-agents-rag-context-packTextÖffentlichAktualisiert am 14.06.2026

AI Agents prompt that turns source material into a reliable retrieval design and returns source policy, chunking plan, retrieval prompt, citation rules, and freshness checks.

52Stars0Fork182Kopien

Prompt

Vorschau

Artefakte

1 Artefakte

Example Output: AI Agents RAG Context Pack

Inputs used

  • Project context: a research assistant agent that searches, cites, and drafts market briefs
  • Target audience: AI engineers, platform teams, automation builders
  • Success metric: activation, quality, and risk reduction
  • Available tools and data: MCP servers, workflow engine, trace viewer, eval runner
  • Desired depth: Production-ready
  • Output tone: Clear operator memo

Generated Result

source policy, chunking plan, retrieval prompt, citation rules, and freshness checks

Source inventory

Rank sources by authority before retrieval. Chunk around task intent rather than page boundaries, and require every answer to cite the exact source segment used for tool schemas.

Chunking strategy

Rank sources by authority before retrieval. Chunk around task intent rather than page boundaries, and require every answer to cite the exact source segment used for user tasks.

Retrieval query plan

Create at least 12 golden tasks: 6 normal cases, 3 edge cases, and 3 adversarial cases targeting stale memory. A passing result must cite the evidence source and state confidence.

Citation contract

Rank sources by authority before retrieval. Chunk around task intent rather than page boundaries, and require every answer to cite the exact source segment used for eval traces.

Failure handling

Use tool schemas as evidence, apply the constraint "observable decision points", and explicitly note how the plan reduces tool overuse. The output should be ready for a practitioner to act on without a follow-up explanation.

Evaluation set

Create at least 12 golden tasks: 6 normal cases, 3 edge cases, and 3 adversarial cases targeting unbounded loops. A passing result must cite the evidence source and state confidence.

Recommended Decision

Proceed with a narrow pilot focused on tool schemas and user tasks. Treat tool overuse as the primary launch blocker. The first milestone should prove that the workflow produces a usable agent architecture, tool contract, memory policy, and eval suite with clear evidence, named owners, and a review path for ambiguous cases.

Expected quality checks

  • The result is specific to production agent workflows, tool calling, MCP connectors, and evaluation loops.
  • It includes the required sections: Source inventory, Chunking strategy, Retrieval query plan, Citation contract, Failure handling, Evaluation set.
  • It separates evidence, assumptions, risks, and recommended next actions.
  • It includes practical verification steps, not only generic advice.
  • It names the most important failure mode for this domain: tool overuse.

Reuse note

Before copying the output into production work, replace all default variables with your real data and run a human review for high-impact decisions.

README

README.md

AI Agents: RAG Context Pack

Use this prompt when you need source policy, chunking plan, retrieval prompt, citation rules, and freshness checks for production agent workflows, tool calling, MCP connectors, and evaluation loops.

Best for

  • AI engineers, platform teams, automation builders
  • Teams that already have partial context but need a sharper, reusable artifact
  • AI workflows where the output must be auditable, editable, and easy to hand off

How to use

  1. Replace the variables in the prompt with your real project context.
  2. Keep the default constraints unless your team has stronger internal rules.
  3. Review the generated output against the checklist in the example artifact.

Design notes

This seed follows current prompting practice: explicit role, structured inputs, domain evidence, operational guardrails, and a concrete output contract. It is written in English for international PromptHub users.