Sfoglia il codice sorgente

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 mesi fa
parent
commit
6f2c3a3c3c
Nessun account collegato all'indirizzo email del committer
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1
    1
      rag/nlp/query.py

+ 1
- 1
rag/nlp/query.py Vedi File

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

Loading…
Annulla
Salva