mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-08-13 01:08:59 +08:00
rm es query escape chars (#3428)
### What problem does this PR solve? ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
parent
47abfc32d4
commit
48e060aa53
@ -66,7 +66,7 @@ class FulltextQueryer:
|
||||
|
||||
def question(self, txt, tbl="qa", min_match:float=0.6):
|
||||
txt = re.sub(
|
||||
r"[ :\r\n\t,,。??/`!!&\^%%]+",
|
||||
r"[ :\r\n\t,,。??/`!!&\^%%()^]+",
|
||||
" ",
|
||||
rag_tokenizer.tradi2simp(rag_tokenizer.strQ2B(txt.lower())),
|
||||
).strip()
|
||||
|
Loading…
x
Reference in New Issue
Block a user