Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] The input of the knowledge base search node supports array type to enable independent search of multiple entities at once. #2710

Open
xxyj6450 opened this issue Mar 27, 2025 · 3 comments
Assignees

Comments

@xxyj6450
Copy link

MaxKB Version

1.10.2

Please describe your needs or suggestions for improvements

需求场景1:

一个提问中往往涉及多个实体,这些实体可以被识别并拆分出来,但当它们合并在一起以文本形式进行知识库检索时往往匹配不到正确的段落。因此需要将识别出来的这些实体分别进行同时检索,再将检索结果合并,以完成整个知识库检索。

需求场景2

一个复杂的问题被大模型拆分为多个子问题,需要分别对这些子问题进行检索,再合并检索结果进行综合推理。也需要将拆分的若干子问题(array类型)交给知识库检索节点进行处理

Please describe the solution you suggest

1、知识库检索的输入支持array类型
2、当输入array类型的查询时,同时对这些元素进行知识库查询,并返回匹配度信息
3、组合查询到的所有知识并返回结果

Additional Information

No response

@shaohuzhang1 shaohuzhang1 changed the title [Feature] 知识库检索节点的输入支持array类型以实现一次独立检索多个实体 [Feature] The input of the knowledge base search node supports array type to enable independent search of multiple entities at once. Mar 27, 2025
@shaohuzhang1
Copy link
Contributor

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


MaxKB Version

1.10.2

Please describe your needs or suggestions for improvements

Requirement Scenario 1:

A question often involves multiple entities that can be identified and split out, but often fail to match the correct paragraph when they are merged together for knowledge base searches in text. Therefore, it is necessary to search the identified entities simultaneously, and then merge the search results to complete the entire knowledge base search.

Requirement Scenario 2

A complex problem is split into multiple sub-problems by a large model. These sub-problems need to be searched separately, and then the search results are merged for comprehensive reasoning. Several sub-problems (array types) of split also need to be handed over to the knowledge base search node for processing.

Please describe the solution you suggest

  1. The input of knowledge base search supports array type
  2. When entering a query of array type, the knowledge base query is performed on these elements at the same time and the matching degree information is returned.
  3. Combine all the knowledge found and return the results

Additional Information

No response

@baixin513
Copy link
Contributor

感谢反馈,后续考虑

@shaohuzhang1
Copy link
Contributor

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


Thanks for the feedback, follow-up consideration

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

No branches or pull requests

3 participants