Skip to content

[Feature Request]: Some suggestions for Keyword and Retrieval components #5777

Open
@wzqiang1332

Description

@wzqiang1332

Is there an existing issue for the same feature request?

  • I have checked the existing issues.

Is your feature request related to a problem?

Describe the feature you'd like

关键词组件应该支持自定义提取关键词的prompt,不同的应用场景提取关键词的prompt会有一些差别,并且多个关键词输出的时候应该能跟知识检索组件有一定联动,支持多关键词检索.

知识检索应该支持多关键词分别检索,然后按照多关键词检索结果取各个关键词里面相似度最高的一些.

举个例子
问题:理财余额大于10万,性别为男
里面应该至少有2个关键字理财余额和性别,但是理财余额的相关字段会非常多,比如当前理财余额,上月理财余额,近一个月购买理财次数等等,反正很多,当然性别也是存在的。
但是在知识库检索时,把2个关键字一起检索,由于理财余额相关的知识词条太多,把性别淹没在里面。实际建议用2个关键字分别检索知识库,再从2个检索中取相似度最高的几条,这样性别关键字不会因为理财余额太多被淹没在里面了。

Describe implementation you've considered

No response

Documentation, adoption, use case

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions