Skip to content

[Bug] 知识库全文检索/混合检索时,检索问题含33个“-”会报错 #6637

Description

@2710165659

Contact Information

No response

MaxKB Version

v2.10.5-lts

Problem Description

在知识库全文或混合检索中,当检索问题包含33个“-”时:

  • 检索模式为全文检索或混合检索:请求直接报错,返回 Exception: tsquery stack too small,拿不到任何检索结果。
  • 检索模式为向量检索:可以正常检索。

预期这个文本应该被正常当作普通查询,至少不应让整个检索请求崩溃。

Image

Steps to Reproduce

  1. 新建/任选一个知识库,进行命中测试
  2. 将检索模式选为「全文检索」或「混合检索」
  3. 输入“---------------------------------”,点击检索
  4. 观察:请求报错,返回 Exception: tsquery stack too small
  5. (对照)将检索模式改为「向量检索」,同样的问题则能正常检索

The expected correct result

No response

Related log output

Additional Information

No response

Metadata

Metadata

Assignees

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