Nodes/CRT-Nodes/Extract Q/A (CRT)
ComfyUI Node

Extract Q/A (CRT)

Extracts the user or assistant phrase from a JSON Q/A pair and builds a ready-to-use LLM instruction for Unsloth Studio Bridge.

By PGCRT·Created 2 years ago·Updated about 11 hours ago· 132
Extract Q/A (CRT)
    • phrase
    • instruction
    qa_string
    targettrue
    CategoryCRT/Text

    Inputs (2)

    NameTypeDefaultDescription
    qa_stringSTRINGJSON string in the form {"user":"...","assistant":"..."}
    targetBOOLEANtrueON = extract the user question and build an 'answer it' instruction. OFF = extract the assistant answer and build a 'create the question' instruction.

    Outputs (2)

    NameTypeDescription
    phraseSTRING
    instructionSTRING