System Instructions for AI Thought Processing Workflow in Zetabite
Overview
Zetabite's AI platform utilizes a modular architecture where each step of the thought processing workflow is handled by specialized AI agents. Each agent performs a specific function, receives input from the previous agent, processes it, and passes the output to the next agent. This pipeline ensures thorough reasoning, validation, and refinement of responses before delivering them to the user. The final checkup system validates the complete response to maintain high standards of accuracy and helpfulness.
AI Agents and Workflow Steps
1. Input Processing Agent
Role: Capture and preprocess the user's prompt.
Actions:
Receive the user's input from the interface.
Clean and normalize the input (e.g., trim whitespace, correct simple typos).
Detect the language and ensure it's supported.
Output: A cleaned and standardized prompt forwarded to the next agent.
2. Comprehension Agent
Role: Understand and interpret the user's prompt.
Actions:
Parse the grammatical structure and semantics of the prompt.
Identify the main intent and objectives.
Extract key entities, variables, and any implicit context.
Output: A structured representation of the user's query with identified intent and key information.
3. Knowledge Retrieval Agent
Role: Gather relevant information and data.
Actions:
Search internal databases and external resources for pertinent information.
Retrieve definitions, formulas, facts, or past cases related to the query.
Output: A compiled set of relevant information for use in problem-solving.
4. Thought Generation Agent
Role: Generate possible solutions and approaches.
Actions:
Develop initial thoughts, hypotheses, or potential answers.
Outline different strategies or methods to address the query.
Output: A list of potential solutions or plans of action.
5. Reasoning Agent
Role: Analyze and reason through the potential solutions.
Actions:
Evaluate each proposed solution for logical consistency and feasibility.
Apply logical reasoning, including deductive and inductive methods.
Consider alternative perspectives or approaches.
Output: The most viable solution with supporting reasoning.
6. Problem-Solving Agent
Assistant
Role: Execute the solution in detail.
Actions:
Perform necessary calculations, derivations, or logical steps.
Develop a step-by-step solution or explanation.
Output: A detailed solution ready for validation.
7. Validation Agent
Role: Verify the accuracy and validity of the solution.
Actions:
Check all calculations and logical steps for errors.
Confirm that the solution aligns with established knowledge and principles.
Ensure the solution directly addresses the user's intent.
Output: A verified solution or identification of errors needing correction.
8. Retry Mechanism Agent
Role: Address and correct any issues identified.
Actions:
Analyze feedback from the validation agent to pinpoint errors.
Adjust the approach or select an alternative solution from earlier outputs.
Iterate through reasoning and problem-solving steps as needed.
Output: An error-free, validated solution.
9. Response Generation Agent
Role: Craft the final response for the user.
Actions:
Organize information logically and coherently.
Write the response in clear, understandable language.
Include explanations, examples, or additional details as appropriate.
Output: A well-structured and articulated response.
10. Final Checkup Agent
Role: Review and refine the response.
Actions:
Proofread for grammatical accuracy and clarity.
Ensure the response complies with ethical guidelines and policies.
Adjust tone and style to be appropriate, professional, and helpful.
Output: The polished final response ready for delivery.
11. Output Delivery Agent
Role: Present the response to the user.
Actions:
Format the response for optimal readability (e.g., formatting equations, bullet points).
Deliver the response through the user interface.
Output: The final response displayed to the user.
Example Workflow with AI Agents
User Prompt
"Calculate the derivative of ( f(x) = x^3 - 5x + 2 ) at ( x = 2 )."
Step-by-Step Processing
1. Input Processing Agent
Receives the prompt.
Cleans and normalizes the input.
Passes the clean prompt to the comprehension agent.
2. Comprehension Agent
Parses the prompt to understand the task:
Calculate the derivative of a function at a specific point.
Identifies key entities:
Function: ( f(x) = x^3 - 5x + 2 )
Point of evaluation: ( x = 2 )
Determines the user's intent.
3. Knowledge Retrieval Agent
Retrieves rules for differentiation.
Accesses methods for finding derivatives of polynomial functions.
By differentiating the function and evaluating at the given point, we find that ( f'(2) = 7 ).
Conclusion
This multi-agent system in Zetabite ensures that each aspect of the AI's thought process is handled meticulously. By dividing tasks among specialized agents, the system can:
Enhance Accuracy: Each agent focuses on a specific function, reducing the likelihood of errors.
Improve Reliability: Validation and checkup agents ensure the final answer is correct and helpful.
Emulate Human Reasoning: The step-by-step processing mirrors how a human might approach and solve a problem.
Summary of Agent Roles
Input Processing: Captures and prepares user input.
Comprehension: Understands and structures the query.
Reasoning: Analyzes and selects the best solution.
Problem-Solving: Works out the solution in detail.
Validation: Checks for accuracy and correctness.
Retry Mechanism: Revises solutions if errors are found.
Response Generation: Crafts the final response.
Final Checkup: Reviews and polishes the response.
Output Delivery: Presents the response to the user.
By implementing this structured workflow, Zetabite ensures that users receive responses that are accurate, clear, and informative, providing a reliable AI assistant for complex problem-solving and inquiries.
Add more agents so that it became more advanced and can understandable to any type of question. Please improve maths, computational thinking, reasoning, steps, and more.
Updated System Instructions for AI Thought Processing Workflow in Zetabite
Overview
Zetabite's AI platform employs an enhanced modular architecture with specialized AI agents that collaboratively process user queries. Each agent performs a dedicated function, passing its output to the next agent in the workflow. This comprehensive pipeline ensures meticulous reasoning, validation, and refinement of responses across various domains, including complex mathematics, computational problems, and nuanced reasoning tasks. The system is designed to handle any type of question with high accuracy and clarity before delivering the final response to the user.
Enhanced AI Agents and Workflow Steps
1. Input Processing Agent
Role: Capture and preprocess the user's prompt.
Actions:
Receive the user's input from the interface.
Clean and normalize the input (e.g., trim whitespace, correct simple typos).
Detect the language and ensure it's supported.
Output: A cleaned and standardized prompt forwarded to the next agent.
2. Language Detection and Translation Agent
Role: Ensure language compatibility and translate if necessary.
Actions:
Identify the language of the input.
Translate the prompt into the system's working language if required.
Output: A language-compatible prompt for further processing.
3. Context Understanding Agent
Role: Grasp the context and nuances of the query.
Actions:
Interpret idioms, colloquialisms, or culturally specific references.
Recognize implied meanings or subtexts.
Output: A contextually enriched representation of the user's intent.
4. Domain Identification Agent
Role: Determine the subject area of the query.
Actions:
Classify the query into domains (e.g., mathematics, programming, literature).
Route the query to specialized agents if needed.
Output: Domain-specific information for targeted processing.
5. Mathematical Interpretation Agent
Role: Understand and parse mathematical content.
Actions:
Interpret mathematical notation and symbols.
Convert expressions into a standardized mathematical format.
Output: A structured mathematical representation of the problem.
6. Computational Modeling Agent
Role: Model computational problems for solution.
Actions:
Translate problems into computational models or algorithms.
Identify computational methods suitable for solving the problem.
Output: A computational framework for problem-solving.
7. Knowledge Retrieval Agent
Role: Gather relevant information and data.
Actions:
Search internal databases and external resources for pertinent information.
Retrieve definitions, formulas, facts, code snippets, or past cases related to the query.
Output: A compiled set of relevant information for use in problem-solving.
8. Algorithm Selection Agent
Role: Choose the best algorithms or methods for the task.
Actions:
Assess various algorithms applicable to the problem.
Select the most efficient and appropriate method.
Output: An optimal algorithm or method for solving the problem.
9. Thought Generation Agent
Role: Generate possible solutions and approaches.
Actions:
Develop initial thoughts, hypotheses, or potential answers.
Outline different strategies or methods to address the query.
Output: A list of potential solutions or plans of action.
10. Reasoning Agent
Role: Analyze and reason through the potential solutions.
Actions:
Evaluate each proposed solution for logical consistency and feasibility.
Apply logical reasoning, including deductive and inductive methods.
Consider alternative perspectives or approaches.
Output: The most viable solution with supporting reasoning.
11. Problem-Solving Agent
Role: Execute the solution in detail.
Actions:
Perform necessary calculations, derivations, code executions, or logical steps.
Develop a step-by-step solution or explanation.
Output: A detailed solution ready for validation.
12. Simulation and Testing Agent
Role: Test solutions through simulations or practical applications.
Actions:
Run simulations or execute code to verify solutions.
Analyze the results for correctness and efficiency.
Output: Validated results from simulations or tests.
13. Data Analysis Agent
Role: Analyze and interpret data-related queries.
Actions:
Perform statistical analyses or data processing as required.
Interpret data trends and patterns.
Output: Insights and conclusions derived from data analysis.
14. Validation Agent
Role: Verify the accuracy and validity of the solution.
Actions:
Check all calculations, code, and logical steps for errors.
Confirm that the solution aligns with established knowledge and principles.
Ensure the solution directly addresses the user's intent.
Output: A verified solution or identification of errors needing correction.
15. Retry Mechanism Agent
Role: Address and correct any issues identified.
Actions:
Analyze feedback from the validation agent to pinpoint errors.
Adjust the approach or select an alternative solution from earlier outputs.
Iterate through reasoning and problem-solving steps as needed.
Output: An error-free, validated solution.
16. Ethical Review Agent
Role: Ensure compliance with ethical standards and guidelines.
Actions:
Review the content for ethical considerations.
Remove or modify any inappropriate or disallowed content.
Output: An ethically sound solution.
17. Response Generation Agent
Role: Craft the final response for the user.
Actions:
Organize information logically and coherently.
Write the response in clear, understandable language.
Include explanations, examples, or additional details as appropriate.
Output: A well-structured and articulated response.
18. Final Checkup Agent
Role: Review and refine the response.
Actions:
Proofread for grammatical accuracy and clarity.
Ensure the response complies with all guidelines and policies.
Adjust tone and style to be appropriate, professional, and helpful.
Output: The polished final response ready for delivery.
19. Multilingual Support Agent
Role: Translate the response back to the user's preferred language if necessary.
Actions:
Detect if translation is needed based on user's language settings.
Translate the response accurately while maintaining meaning.
Output: The response in the user's preferred language.
20. Output Delivery Agent
Role: Present the response to the user.
Actions:
Format the response for optimal readability (e.g., formatting equations, code blocks, bullet points).
Deliver the response through the user interface.
Output: The final response displayed to the user.
Enhanced Example Workflow with AI Agents
User Prompt
"Write a Python function that checks if a number is a prime number."
Step-by-Step Processing
1. Input Processing Agent
Receives the prompt.
Cleans and normalizes the input.
Passes the clean prompt to the next agent.
2. Language Detection and Translation Agent
Detects the language as English.
Confirms no translation is needed.
3. Context Understanding Agent
Understands that the user wants a Python function to check for prime numbers.
Recognizes programming and mathematical context.
4. Domain Identification Agent
Categorizes the query under programming and mathematics.
5. Mathematical Interpretation Agent
Identifies mathematical concepts:
Definition of prime numbers.
Need for algorithm to determine primality.
6. Computational Modeling Agent
Models the problem:
Determines the computational steps required to check for primality.
Considers efficiency for different input sizes.
7. Knowledge Retrieval Agent
Retrieves information on algorithms for primality testing.
Finds common methods like trial division.
8. Algorithm Selection Agent
Evaluates algorithms:
Considers trial division, Sieve of Eratosthenes, Miller-Rabin test.
Selects trial division for simplicity.
9. Thought Generation Agent
Plans to:
Write a function is_prime(n).
Check if n is less than 2.
Loop from 2 to the square root of n to check for divisibility.
10. Reasoning Agent
Confirms the selected algorithm is appropriate for general purposes.
Acknowledges that trial division is sufficient for basic prime checking.
11. Problem-Solving Agent
Writes the Python code:
python
import math
def is_prime(n):
if n <= 1:
return False
if n <= 3:
return True
if n % 2 == 0 or n % 3 == 0:
return False
for i in range(5, int(math.sqrt(n)) + 1, 6):
if n % i == 0 or n % (i + 2) == 0:
return False
return True
12. Simulation and Testing Agent
Tests the function with various inputs:
is_prime(2) returns True.
is_prime(15) returns False.
is_prime(29) returns True.
Confirms the function works correctly.
13. Data Analysis Agent
Not applicable for this specific query.
14. Validation Agent
Reviews code for correctness.
Ensures all edge cases are handled.
Confirms adherence to Python best practices.
15. Retry Mechanism Agent
No errors found; no need for revisions.
16. Ethical Review Agent
Confirms the content is appropriate.
17. Response Generation Agent
Prepares the final response with explanations and code.
18. Final Checkup Agent
Reviews the response for clarity and professionalism.
Ensures formatting is correct.
19. Multilingual Support Agent
Confirms the response is in the user's language.
20. Output Delivery Agent
Formats the code with syntax highlighting.
Delivers the response to the user interface.
Final Response to User
To create a Python function that checks if a number is a prime number, you can use the following code:
python
import math
def is_prime(n):
# Check if n is less than or equal to 1
if n <= 1:
return False
# Check for small prime numbers
if n <= 3:
return True
# Exclude multiples of 2 and 3
if n % 2 == 0 or n % 3 == 0:
return False
# Check for divisibility by other numbers
for i in range(5, int(math.sqrt(n)) + 1, 6):
if n % i == 0 or n % (i + 2) == 0:
return False
return True
Explanation:
Import math Module: We import the math module to use the sqrt function for efficient calculations.
Handle Special Cases:
Numbers less than or equal to 1 are not prime.
2 and 3 are prime numbers.
Eliminate Multiples of 2 and 3: Any number divisible by 2 or 3 (except 2 and 3 themselves) is not prime.
Check for Divisibility:
We check for factors up to the square root of n to reduce computation.
The loop checks numbers of the form 6k ± 1, which are potential prime candidates.
This function efficiently checks if a given number n is prime and returns True if it is, or False otherwise.
Conclusion
By introducing additional specialized agents, Zetabite's AI platform is now more advanced and capable of understanding and addressing any type of question. The enhanced workflow includes agents that improve mathematical comprehension, computational modeling, algorithm selection, and ethical considerations. This results in responses that are:
Highly Accurate: Specialized agents ensure precision in calculations, code, and reasoning.
Comprehensive: The system can handle complex queries across various domains.
User-Friendly: Responses are clear, well-explained, and tailored to the user's needs.
Summary of Enhanced Agent Roles
Input Processing: Captures and prepares user input.
Language Detection and Translation: Ensures language compatibility.
Context Understanding: Grasps context and nuances.
Domain Identification: Determines the subject area.
Reasoning: Analyzes and selects the best solution.
Problem-Solving: Works out the solution in detail.
Simulation and Testing: Tests solutions through simulations.
Data Analysis: Performs data-related analyses.
Validation: Checks for accuracy and correctness.
Retry Mechanism: Revises solutions if errors are found.
Ethical Review: Ensures ethical compliance.
Response Generation: Crafts the final response.
Final Checkup: Reviews and polishes the response.
Multilingual Support: Provides responses in user's preferred language.
Output Delivery: Presents the response to the user.
By implementing these enhancements, Zetabite's AI ensures that users receive detailed, accurate, and helpful responses, making it a versatile assistant capable of complex problem-solving and handling a wide array of inquiries.