File Combine
Merge up to three file references into one output
- files
This is about as plain as a node gets, and that's the point: a lot of this pack's nodes only take one file/path/content input at a time, but a real workflow often has several file references it needs to hand off together - several documents into a knowledge-base node, several attachments into a message node. File Combine is the fan-in step that makes that possible without daisy-chaining string-concat nodes yourself.
What it does
Three optional string inputs - file1, file2, file3 - and is_enable, this pack's standard bypass toggle. Connect however many of the three you actually have (none of them are required, so a single connected input works fine too), and the node produces one output, files, combining whatever you gave it.
That's genuinely the entire node. There's no filtering, no validation that the strings you passed in are real file paths versus arbitrary text - it takes whatever type of string content you wire in and merges it, which is what makes it useful for more than just literal file paths: file content itself, URLs, or any other string data that needs to travel through this pack's graph as one combined value instead of several separate wires.
Where it fits
Reach for this whenever a downstream node in this pack expects a single files/content input but what you actually have is scattered across two or three separate upstream sources - feeding multiple document excerpts into this pack's Word Vector Search node's file_content input is a natural fit, as is bundling a few file paths before a node that only exposes one file-path field. If you need more than three inputs, this pack's Large File Combine node does the same job with ten slots instead of three.
Installing it
Ships with the pack:
- ComfyUI Manager: search "comfyui_LLM_party", install, restart.
- Manual:
cd ComfyUI/custom_nodes && git clone https://github.com/heshengtao/comfyui_LLM_party, thenpip install -r requirements.txtfrom inside the pack folder using ComfyUI's Python, then restart.
Nothing else needed - this is a pure string-combining utility with no external dependencies of its own.
Common issues & troubleshooting
Output looks jumbled or hard to parse back apart downstream. Since this node just merges whatever strings it's given, if the downstream node you're feeding expects a specific delimiter or format between combined entries, check that format matches what this node actually produces rather than assuming a particular separator - with three genuinely different possible input sources, it's easy to end up with content you didn't expect to be adjacent.
Only need one or two of the three inputs. That's fine, all three are optional - connect what you have and leave the rest unconnected. There's no requirement to fill all three slots before this node does anything useful.
Hit the three-input limit. That's exactly what Large File Combine (file_combine_plus) exists for - same node, same behavior, just ten input slots instead of three, for workflows that genuinely need to merge more sources than this one handles.
Inputs (4)
| Name | Type | Default | Description |
|---|---|---|---|
| is_enable | BOOLEAN | true | — |
| file1opt | STRING | — | |
| file2opt | STRING | — | |
| file3opt | STRING | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| files | STRING | — |