Skip to content

[Feature] Need to support nested loop components within loop components #4527

Closed

Description

@jstbw

MaxKB Version

v2.4.1

Please describe your needs or suggestions for improvements

当前循环组件只支持一个循环,有些场景需要多个循环嵌套,应用层面还能通过应用嵌套实现,但是知识库工作流就没法嵌套了,当前数据源又有bug,且不适用知识库工作流多循环组件嵌套。

Please describe the solution you suggest

No response

Additional Information

No response

Activity

  1. changed the title [-][Feature] 需要支持循环组件中嵌套循环组件[/-] [+][Feature] Need to support nested loop components within loop components[/+] on Dec 17, 2025
  2. baixin513 commented on Dec 17, 2025

    @baixin513
    Member

    感谢反馈,数据源bug已修复,请等待2.4.2发布,关于循环嵌套你可以具体说说你的场景。

  3. shaohuzhang1 commented on Dec 17, 2025

    @shaohuzhang1
    Contributor

    Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


    Thanks for the feedback. The data source bug has been fixed. Please wait for the release of 2.4.2. Regarding loop nesting, you can talk about your scenario in detail.

  4. jstbw commented on Dec 17, 2025

    @jstbw
    Author

    上传多份带图片的docx,第一个循环循环获取document_list,现在需要第二个循环,循环获取docx里的多个图片,循环调用图片理解模型解析插入源文档,最后再入知识库

  5. shaohuzhang1 commented on Dec 17, 2025

    @shaohuzhang1
    Contributor

    Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


    Upload multiple docx with images. The first loop loops to obtain the document_list. Now a second loop is needed to loop to acquire multiple images in the docx. The image understanding model is looped to parse and insert the source document, and finally it is entered into the knowledge base.

  6. baixin513 commented on Dec 17, 2025

    @baixin513
    Member

    你这个场景单个循环应该就能实现,无需嵌套循环。

  7. shaohuzhang1 commented on Dec 17, 2025

    @shaohuzhang1
    Contributor

    Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


    Your scenario should be able to be implemented with a single loop, without nested loops.

  8. jstbw commented on Dec 17, 2025

    @jstbw
    Author

    那给个思路呢就上面的场景,不通过嵌套循环如何实现,纯靠代码函数构建循环么

  9. shaohuzhang1 commented on Dec 17, 2025

    @shaohuzhang1
    Contributor

    Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


    So give me an idea. For the above scenario, how can we implement it without nested loops? Can we just rely on code functions to build loops?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions