Bläddra i källkod

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 månader sedan
förälder
incheckning
6f2c3a3c3c
Inget konto är kopplat till bidragsgivarens mejladress
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1
    1
      rag/nlp/query.py

+ 1
- 1
rag/nlp/query.py Visa fil

@@ -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)

Laddar…
Avbryt
Spara