Prompt Assembler:
The Prompt Assembler node is designed to help you construct complex prompts by combining multiple segments with varying strengths. This node is particularly useful for AI artists who want to create nuanced and detailed prompts for text generation or other AI-driven tasks. By allowing you to specify different strengths for pre, main, and post prompts, the Prompt Assembler provides a flexible way to emphasize certain parts of your prompt, ensuring that the generated output aligns closely with your creative vision. This capability is essential for fine-tuning the influence of each segment, making it a powerful tool for crafting sophisticated and targeted prompts.
Prompt Assembler Input Parameters:
pre_strength
This parameter represents the influence or weight of the pre-prompt segment in the overall assembled prompt. It is a floating-point number, with a default value of 1.0, indicating full strength. Adjusting this value allows you to control how much emphasis is placed on the pre-prompt, with lower values reducing its impact.
pre_prompt
The pre_prompt is a string input that contains the initial segment of your prompt. This part is typically used to set the stage or context for the main prompt. By default, it is an empty string, and you can fill it with any text that you want to precede the main content.
main_strength
Similar to pre_strength, this parameter controls the influence of the main prompt segment. It is a floating-point number with a default value of 1.0. Adjusting this value allows you to fine-tune the prominence of the main prompt in the assembled output, ensuring it receives the desired level of attention.
main_prompt
The main_prompt is the core segment of your prompt, typically containing the most critical information or instructions. It is a string input with a default value of an empty string. This is where you place the primary content that you want the AI to focus on.
post_strength
This parameter determines the influence of the post-prompt segment, similar to the other strength parameters. It is a floating-point number with a default value of 1.0. By adjusting this value, you can control how much emphasis is placed on the post-prompt, which usually serves as a concluding or supplementary part of the prompt.
post_prompt
The post_prompt is a string input that contains the final segment of your prompt. It is used to add additional context or instructions that follow the main content. By default, it is an empty string, and you can customize it to include any text that you want to append to the main prompt.
Prompt Assembler Output Parameters:
prompt
The output parameter prompt is a string that represents the fully assembled prompt. It combines the pre, main, and post prompts, each adjusted by their respective strengths, into a single cohesive prompt. This output is crucial for generating text or other AI-driven outputs that require a structured and weighted input.
Prompt Assembler Usage Tips:
- Experiment with different strength values to see how they affect the emphasis of each prompt segment in the final output.
- Use the pre_prompt to set the context and the post_prompt to provide additional instructions or conclusions, ensuring a well-rounded prompt.
- Keep your main_prompt concise and focused, as it typically carries the most weight in the assembled prompt.
Prompt Assembler Common Errors and Solutions:
Empty Prompt Segments
- Explanation: If any of the prompt segments (pre, main, or post) are left empty, they will be ignored in the final assembled prompt.
- Solution: Ensure that each segment contains meaningful content if you want it to be included in the final prompt.
Incorrect Strength Values
- Explanation: Using non-numeric or out-of-range values for strength parameters can lead to unexpected behavior.
- Solution: Always use numeric values between 0.0 and 1.0 for strength parameters to ensure proper weighting of prompt segments.
