Added kb_id filter to knn. Fix #3458 (#3513)

### What problem does this PR solve?

Added kb_id filter to knn. Fix #3458

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
Zhichang Yu
2024-11-20 11:47:39 +08:00
committed by Yingfeng Zhang
parent e559cebcdc
commit cad341e794
3 changed files with 39 additions and 43 deletions

View File

@ -33,7 +33,7 @@ class Dealer:
try:
self.dictionary = json.load(open(path, 'r'))
except Exception:
logging.warn("Missing synonym.json")
logging.warning("Missing synonym.json")
self.dictionary = {}
if not redis: