浏览代码

Fix too long query exception. (#4729)

### What problem does this PR solve?


### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
tags/v0.16.0
Kevin Hu 8 个月前
父节点
当前提交
6f2c3a3c3c
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      rag/nlp/query.py

+ 1
- 1
rag/nlp/query.py 查看文件

@@ -185,7 +185,7 @@ class FulltextQueryer:
for s in syns
]
)
if syns:
if syns and tms:
tms = f"({tms})^5 OR ({syns})^0.7"

qs.append(tms)

正在加载...
取消
保存