mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-08-12 21:39:00 +08:00
fix: empty token bug (#3424)
### 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
996c94a8e7
commit
a1ba228bc2
@ -88,7 +88,7 @@ class FulltextQueryer:
|
|||||||
syn = ["\"{}\"^{:.4f}".format(s, w / 4.) for s in syn]
|
syn = ["\"{}\"^{:.4f}".format(s, w / 4.) for s in syn]
|
||||||
syns.append(" ".join(syn))
|
syns.append(" ".join(syn))
|
||||||
|
|
||||||
q = ["({}^{:.4f}".format(tk, w) + " {})".format(syn) for (tk, w), syn in zip(tks_w, syns)]
|
q = ["({}^{:.4f}".format(tk, w) + " {})".format(syn) for (tk, w), syn in zip(tks_w, syns) if tk]
|
||||||
for i in range(1, len(tks_w)):
|
for i in range(1, len(tks_w)):
|
||||||
q.append(
|
q.append(
|
||||||
'"%s %s"^%.4f'
|
'"%s %s"^%.4f'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user