T8 Context IR Prompt Compiler / IR提示词编译 (Advanced):
The MiniMaxH3ContextIRPromptCompilerT8Advanced node is designed to deterministically compile a reviewed Context IR (Information Retrieval) using the T8 Prompt Packet contract. This advanced node is particularly beneficial for AI artists who need to generate structured and precise prompts for video or audio content creation. By leveraging the T8 Prompt Packet, it ensures that the compiled prompts are consistent and adhere to predefined standards, making it easier to produce high-quality media outputs. The node is experimental and serves as an output node, meaning it finalizes the prompt compilation process. It is particularly useful in scenarios where the integrity of the prompt is crucial, as it prevents alterations to local paths or sampling by the provider, ensuring that the output remains true to the original context.
T8 Context IR Prompt Compiler / IR提示词编译 (Advanced) Input Parameters:
context_ir
This parameter represents the Context IR that needs to be compiled. It is a structured input that contains the necessary information for generating the prompt. The Context IR is crucial as it forms the basis of the prompt compilation process, ensuring that the output is aligned with the intended context.
prompt
The prompt parameter is a multiline string input that allows for dynamic prompts. It serves as the main text input that will be compiled into a structured prompt. This parameter is essential as it directly influences the content and direction of the compiled prompt.
backend
This parameter specifies the backend system to be used for the prompt compilation. It offers options from a predefined list of backends, with "minimax_h3" as the default. The choice of backend can affect the style and capabilities of the compiled prompt, making it an important consideration for users.
duration_seconds
This float input defines the duration of the media content in seconds. It has a default value of 5.167 seconds, with a minimum of 0.001 and a maximum of 86400.0 seconds. The duration is critical as it determines the length of the output media, impacting both the prompt's scope and the final media product.
aspect_ratio
The aspect_ratio parameter is a string input that specifies the desired aspect ratio of the media content, with "16:9" as the default. This parameter is important for ensuring that the visual output matches the intended display format, which can be crucial for video content.
dialogue
This optional multiline string input allows users to specify dialogue that should be included in the prompt. It has a default empty value. The dialogue is significant as it can add depth and context to the media content, enhancing the narrative or thematic elements.
negative_prompt
The negative_prompt parameter is an optional multiline string input that allows users to specify elements that should be avoided in the prompt. It has a default empty value. This parameter is useful for refining the prompt by excluding unwanted features or themes.
strict_exact_dialogue
This boolean input determines whether the dialogue must exactly match the Context IR's exact dialogue. It defaults to True, ensuring that the dialogue remains consistent with the original context, which is crucial for maintaining the integrity of the prompt.
cast
An optional input that allows users to specify a cast for the media content. This parameter can influence the characters or personas represented in the output, adding another layer of customization to the prompt.
sound_canvas
This optional input allows users to include a sound canvas, which can enhance the audio aspect of the media content. It provides an additional dimension to the prompt, making it more immersive and engaging.
cast_ids
An advanced optional string input that allows users to specify cast IDs. This parameter can be used to reference specific characters or elements within the prompt, providing a more detailed level of control over the output.
T8 Context IR Prompt Compiler / IR提示词编译 (Advanced) Output Parameters:
packet
The packet output contains the compiled prompt packet, which is the main result of the node's execution. It includes all the structured information necessary for generating the media content, making it a crucial component of the output.
compiled_prompt
This output provides the final compiled prompt, which is ready for use in media generation. It represents the culmination of the prompt compilation process, ensuring that the output is coherent and aligned with the original context.
negative_prompt
The negative_prompt output contains the elements that were excluded from the compiled prompt. It serves as a reference for what was intentionally omitted, providing insight into the prompt's refinement process.
audio_prompt
This output includes the audio-specific aspects of the compiled prompt, which are essential for generating audio content. It ensures that the audio elements are well-integrated into the overall prompt, enhancing the media's auditory experience.
canonical_json
The canonical_json output provides a structured JSON representation of the prompt compilation report. It includes metadata such as the schema, provenance, and packet hash, offering a comprehensive overview of the prompt's creation and ensuring transparency and traceability.
T8 Context IR Prompt Compiler / IR提示词编译 (Advanced) Usage Tips:
- Ensure that the
dialogueparameter matches the exact dialogue in the Context IR ifstrict_exact_dialogueis set toTrueto avoid errors. - Utilize the
negative_promptto refine your prompt by excluding unwanted elements, which can help in achieving a more focused output. - Experiment with different
backendoptions to see how they affect the style and capabilities of the compiled prompt, allowing for more creative flexibility.
T8 Context IR Prompt Compiler / IR提示词编译 (Advanced) Common Errors and Solutions:
dialogue must exactly match the Context IR exact_dialogue
- Explanation: This error occurs when the
dialogueinput does not match the exact dialogue specified in the Context IR, andstrict_exact_dialogueis set toTrue. - Solution: Ensure that the
dialogueinput exactly matches theexact_dialoguefield in the Context IR to resolve this error.
