🎨 Prompt选择:
The PromptsSelector node is designed to efficiently manage and retrieve prompts from a structured storage system, allowing you to filter and select prompts based on specific criteria such as category, mode, and count. This node is particularly useful for AI artists who need to organize and access a large collection of prompts, enabling them to streamline their creative process by selecting the most relevant prompts for their projects. By leveraging the node's capabilities, you can easily navigate through different categories and apply various selection modes to obtain a tailored set of prompts, enhancing your workflow and creative output.
🎨 Prompt选择 Input Parameters:
category
The category parameter allows you to specify the category from which prompts should be selected. This helps in narrowing down the selection to a specific group of prompts, making it easier to manage and retrieve relevant prompts. If the specified category does not exist, the node defaults to the "root" category. This parameter is crucial for organizing prompts into meaningful groups, ensuring that you can quickly access the prompts you need.
property
The property parameter is used to define specific attributes or properties of the prompts that you want to filter by. This can include various metadata associated with the prompts, allowing for more granular control over the selection process. By specifying a property, you can ensure that only prompts matching certain criteria are retrieved, which can be particularly useful when dealing with a large and diverse set of prompts.
mode
The mode parameter determines the selection strategy for the prompts. Options include selecting the latest N prompts, a random set of N prompts, or the oldest N prompts. This parameter provides flexibility in how prompts are chosen, allowing you to tailor the selection process to your specific needs. For example, selecting the latest prompts can be useful for keeping up with recent trends, while a random selection can inspire creativity through unexpected combinations.
count
The count parameter specifies the number of prompts to be selected. It accepts integer values with a default of 10, a minimum of 1, and a maximum of 9999. This parameter controls the size of the prompt set returned by the node, enabling you to adjust the volume of prompts based on your requirements. Whether you need a small set for focused work or a larger set for broader exploration, this parameter provides the necessary control.
separator
The separator parameter defines the string used to separate multiple prompts in the output. By default, it is set to ", ". This parameter is important for formatting the output in a way that suits your needs, especially when the prompts are used in contexts where specific delimiters are required. Adjusting the separator can help in integrating the output with other tools or systems that may have specific formatting requirements.
🎨 Prompt选择 Output Parameters:
selected_prompts
The selected_prompts output parameter provides the final list of prompts that have been selected based on the input criteria. This output is crucial as it represents the filtered and formatted set of prompts ready for use in your creative projects. The selected prompts are returned as a single string, with each prompt separated by the specified separator, allowing for easy integration into various applications or further processing.
🎨 Prompt选择 Usage Tips:
- To maximize the relevance of the prompts you retrieve, ensure that you accurately specify the
categoryandpropertyparameters to match your intended use case. - Experiment with different
modesettings to discover new and inspiring prompts, especially when you are looking for creative inspiration or want to explore different themes. - Adjust the
countparameter based on the scope of your project; a smaller count can help maintain focus, while a larger count can provide a broader range of ideas.
🎨 Prompt选择 Common Errors and Solutions:
"Category not found"
- Explanation: This error occurs when the specified category does not exist in the storage system.
- Solution: Verify that the category name is correct and exists in the system. If necessary, use the default "root" category to access all prompts.
"Invalid mode selection"
- Explanation: This error arises when an unsupported mode is specified for prompt selection.
- Solution: Ensure that the mode parameter is set to one of the supported options, such as "取最新N个", "随机取N个", or "取最旧N个".
"Count out of range"
- Explanation: This error indicates that the count parameter is set outside the allowed range.
- Solution: Adjust the count parameter to be within the valid range of 1 to 9999.
