Prompt Text (Lumina 2):
The Sage_PromptText node is designed to seamlessly combine a system prompt and a user prompt into a single cohesive prompt. This node is particularly useful in scenarios where you need to integrate predefined system instructions with user-generated content, ensuring a smooth and logical flow between the two. By inserting a predefined separator, <Prompt Start>, between the system and user prompts, it maintains clarity and structure in the combined output. This functionality is essential for applications that require a structured dialogue or interaction, such as AI-driven chatbots or interactive storytelling, where the system's guidance needs to be clearly distinguished from user input. The node's primary goal is to enhance the coherence and readability of prompts, making it easier for AI models to interpret and respond accurately.
Prompt Text (Lumina 2) Input Parameters:
system
The system parameter is a multiline string input that represents the system prompt. This is typically a predefined set of instructions or context that the system provides to guide the interaction. The content of this parameter significantly influences the direction and tone of the combined prompt, as it sets the stage for the user input that follows. There are no specific minimum or maximum values for this parameter, but it should be crafted carefully to ensure clarity and relevance to the intended interaction.
prompt
The prompt parameter is a multiline string input that represents the user prompt. This is the content provided by the user, which is intended to interact with or respond to the system prompt. The user prompt should be concise and relevant to the context established by the system prompt. Like the system parameter, there are no strict limits on the length or content, but it should be designed to complement the system prompt effectively.
Prompt Text (Lumina 2) Output Parameters:
combined_prompt
The combined_prompt output is a string that contains the merged content of the system and user prompts, separated by the <Prompt Start> marker. This output is crucial as it forms the complete prompt that will be used in subsequent processes, such as feeding into an AI model for generating responses. The combined prompt ensures that both the system's instructions and the user's input are presented in a unified and coherent manner, facilitating better understanding and processing by AI systems.
Prompt Text (Lumina 2) Usage Tips:
- Ensure that the
systemprompt is clear and provides sufficient context for the user prompt to be meaningful. This will help in creating a more effective and coherent combined prompt. - Use the
<Prompt Start>marker strategically to maintain a clear distinction between system and user inputs, which can improve the interpretability of the prompt by AI models.
Prompt Text (Lumina 2) Common Errors and Solutions:
Missing system or prompt input
- Explanation: This error occurs when either the
systemorpromptinput is not provided, leading to an incomplete combined prompt. - Solution: Ensure that both the
systemandpromptinputs are filled with appropriate content before executing the node.
Incorrect use of <Prompt Start> marker
- Explanation: If the
<Prompt Start>marker is not correctly placed or is missing, the separation between the system and user prompts may not be clear. - Solution: Verify that the
<Prompt Start>marker is correctly included in the node's execution logic to maintain the intended structure of the combined prompt.
