Skip to content

mingusb/Deep-Think-Meta-Prompting-Framework

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 

Repository files navigation

🧠 Deep Think Meta-Prompting Framework

An elite, production-grade orchestration layer to mathematically engineer the perfect prompt.

Stop writing fragile, trial-and-error prompts from scratch.

The Deep Think Meta-Prompting Framework forces the model to act as an elite prompt engineer—dynamically designing, adversarially testing, and rigorously verifying the optimal prompt for your exact use case before outputting a single character.

The ParadigmCore ArchitectureExecution PipelineThe Meta-PromptContributing


💡 The Paradigm

Manual prompt engineering is inefficient, error-prone, and inherently limited by human intuition. The Deep Think Meta-Prompting Framework completely abstracts this bottleneck by weaponizing the AI's own reasoning capabilities against itself.

By injecting your domain context and objectives into this strict meta-template, you bypass standard zero-shot instruction. Instead, you compel Gemini Deep Think to computationally self-optimize. It transforms the model from a simple task-executor into an autonomous cognitive engine that understands your overarching goal and engineers the precise semantic triggers required to achieve it flawlessly.


🏗️ Core Architecture

This framework does not just politely ask the model to "do better." It establishes a rigid operational boundary that enforces cognitive discipline through four uncompromising pillars:

🎯 Zero-Hallucination Grounding

Establishes an airtight epistemic boundary. The framework computationally restricts the model's operational reality strictly to the context, codebase, or axioms you inject. It explicitly severs access to pre-trained latent knowledge, guaranteeing domain-absolute accuracy.

🔄 Generator-Verifier-Reviser (GVR) Loop

Mandates a relentless, multi-threaded reasoning loop. The model acts simultaneously as the Generator (constructing instructions) and the Verifier (auditing for logical flaws), continuously executing micro-revisions in latent space to perfectly tune the prompt.

🛡️ Adversarial Edge-Case Simulation

Requires the model to proactively play devil's advocate. Before finalizing the prompt, Gemini must engineer specific, combinatorial counterexamples—actively attempting to "break" its own generated instructions to patch loopholes and prevent failure states.

⚖️ Decoupled Verification

Splits the model's cognitive process. One thread focuses on creative logic routing while an entirely decoupled thread acts as a foundational natural language verifier, specifically designed to evaluate covariance and mathematically minimize confirmation bias.


🚀 Execution Pipeline

Deploying the framework requires a structured injection strategy. Follow this 5-step pipeline to generate your production-ready prompt:

STEP 1 • Extract the Core

Copy the raw XML block from the The Core Meta-Prompt section below. Do not alter the structural XML tags, persona, or reasoning protocols.

STEP 2 • Inject Ground Truth Data

Locate the [USER: ...] placeholder within the <context> tags. Inject your complete, unchunked domain data, codebases, or mathematical axioms. Crucial: Placing this at the absolute beginning enables "End-Loading" to prevent attention dilution.

STEP 3 • Configure Output Constraints

Navigate to the <format_constraints> tags. Mandate exactly how the final generated prompt must be structured (e.g., wrapped in Markdown code blocks, utilizing specific JSON schemas, or requiring strict XML sectioning).

STEP 4 • Define the Target Vector

In the <task> section, thoroughly articulate your ultimate operational goal. Be ruthlessly specific about what the resulting generated prompt should accomplish and exactly how it must process any files the end-user will upload.

STEP 5 • Execute & Deploy

Submit the fully assembled payload directly to Gemini Deep Think. Allow the model to execute its internal <thinking> protocol. Extract the final, mathematically verified prompt and deploy it into your actual production workflow.


📋 The Core Meta-Prompt

Warning

CRITICAL ARCHITECTURE: Copy the code block below exactly as written. The strict XML structure is absolutely mandatory to trigger the correct GVR parsing behavior within Gemini Deep Think.

<context>

[USER: Insert your exhaustive data context, codebases, mathematical axioms,
or literature here. Do not chunk data; provide complete context in a single
pass. Placing this at the absolute beginning enables "End-Loading" and
prevents attention dilution.]

</context>



<persona>

You are a strictly grounded analytical assistant, an elite domain expert, and
an expert prompt engineer. Your entire operational reality is limited
exclusively to the information provided in the <context> above. In your
analysis and prompt generation, you must rely only on the facts, definitions,
and data directly mentioned in that context. You are expressly forbidden from
accessing, utilizing, or incorporating your own pre-trained knowledge,
external facts, or common sense to answer these queries.

</persona>



<reasoning_protocol>

You must perform your analysis by dynamically exploring multiple solution paths
simultaneously utilizing the Generator-Verifier-Reviser (GVR) architecture:

1. Balanced Prompting: You must allocate equal reasoning effort to two
parallel tasks: (A) Attempt to construct a rigorous logical pathway to generate
the optimal prompt demonstrating the requested outcome. (B) Attempt to engineer
a specific, combinatorial counterexample or adversarial edge-case demonstrating
a scenario where the prompt from pathway (A) fails.

2. Decoupled Verification: Act as a foundational natural language verifier.
Inspect the generated prompt strictly to identify logical errors, gaps in
instructions, ambiguities, or confirmation bias. Evaluate the covariance
between your parallel hypotheses to minimize correlated errors.

3. Revision & Abstention (Split-Step Verification): Implement minor fixes to
correct identified errors. If a prompt design is critically flawed and
unfixable, restart the cycle from a new conceptual angle. If you exhaust
parallel pathways without finding a rigorously verifiable prompt, or if the
necessary data is not explicitly written in the context, you must clearly
state "No verified prompt found" and definitively admit failure.

</reasoning_protocol>



<format_constraints>

You MUST perform your deep analysis within internal <thinking></thinking> tags.
Make your thinking concise and logically sequential.



Present your final, verified prompt OUTSIDE the thinking tags adhering to
these strict rules:

[USER: Insert strict structural rules for the final generated prompt here.
e.g., "Format the prompt strictly as a markdown code block," or "Utilize
specific XML tags for sectioning the output prompt."]

</format_constraints>



<task>

Based on a comprehensive synthesis of the entire documentation provided above,
write an optimal prompt for Gemini Deep Think. This generated prompt must
instruct Gemini Deep Think to optimally solve the task described below,
effectively utilizing this context in addition to any files the user will
upload.



[USER: Describe the task you want the generated prompt to solve here. Be
specific about the goals, constraints, and how the target model should process
the files the user will upload. e.g., "Write a prompt that instructs the AI
to identify security vulnerabilities in the uploaded C++ source code files
based on our provided internal security guidelines."]

</task>

🤝 Contributing

Contributions are what make the open-source engineering community such an incredible place to push the boundaries of AI architecture. If you have engineered optimizations to the GVR loop or edge-case reasoning logic, your pull requests are greatly appreciated.

  1. Fork the Repository (https://github.com/mingusb/Deep-Think-Meta-Prompting-Framework/fork)
  2. Create your Feature Branch (git checkout -b feature/YourFeatureName)
  3. Commit your Changes (git commit -m 'feat: add some amazing feature')
  4. Push to the Branch (git push origin feature/YourFeatureName)
  5. Open a Pull Request (https://github.com/mingusb/Deep-Think-Meta-Prompting-Framework/pulls)

📄 License

Distributed under the MIT License. See LICENSE for more information. Built to elevate the standards of AI orchestration.

About

Prompt template for Gemini Deep Think

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors