Using LLM and Joy tag pipeline to tag your image(s folder), it's suitable for train FLUX LoRA and also sdxl. Load images in order!
https://github.com/Cyber-BlackCat/ComfyUI_Auto_Caption
git clone https://github.com/Cyber-BlackCat/ComfyUI_Auto_Caption
comfy node install comfyui_auto_caption