How can CoT be utilized in Character's Note
What is CoT (Chain of Thought)?
CoT (Chain of Thought) is a reasoning method that requires AI to think step-by-step in a clear logical sequence to derive conclusions. This approach mirrors the human thought process when dealing with complex problems: analyzing, breaking down issues, and reasoning step-by-step to reach an answer.
A complete CoT-based prompt usually consists of three parts: Instruction, Rationale, and Exemplars.
Instruction: Describes the problem and specifies the output format for the AI.
Rationale: Represents the intermediate reasoning process, which may include the solution, intermediate reasoning steps, and any relevant external knowledge.
Exemplars: Provide the AI with input-output pairs in a few-shot manner. Each exemplar includes the problem, reasoning process, and answer.
How to Apply CoT Reasoning Rules in Rochat?
In Rochat, you can leverage CoT reasoning rules in Character's Note to enhance a character's depth of thought and interactive logic. This is especially useful when addressing complex problems or multi-step decision-making scenarios. By setting CoT reasoning rules, users can ensure that characters make decisions based on a structured logical process, improving the overall intelligence and engagement of interactions.
1. Setting CoT Reasoning Rules for Characters
You can set reasoning rules in character prompts to ensure that characters respond to complex problems with specific reasoning steps. For example:
2. Applying CoT Reasoning Rules in Context
In specific scenarios, characters can use CoT reasoning rules for detailed analysis. For instance, {char} is a young swordsman whose mission is to defeat a legendary dragon threatening the safety of the kingdom. After a long journey, {char} is prepared for the final challenge, but the dragon's lair is hidden in a deep forest filled with traps and unknown dangers.
Before entering the perilous forest, {char} must decide: venture into the dragon's lair immediately, wait for a better opportunity, or seek additional help. This decision is critical to {char}’s fate and the future of the kingdom. Using CoT reasoning rules, you can guide {char}’s thought process as follows:
3. Enhancing Logical Reasoning for Characters
To enable characters to think and analyze problems more deeply, you can further enhance their reasoning by adding additional layers of thought, making their actions more consistent with the logic of complex scenarios.
Scenario: At the entrance of a dangerous ancient ruin, {char} must decide whether to enter. For example:
4. Combining CoT with Emotional Decision-Making
You can also combine CoT reasoning rules with a character’s emotional settings to enrich the interaction experience. For example, when a character faces emotional conflicts or dilemmas, they can analyze and decide based on CoT reasoning rules:
Recommended CoT Template for Efficient Customization
The template begins with <thinking
and ends with />
. It outlines the steps the character needs to consider before replying. When used, the character processes the thinking phase, which remains invisible to the user, before transitioning to roleplay.
Yes, we often place the CoT thought process inside < >
tags. This makes it invisible to the player but still effective for the model. As the creator, you can view the original message by clicking the message box to test the model’s reply and confirm that the CoT process meets expectations.
Last updated