Nodes/comfyui_LLM_party/Large String Combine
ComfyUI Node

Large String Combine

Merge up to ten text inputs into one string

By heshengtao·Created 2 years ago·Updated 7 days ago· 2,321
Large String Combine
    • files
    is_enabletrue
    file1
    file2
    file3
    file4
    file5
    file6
    file7
    file8
    file9
    file10

    Once a workflow starts pulling in a handful of search results, a couple of loaded documents, and some intermediate LLM output, the pack's regular String Combine node runs out of slots fast - it only takes three. Large String Combine is the same idea scaled up: ten optional string inputs, one combined output.

    It sits in the combine corner of comfyui_LLM_party, right next to its smaller sibling, and exists for exactly the situation where you've got more pieces of text to assemble into a single prompt or document than three slots can hold.

    How it works

    Same as the smaller version: connect as many of the ten inputs as you actually have, leave the rest disconnected, and it concatenates whatever's connected into one output string. No formatting, no separators added automatically - just the connected inputs joined together in order.

    The inputs and outputs that matter

    • file1 through file10 - all optional STRING inputs. Despite the "file" naming (inherited from the smaller String Combine node, built originally for combining loaded file contents), these accept any string - search results, chunks of an LLM's reasoning, formatted templates, whatever you're assembling.
    • is_enable - the standard bypass toggle used across this pack.

    Output: files (STRING) - everything connected, joined into one string.

    If ten inputs is still more than you need, the plain String Combine node (three slots) is the lighter option for smaller assemblies - use whichever actually matches how many pieces you're working with, since neither adds meaningful overhead over the other.

    How to install it

    Search comfyui_LLM_party in ComfyUI Manager and install, then restart. Or clone manually:

    cd ComfyUI/custom_nodes
    git clone https://github.com/heshengtao/comfyui_LLM_party.git
    

    Run pip install -r requirements.txt from inside the pack's folder with ComfyUI's own Python, then restart ComfyUI. This node is pure string concatenation with no dependencies of its own - the heavier parts of this pack's install (LLM clients, embeddings, OCR, TTS) live in the same shared requirements.txt for other nodes, so a large install here doesn't mean this particular node is doing anything complicated. If the combined install conflicts with packages you already have, the README ships requirements_fixed.txt with pinned versions as a fallback.

    Common issues & troubleshooting

    Output has no spacing or separators between pieces. Same behavior as the smaller String Combine - this node doesn't insert anything between inputs. If you need a newline or label between sections, add it to the end of the upstream string yourself before it reaches this node.

    Only some of your inputs show up in the output. Double-check each file1file10 slot is actually wired to something; an unconnected optional input just contributes nothing, silently, rather than erroring.

    You're not sure whether order is preserved. It is - the output follows the input slot order (file1 first, file10 last), not the order you happened to connect them in the UI. If ordering matters for your prompt, wire pieces into the slot numbers deliberately rather than whichever socket was free.

    Category大模型派对(llm_party)/组合(combine)

    Inputs (11)

    NameTypeDefaultDescription
    is_enableBOOLEANtrue
    file1optSTRING
    file2optSTRING
    file3optSTRING
    file4optSTRING
    file5optSTRING
    file6optSTRING
    file7optSTRING
    file8optSTRING
    file9optSTRING
    file10optSTRING

    Outputs (1)

    NameTypeDescription
    filesSTRING