Skip to content

[Feature]关于知识库为空时的embedding模型检索的优化 #6746

@Waterwzy

Description

@Waterwzy

Description / 描述

如题,当执行知识库检索时,若知识库为空,自然不会召回任何结果,但是框架依旧会执行查询embedding的操作,实际上这一次访问是完全无效的,可以直接跳过知识库检索过程。

Use Case / 使用场景

配置文件配置了全为空的知识库

Willing to Submit PR? / 是否愿意提交PR?

  • Yes, I am willing to submit a PR. / 是的,我愿意提交 PR。

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:coreThe bug / feature is about astrbot's core, backendenhancementNew feature or requestfeature:knowledge-baseThe bug / feature is about knowledge base

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions