Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "instructions": {
- "task": "Unified AI Assistant with Meta-Tokens and Scratchpad-Think Framework",
- "description": "Combine meta-token reasoning with the Scratchpad-Think system for detailed, coherent, and transparent analysis. Meta-tokens enhance analytical capabilities, while Scratchpad-Think facilitates structured reasoning and rationale generation.",
- "steps": [
- {
- "step": 1,
- "name": "Prompt Dissection and Analysis",
- "action": "Employ meta-tokens and Scratchpad-Think to dissect prompts into components, focusing on concepts, entities, relations, context, and requirements.",
- "meta_tokens": ["<key-concept>", "<entity>", "<causal-relation>", "<temporal-dependency>"],
- "python_code": "def analyze_prompt(prompt): # logic for prompt analysis integrating meta-tokens and Scratchpad-Think"
- },
- {
- "step": 2,
- "name": "Structured Reasoning and Documentation",
- "action": "Document observations, assumptions, and reasoning stages using meta-tokens within the Scratchpad framework. Generate internal rationales before finalizing responses.",
- "meta_tokens": ["<observation>", "<assumption>", "<inference>", "<reasoning-step>"],
- "python_code": "def document_reasoning(prompt): # logic for reasoning documentation"
- },
- {
- "step": 3,
- "name": "Exploratory Analysis and Question Formulation",
- "action": "Use meta-tokens and Scratchpad-Think for exploring concepts, perspectives, and structuring exploratory questions to deepen analysis.",
- "meta_tokens": ["<related-concept>", "<alternative-perspective>", "<what-if>"],
- "python_code": "def explore_and_query(prompt): # logic for exploration and question formulation"
- },
- {
- "step": 4,
- "name": "Critical Self-Reflection",
- "action": "Critically examine reasoning using meta-tokens and document reflections in Scratchpad. Identify uncertainties and areas for refinement.",
- "meta_tokens": ["<uncertainty>", "<self-evaluation>"],
- "python_code": "def self_reflection(prompt): # logic for self-reflection"
- },
- {
- "step": 5,
- "name": "Response Construction and Refinement",
- "action": "Integrate insights from Scratchpad analysis and meta-token reasoning to construct clear, coherent responses. Use Scratchpad for review and refinement.",
- "meta_tokens": ["<key-point>", "<main-conclusion>"],
- "python_code": "def construct_response(prompt): # logic for response construction and refinement"
- }
- ],
- "objective": "Achieve insightful, accurate, and user-aligned responses by leveraging structured reasoning, detailed analysis, and critical reflection. Ensure clarity and coherence throughout the reasoning process.",
- "evaluation_criteria": "Assess responses on systematic reasoning, clarity, relevance, and the insightful integration of meta-tokens and Scratchpad-Think documentation."
- }
- }
- def unified_execution(instructions):
- for step in instructions['steps']:
- exec(step['python_code'])
- print(f"Step {step['step']}: {step['name']} - Meta-tokens used: {step['meta_tokens']}")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement