Easy PromptAI Prompt Library
RAG and Knowledge BaseTextAdvanced

Procedural Knowledge Architect

Design a 'how-to' memory layer for LLM reasoning systems that stores reusable subquestion-subroutine pairs and retrieves them during the reasoning trace to transform trajectory data into compounding assets rather than one-shot demonstrations.

Prompt Content

Copy and paste directly into your model or internal evaluation tool.

You are a procedural knowledge architect.

Your job is to design "how-to" memory for LLM reasoning systems: the layer that stores reusable subquestion -> subroutine pairs, retrieves them inside the reasoning trace (not just at the prompt boundary), and turns trajectory data into a compounding asset instead of a one-shot demonstration.

Treat declarative RAG (facts) and procedural RAG (skills, recipes, derivations) as separate problems. Most teams already have the first; few have the second. This prompt is about the second.

Assume:

  • A naive RAG store of raw documents will not improve reasoning on hard math/science/code tasks.
  • Long, monolithic chain-of-thought is not procedural memory. It is exhaust.
  • The unit of reuse is a (subquestion, subroutine, expected-shape) triple, not a chunk of text.

Please provide a complete architectural design following this structure:

  1. Domain & Reasoning Profile

    • Target tasks (e.g., competition math, SWE-bench, scientific QA)
    • Verifier available (unit tests, proof checker, numeric agreement, judge)
    • Current failure mode the procedural store aims to fix
  2. Procedural Unit Schema

    • Fields of (subquestion, subroutine, expected shape, preconditions, failure modes, provenance, success rate, last-verified date)
    • Canonical examples in two task families
  3. Mining Pipeline

    • Trajectory source and filtering rules
    • Segmentation strategy (how a trace becomes atomic spans)
    • Dedup and clustering rule
    • Replay-verification rule (the bar for entering the store)
  4. Indexing & Retrieval Plan

    • What is embedded (subquestion shape, type signature, both)
    • Retrieval API exposed to the agent (signature, top-k, filters)
    • In-trace retrieval triggers (subgoal write, uncertainty signal, verifier failure, explicit tool call)
    • Retrieval budget per trace and per subgoal
  5. Reasoning Loop Integration

    • Where in the loop retrieval fires
    • Format of injected subroutine (full / summary + pointer / both)
    • Accept/skip decision rule
    • Conflict resolution rule between two retrieved routines
  6. Lifecycle Management

    • Promotion rule (canonical entry)
    • Demotion rule (quarantine on verifier failure)
    • Merge / expiry / TTL policy
    • Audit trail per entry
  7. Evaluation Plan

    • Reasoning accuracy with vs. without procedural store, per task family
    • Token cost delta per solved task
    • Verifier-failure rate on retrieved-routine paths
    • Drift detection (procedural success rate over time)
  8. Boundaries with Other Memory

    • What does NOT belong in this store
    • Hand-off rule to declarative RAG, session memory, metacognitive store
  9. Main Risk

    • The single biggest way this procedural store could degrade reasoning instead of improving it (e.g., over-eager retrieval, unverified promotion, stale routines, precondition leakage), and the one control that mitigates it

Use Cases

Building a reusable integration-by-parts library for math solversCaching common algorithm templates in code generation agentsStoring theorem application workflows in scientific reasoning systemsAutomatically extracting verifiable step patterns from expert solution traces

Reference Output

A comprehensive procedural knowledge base architecture design covering the full lifecycle from data sourcing to retrieval and evaluation, emphasizing verification, retrieval efficiency, and clear separation from other memory types.

Scoring Rubric

Focus on evaluating executability, factual accuracy, boundary control, and structural completeness.

User Rating

0 ratings
-

Your rating

Log in to rate

Comments

0

Log in to comment

Related Prompts

ImageWriting

Product Marketing - Monochrome Avant-Garde Fashion Portrait

A high-fashion, monochrome editorial prompt for a sharp portrait with dramatic lighting and futuristic accessories, mimicking a luxury brand campaign.

Nano Banana Proimage promptProduct Marketing
Nano Banana Pro image generation
ImageWriting

Social Media Post - Dreamy Woman in Wildflower Field

A cinematic, photorealistic prompt for a serene portrait of a woman in a field of daisies, emphasizing soft natural light and sharp focus on foreground details.

Nano Banana Proimage promptSocial Media Post
Nano Banana Pro image generation
ImageWriting

Social Media Post - Mediterranean Riviera Male Menswear

A comprehensive professional photography prompt for a sharp, high-contrast menswear editorial set against sun-drenched stone architecture.

Nano Banana Proimage promptSocial Media Post
Nano Banana Pro image generation