diff --git a/rag/nlp/search.py b/rag/nlp/search.py index c10b803bd..4256a638d 100644 --- a/rag/nlp/search.py +++ b/rag/nlp/search.py @@ -72,9 +72,12 @@ class Dealer: def search(self, req, idx_names: str | list[str], kb_ids: list[str], emb_mdl=None, - highlight: bool | list = False, + highlight: bool | list | None = None, rank_feature: dict | None = None ): + if highlight is None: + highlight = False + filters = self.get_filters(req) orderBy = OrderByExpr()