Skip to content

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

@xxyj6450

Description

@xxyj6450

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions