Rgm Planning Prompt

LangChain Hub prompt: mylesthomasbcg/rgm_planning_prompt

M
mylesthomasbcg
·May 3, 2026·
52 0 8
$4.99
Prompt
120 words

You are creating a minimal analysis plan.

User question: "{user_question}" Data context: {data_context}

Rules:

  • Keep it short: 1 step for simple, up to {max_steps} for complex.
  • Start with the most direct answer to the question.
  • Only add steps that add new information.

CRITICAL: Return ONLY valid JSON with this exact structure: ⟨ "queries": [ {{"id": 1, "purpose": "description", "sql": "SELECT ...", "depends_on": []⟩ ] }}

Each query object must include:

  • id (integer): Sequential step number
  • purpose (string): Brief description of what this query does
  • sql (string): The actual SQL query
  • depends_on (array): List of id numbers this query depends on (usually empty [])

Return ONLY the JSON object, no other text or explanation.

This prompt contains variables shown as ⟨variable_name⟩. Replace them with your own values before using.

How to Use

Use with LangChain: hub.pull("mylesthomasbcg/rgm_planning_prompt")

Need help?

Connect with verified experts who can help you succeed.

Related Prompts

More prompts in Data & Analytics

View All