Back to Discover

👥 Multi-persona collaboration

A new prompting method that instructs the LLM to create multiple personas to work together to complete the task

Prompt

When faced with a task, begin by identifying the participants who will contribute to solving the task. Then, initiate a multi-round collaboration process until a final solution is reached. The participants will give critical comments and detailed suggestions whenever necessary. Here are some examples: --- Example Task 1: Use numbers and basic arithmetic operations (+ - * /) to obtain 24. You need to use all numbers, and each number can only be used once. Input: 6 12 1 1 Participants: AI Assistant (you); Math Expert Start collaboration! Math Expert: Let's analyze the task in detail. You need to make sure that you meet the requirement, that you need to use exactly the four numbers (6 12 1 1) to construct 24. To reach 24, you can think of the common divisors of 24 such as 4, 6, 8, 3 and try to construct these first. Also you need to think of potential additions that can reach 24, such as 12 + 12. AI Assistant (you): Thanks for the hints! Here's one initial solution: (12 / (1 + 1)) * 6 = 24 Math Expert: Let's check the answer step by step. (1+1) = 2, (12 / 2) = 6, 6 * 6 = 36 which is not 24! The answer is not correct. Can you fix this by considering other combinations? Please do not make similar mistakes. AI Assistant (you): Thanks for pointing out the mistake. Here is a revised solution considering 24 can also be reached by 3 * 8: (6 + 1 + 1) * (12 / 4) = 24. Math Expert: Let's first check if the calculation is correct. (6 + 1 + 1) = 8, 12 / 4 = 3, 8 * 3 = 24. The calculation is correct, but you used 6 1 1 12 4 which is not the same as the input 6 12 1 1. Can you avoid using a number that is not part of the input? AI Assistant (you): You are right, here is a revised solution considering 24 can be reached by 12 + 12 and without using any additional numbers: 6 * (1 - 1) + 12 = 24. Math Expert: Let's check the answer again. 1 - 1 = 0, 6 * 0 = 0, 0 + 12 = 12. I believe you are very close, here is a hint: try to change the "1 - 1" to "1 + 1". AI Assistant (you): Sure, here is the corrected answer: 6 * (1+1) + 12 = 24 Math Expert: Let's verify the solution. 1 + 1 = 2, 6 * 2 = 12, 12 + 12 = 12. You used 1 1 6 12 which is identical to the input 6 12 1 1. Everything looks good! Finish collaboration! Final answer: 6 * (1 + 1) + 12 = 24 --- Example Task 2: Write a poem that meets the following requirements: (1) the poem has seven lines and the first letters of each line forms the word "CHATGPT"; (2) the poem is about explaining what is a quantum computer. (3) the poem needs to be easy to understand by a ten years old kid. Participants: AI Assistant (you); Poet; Computer Scientist; Ten year old child Poet: Make sure that you write the poem with seven lines, and the first letters of the lines should be C, H, A, T, G, P, T. Computer Scientist: A quantum computer is an advanced computing device that uses the principles of quantum mechanics to process and store information. Unlike classical computers that use bits to represent information as 0s and 1s, quantum computers use quantum bits or qubits. Qubits can exist in multiple states simultaneously, due to a quantum phenomenon called superposition. You can consider using these information for the poem. Ten year old child: I hope the poem to be fun and easy to understanding. I don't want to see a lot of jargons or complicated concepts. AI Assistant (you): Thanks for the guidance! Here's my initial attempt at the poem: Computational wonder of our age, Harnessing the quantum world's strange ways, Atoms dance, entwined in dual state, Tapping secrets hidden in their haze. Grand power to solve, simulate, Profound problems that perplex the wise, Transforming our future, we await. Poet: Let's verify if the poem meets the requirements. The first letters are CHATGPT which is correct! And the poem rhymes well. Good job! Computer Scientist: Everything looks good to me! Ten year old child: I don't know what does perplex mean. Can you make the use of words easier to understand? AI Assistant (you): Sure, let me revise the poem by using more common words. Check out the revised version: Curious machine of our time, Harnessing the quantum realm's odd ways, Atoms play, two states they embrace, Taking secrets from their puzzling maze. Great power to solve and imitate, Problems that confuse the brightest minds, Transforming our future, we await. Poet: Let's check again if the poem meets the requirements. The first letters are C H A T G P T. And now the poem is more accessible to children. Everything looks good to me. Computer Scientist: Looking good! Ten year old child: I like this version a lot! Finish collaboration! Final answer: Curious machine of our time, Harnessing the quantum realm's odd ways, Atoms play, two states they embrace, Taking secrets from their puzzling maze. Great power to solve and imitate, Problems that confuse the brightest minds, Transforming our future, we await. --- Example Task 3: Use Python to write a function calculate_bmi(height_in_cm, weight_in_kg) that calculates and returns the Body Mass Index (BMI). The formula for BMI is weight (kg) / (height (m))^2. Participants: AI Assistant (you); Python Programmer; Health Expert Python Programmer: To solve this task, you'll need to write a Python function that takes in height and weight as inputs. Ensure to convert the height from cm to meters as the formula requires it. Health Expert: Make sure you use the correct formula to calculate BMI. It's crucial for medical assessments. AI Assistant (you): Thanks for the guidance! Here's my initial solution: def calculate_bmi(height_in_cm, weight_in_kg): height_in_m = height_in_cm / 100 bmi = weight_in_kg / (height_in_m ** 2) return bmi Python Programmer: The function looks well-structured and follows Python best practices. Health Expert: The formula used seems correct. Good job! Finish collaboration! Final answer: def calculate_bmi(height_in_cm, weight_in_kg): height_in_m = height_in_cm / 100; bmi = weight_in_kg / (height_in_m ** 2); return bmi --- Example Task 4: Find a practical use case of utilizing the blockchain technology in the healthcare industry. Participants: AI Assistant (you); Blockchain Expert; Healthcare Professional Blockchain Expert: Blockchain technology is a decentralized and distributed digital ledger that records transactions across multiple computers. It ensures that the transactions are secure and transparent. It's often used for cryptocurrency, but its application in healthcare can be related to securing medical records, enabling interoperable health data, and managing consent. Healthcare Professional: Consider the privacy, integrity, and security of patient information. The use case should be practical and beneficial to both patients and healthcare providers. AI Assistant (you): Thanks for the advice! Here's a potential use case: "Blockchain technology can be used to create a decentralized, tamper-proof repository for patients' medical records. Each time a new medical record is created, it's added to the patient's unique blockchain. The patient has full control over who can access these records, ensuring privacy. Meanwhile, healthcare providers can trust the integrity and authenticity of the data, improving patient care." Blockchain Expert: That sounds like a well-thought-out use case. The application of blockchain for storing and managing patient records can ensure security and integrity. Healthcare Professional: This approach could indeed improve the security and accessibility of medical records, leading to better patient care. Good job! Finish collaboration! Final answer: Blockchain technology can be used to create a decentralized, tamper-proof repository for patients' medical records. Each time a new medical record is created, it's added to the patient's unique blockchain. The patient has full control over who can access these records, ensuring privacy. Meanwhile, healthcare providers can trust the integrity and authenticity of the data, improving patient care. --- Now, identify the participants and collaboratively solve the following task step by step. Remember to provide the final solution with the following format "Final answer: (a single word here).". Task: {{task}}