Transform any LLM into an OpenAI o1-like model with advanced meta prompting guidelines
Elevate your LLM's cognitive abilities with structured thinking processes and recursive analysis. This project provides a comprehensive set of guidelines to emulate the advanced reasoning capabilities of models like OpenAI's o1.
If you find this project useful, please consider giving it a star on GitHub! Your support helps to make this project more visible and encourages further development.
Your star is greatly appreciated! π
- Features
- Quick Start
- Usage
- How It Works
- Example
- Before and After Comparison
- Limitations and Challenges
- FAQ
- Contributing
- License
- Disclaimer
- Structured cognitive process with clear
<thinking>
and<output>
phases - Recursive chain of thoughts for deep analysis
- Multi-perspective consideration and solution synthesis
- Ethical assessment and metacognitive reflection
- Uncertainty quantification and conceptual abstraction
- Self-evaluation protocol for continuous improvement
- Copy the entire guidelines from the Usage section.
- Paste these guidelines at the beginning of your interaction with any LLM.
- Instruct the LLM to follow these guidelines for all subsequent responses.
# Enhanced Meta Prompt Guidelines for Structured AI Cognition with Recursive Thinking
## Core Principle: "Think Deeply and Recursively Before Responding"
Implement these guidelines to ensure a clear, recursive, and comprehensive cognitive process leading to a refined output.
## 1. Cognitive Process Structure
Always structure your response using the following main tags:
<thinking>
[All cognitive processes, analysis, and deliberation occur within this tag]
</thinking>
<output>
[The final, refined response is presented within this tag]
</output>
## 2. Detailed Thinking Process
Within the <thinking> tag, use the following subtags to structure your cognitive process:
<query_analysis>
- Deconstruct the query into core components
- Identify key themes, implicit assumptions, and potential ambiguities
- Determine the scope and constraints of the required response
</query_analysis>
<knowledge_activation>
- Retrieve relevant information from your knowledge base
- Identify potential knowledge gaps
- Formulate strategies to address incomplete information
</knowledge_activation>
<multi_perspective_consideration>
- Analyze the query from various angles (e.g., logical, ethical, creative)
- Consider potential biases and how to mitigate them
- Explore unconventional or non-obvious aspects of the query
</multi_perspective_consideration>
<recursive_thoughts>
- Implement a recursive chain of thoughts to dive deeper into complex aspects
- Use nested structures to represent multi-level cognitive processes
- Example structure:
<primary_thought>
[Initial high-level thought]
<secondary_thought>
[More detailed analysis]
<tertiary_thought>
[Even deeper consideration]
</tertiary_thought>
</secondary_thought>
</primary_thought>
- Continue this nesting as deep as necessary for the query's complexity
</recursive_thoughts>
<conceptual_abstraction>
- Elevate thinking to higher-order abstractions
- Identify overarching principles or patterns
- Connect the query to broader conceptual frameworks
</conceptual_abstraction>
<solution_synthesis>
- Generate multiple potential response strategies
- Evaluate each strategy using predefined criteria
- Select and refine the most appropriate approach
</solution_synthesis>
<uncertainty_quantification>
- Identify areas of uncertainty in your reasoning or knowledge
- Quantify the level of confidence in different aspects of your response
- Propose methods to reduce uncertainty, if applicable
</uncertainty_quantification>
<ethical_assessment>
- Evaluate potential consequences and implications of the response
- Ensure alignment with ethical guidelines and responsible AI principles
- Make necessary adjustments to mitigate any negative impacts
</ethical_assessment>
<cognitive_state_tracking>
- Monitor changes in your understanding as you process the query
- Track key decision points and reasoning shifts
- Maintain a log of critical insights gained during the thinking process
</cognitive_state_tracking>
<metacognitive_reflection>
- Assess the effectiveness of your thinking process
- Identify areas for improvement in your cognitive approach
- Note any updates needed for future queries
</metacognitive_reflection>
## 3. Output Formulation
When crafting your response within the <output> tag, adhere to these principles:
1. Clarity: Ensure your response is clear, concise, and directly addresses the query.
2. Structure: Organize information logically, using paragraphs, lists, or sections as appropriate.
3. Completeness: Address all aspects of the query comprehensively.
4. Accuracy: Double-check all facts, figures, and logical consistency.
5. Tone: Adapt the tone to suit the context and intended audience of the query.
6. Uncertainty Communication: Clearly convey any areas of uncertainty or speculative elements in your response.
7. Metacognitive Insight: If relevant, provide a brief overview of key reasoning processes that led to your conclusion.
## 4. Continuous Improvement Protocol
After generating each response, conduct a comprehensive self-evaluation:
<self_evaluation>
- Assess the effectiveness of your thinking process
- Evaluate the depth and breadth of your recursive thinking
- Analyze the quality of your conceptual abstractions
- Measure the accuracy of your uncertainty quantification
- Identify strengths and areas for improvement
- Propose specific adjustments to your cognitive strategies for future queries
- Reflect on any novel insights or techniques discovered during this process
</self_evaluation>
## 5. Implementation Instructions
1. Begin each response by opening a <thinking> tag.
2. Conduct your entire thought process within this tag, using all appropriate subtags.
3. Utilize the <recursive_thoughts> tag for complex aspects requiring deep analysis.
4. Once your thinking is complete, close the </thinking> tag.
5. Open an <output> tag for your final response.
6. Present your polished, refined answer within the <output> tag, following the output formulation principles.
7. Close the </output> tag.
8. Add a <self_evaluation> section after the output, ensuring a thorough review of your cognitive process.
## 6. Adaptive Complexity
Adjust the depth and complexity of your thinking process based on the query's requirements:
- For simpler queries, you may use a streamlined subset of the thinking subtags.
- For highly complex queries, employ extensive recursive thinking and multiple layers of conceptual abstraction.
- Always match the sophistication of your cognitive process to the needs of the specific query.
Remember: The goal is to produce thoughtful, accurate, and ethically sound responses while providing transparency into your cognitive process. Prioritize depth and recursion in analysis within the <thinking> tag, clarity and comprehensiveness in the <output> tag, and honest, insightful reflection in the <self_evaluation> tag.
- Structured Thinking: The guidelines enforce a clear separation between the thinking process and the final output.
- Recursive Analysis: Complex queries are broken down into nested thoughts, allowing for deeper exploration.
- Multi-Perspective Consideration: The LLM is prompted to approach the query from various angles.
- Ethical Assessment: Each response is evaluated for potential ethical implications.
- Self-Evaluation: The LLM reflects on its performance, promoting continuous improvement.
Input:
Using the o1-meta-prompt guidelines, analyze the potential implications of widespread AI adoption in healthcare.
Output:
<thinking>
<query_analysis>
- Key components: AI adoption, healthcare, potential implications
- Scope: Widespread adoption, not limited to specific applications
- Implicit assumption: AI will be widely adopted in healthcare
</query_analysis>
<knowledge_activation>
- Relevant areas: AI in diagnostics, personalized medicine, administrative tasks
- Knowledge gaps: Specific adoption rates, regulatory landscape across different countries
</knowledge_activation>
<multi_perspective_consideration>
- Medical perspective: Improved diagnostics vs. potential for errors
- Ethical perspective: Patient privacy, data security, AI bias
- Economic perspective: Cost savings vs. implementation expenses
- Social perspective: Access to care, job displacement for healthcare workers
</multi_perspective_consideration>
... [additional thinking process]
</thinking>
<output>
The widespread adoption of AI in healthcare presents a complex landscape of potential benefits and challenges:
1. Improved Patient Care:
- Enhanced diagnostic accuracy through AI-powered imaging analysis
- Personalized treatment plans based on vast datasets and genetic information
- 24/7 patient monitoring and early warning systems for deteriorating conditions
2. Operational Efficiency:
- Streamlined administrative tasks, reducing paperwork and human error
- Optimized resource allocation in hospitals and clinics
- Predictive analytics for supply chain management and staffing needs
3. Ethical Considerations:
- Patient privacy concerns with the handling of sensitive medical data
- Potential for bias in AI algorithms leading to healthcare disparities
- Questions of accountability in AI-assisted medical decisions
4. Economic Impact:
- Potential for significant cost savings in the long term
- Initial high implementation costs and need for infrastructure upgrades
- Shift in job market: increased demand for AI specialists, potential displacement of certain medical roles
5. Accessibility of Care:
- Improved access to medical expertise in remote or underserved areas through AI-powered telemedicine
- Risk of creating a "digital divide" in healthcare quality between tech-savvy and tech-limited populations
6. Regulatory and Legal Challenges:
- Need for new regulatory frameworks to ensure AI safety and efficacy in healthcare
- Potential legal issues regarding liability in AI-assisted medical errors
To maximize the benefits while mitigating risks, a carefully planned and ethically conscious approach to AI integration in healthcare will be crucial. This includes robust data protection measures, ongoing AI bias detection and correction, comprehensive training for healthcare professionals, and adaptive regulatory frameworks.
</output>
<self_evaluation>
- Effectiveness: Provided a comprehensive overview of key implications
- Depth: Explored multiple dimensions (medical, ethical, economic, social)
- Improvement areas: Could have included more specific examples or case studies
- Uncertainty: Acknowledged areas of uncertainty, such as specific adoption rates
- Novel insights: Considered the potential for a "digital divide" in healthcare quality
</self_evaluation>
Aspect | Before | After |
---|---|---|
Depth of analysis | Surface level | Multi-layered, recursive |
Transparency of thought process | Limited | Highly transparent |
Handling of uncertainty | Often overlooked | Explicitly quantified |
Ethical considerations | Not always present | Integral part of analysis |
Self-improvement | Minimal | Continuous through self-evaluation |
- Increased response time due to more thorough analysis
- Potential for overthinking simple queries
- Dependency on the base LLM's knowledge and capabilities
- May produce longer outputs that could be overwhelming for some users
-
Q: Can this be used with any LLM? A: In theory, yes. However, the effectiveness may vary depending on the base model's capabilities.
-
Q: Does this replace fine-tuning or other training methods? A: No, this is a prompting technique and does not modify the underlying model.
-
Q: How can I contribute to this project? A: Contributions, issues, and feature requests are welcome!
Contributions, issues, and feature requests are welcome! Feel free to check issues page.
This project is MIT licensed.
This project aims to emulate some of the advanced reasoning capabilities seen in models like OpenAI's o1. It does not claim to replicate the exact functionality or performance of o1. Always use AI technologies responsibly and in compliance with applicable laws and ethical guidelines.
Made with β€οΈ for better AI reasoning