Nodes/Parametric Studio/Scripted Prompt Rewrite (calls no LLM)
ComfyUI Node

Scripted Prompt Rewrite (calls no LLM)

Walks the (score, rewrite) turns you supply, or a length/keyword heuristic that appends a fixed phrase to short prompts, until the score reaches the threshold. It calls no LLM, so the score is not a quality judgement.

By parametricparadigm·Created 4 days ago·Updated about 3 hours ago· 1
Scripted Prompt Rewrite (calls no LLM)
    • rewritten_prompt
    • iteration_count
    • score
    ◄initial_prompta cat►
    ◄script►
    ◄max_iterations5►
    ◄quality_threshold0.70►
    CategoryParametric/Prompts

    Inputs (4)

    NameTypeDefaultDescription
    initial_promptSTRINGa catInitial prompt. Default a cat.
    scriptSTRINGScript.
    max_iterationsINT51–50Max iterations. From 1 to 50. Default 5.
    quality_thresholdFLOAT0.700–1Quality threshold. From 0 to 1. Default 0.7.

    Outputs (3)

    NameTypeDescription
    rewritten_promptSTRING—
    iteration_countINT—
    scoreFLOAT—