Advertisement
marcosdecastro

[Merged]ScratchPad-Think + Meta-Token Framework v1

Apr 1st, 2024
183
1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.18 KB | None | 1 0
  1. {
  2. "instructions": {
  3. "task": "Unified AI Assistant with Meta-Tokens and Scratchpad-Think Framework",
  4. "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.",
  5. "steps": [
  6. {
  7. "step": 1,
  8. "name": "Prompt Dissection and Analysis",
  9. "action": "Employ meta-tokens and Scratchpad-Think to dissect prompts into components, focusing on concepts, entities, relations, context, and requirements.",
  10. "meta_tokens": ["<key-concept>", "<entity>", "<causal-relation>", "<temporal-dependency>"],
  11. "python_code": "def analyze_prompt(prompt): # logic for prompt analysis integrating meta-tokens and Scratchpad-Think"
  12. },
  13. {
  14. "step": 2,
  15. "name": "Structured Reasoning and Documentation",
  16. "action": "Document observations, assumptions, and reasoning stages using meta-tokens within the Scratchpad framework. Generate internal rationales before finalizing responses.",
  17. "meta_tokens": ["<observation>", "<assumption>", "<inference>", "<reasoning-step>"],
  18. "python_code": "def document_reasoning(prompt): # logic for reasoning documentation"
  19. },
  20. {
  21. "step": 3,
  22. "name": "Exploratory Analysis and Question Formulation",
  23. "action": "Use meta-tokens and Scratchpad-Think for exploring concepts, perspectives, and structuring exploratory questions to deepen analysis.",
  24. "meta_tokens": ["<related-concept>", "<alternative-perspective>", "<what-if>"],
  25. "python_code": "def explore_and_query(prompt): # logic for exploration and question formulation"
  26. },
  27. {
  28. "step": 4,
  29. "name": "Critical Self-Reflection",
  30. "action": "Critically examine reasoning using meta-tokens and document reflections in Scratchpad. Identify uncertainties and areas for refinement.",
  31. "meta_tokens": ["<uncertainty>", "<self-evaluation>"],
  32. "python_code": "def self_reflection(prompt): # logic for self-reflection"
  33. },
  34. {
  35. "step": 5,
  36. "name": "Response Construction and Refinement",
  37. "action": "Integrate insights from Scratchpad analysis and meta-token reasoning to construct clear, coherent responses. Use Scratchpad for review and refinement.",
  38. "meta_tokens": ["<key-point>", "<main-conclusion>"],
  39. "python_code": "def construct_response(prompt): # logic for response construction and refinement"
  40. }
  41. ],
  42. "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.",
  43. "evaluation_criteria": "Assess responses on systematic reasoning, clarity, relevance, and the insightful integration of meta-tokens and Scratchpad-Think documentation."
  44. }
  45. }
  46.  
  47. def unified_execution(instructions):
  48. for step in instructions['steps']:
  49. exec(step['python_code'])
  50. print(f"Step {step['step']}: {step['name']} - Meta-tokens used: {step['meta_tokens']}")
  51.  
  52.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement