Parcourir la source

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 il y a 8 mois
Parent
révision
6f2c3a3c3c
Aucun compte lié à l'adresse e-mail de l'auteur
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1
    1
      rag/nlp/query.py

+ 1
- 1
rag/nlp/query.py Voir le fichier

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

Chargement…
Annuler
Enregistrer