T8 Prompt Inspector (Local, Non-blocking):
The T8PromptInspector is a utility node designed to perform local deterministic checks on the structure of prompts without relying on external language models. Its primary function is to analyze and inspect prompts to ensure they meet specific criteria or standards, such as language, shot count, and instrumental requirements. This node is particularly beneficial for users who need to validate prompts in a controlled environment, as it returns the original prompt unchanged and does not engage with any language model, ensuring privacy and security. By providing a structured analysis, the T8PromptInspector helps users refine their prompts for better clarity and effectiveness in various applications.
T8 Prompt Inspector (Local, Non-blocking) Input Parameters:
prompt
This parameter represents the text prompt that you want to inspect. It is a required input and should be provided as a multiline string. The prompt serves as the primary subject for the inspection process, and its content will be analyzed based on the other input parameters.
prompt_family
The prompt_family parameter allows you to specify the category or type of the prompt. It offers options defined in FAMILY_OPTIONS, with a default setting of FAMILY_AUTO. This parameter helps tailor the inspection process to the specific characteristics of the prompt family, ensuring more accurate and relevant checks.
expected_shot_count
This parameter defines the anticipated number of shots or segments within the prompt. It provides options from SHOT_OPTIONS, with a default value of "AUTO". By setting this parameter, you can guide the inspection process to verify if the prompt aligns with the expected shot count, which is crucial for tasks requiring precise segmentation.
expected_language
The expected_language parameter specifies the language in which the prompt is expected to be written. It offers options from LANGUAGE_OPTIONS, with a default of "AUTO". This parameter ensures that the prompt is inspected for language consistency, which is essential for multilingual applications.
instrumental
This parameter indicates whether the prompt is purely instrumental or contains other elements. It provides options from INSTRUMENTAL_OPTIONS, with a default of "AUTO". By setting this parameter, you can ensure that the prompt meets specific instrumental requirements, which is particularly useful in music-related applications.
task_intent
The task_intent parameter is an optional input that allows you to specify the intended purpose or goal of the task associated with the prompt. It is a string input that can be left empty if not needed. This parameter helps provide context for the inspection process, potentially influencing the checks performed on the prompt.
duration_seconds
This parameter specifies the target duration for the prompt in seconds, with a range from 0 to 900 and a default value of 0, which indicates "AUTO". By setting this parameter, you can ensure that the prompt aligns with the desired duration, which is important for time-sensitive applications.
T8 Prompt Inspector (Local, Non-blocking) Output Parameters:
original_prompt
The original_prompt output returns the prompt exactly as it was inputted, without any modifications. This output is crucial for verifying that the inspection process does not alter the original content, maintaining the integrity of the prompt.
warnings_json
This output provides a JSON-formatted string containing any warnings or issues identified during the inspection process. It is essential for understanding potential problems with the prompt, allowing users to make necessary adjustments to improve its quality and effectiveness.
summary
The summary output offers a concise overview of the inspection results, highlighting key findings and insights. This output is valuable for quickly assessing the prompt's compliance with the specified criteria and identifying areas for improvement.
T8 Prompt Inspector (Local, Non-blocking) Usage Tips:
- Ensure that the
promptinput is clear and well-structured to facilitate accurate inspection results. - Utilize the
task_intentparameter to provide additional context for the inspection, which can enhance the relevance of the checks performed.
T8 Prompt Inspector (Local, Non-blocking) Common Errors and Solutions:
Invalid prompt format
- Explanation: The prompt input may not be formatted correctly, leading to inspection errors.
- Solution: Ensure that the prompt is provided as a multiline string and adheres to any specific formatting requirements.
Unsupported language option
- Explanation: The
expected_languageparameter may contain a value not supported by the node. - Solution: Verify that the language option is selected from the available
LANGUAGE_OPTIONSand adjust if necessary.
