浏览代码

Fix: empty query issue. (#5830)

### What problem does this PR solve?

#5214

### Type of change

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

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

@@ -66,7 +66,7 @@ class FulltextQueryer:
otxt = txt
for r, p in patts:
txt = re.sub(r, p, txt, flags=re.IGNORECASE)
if not otxt:
if not txt:
txt = otxt
return txt


正在加载...
取消
保存