ragflow
ragflow copied to clipboard
[Question]: why synonym.Dealer() no pass redis param in init()?
There is a warning log in ragflow/rag/nlp/synonym.py
class Dealer:
def __init__(self, redis=None):
...
if not redis:
logging.warning(
"Realtime synonym is disabled, since no redis connection.")
...
And the redis here remains None, it has never been given any arguments.
The init code looks like:
class EsQueryer:
def __init__(self, es):
...
self.syn = synonym.Dealer()
...
So why redis here no given any arguments? This warning log remains forever.
We have not Implemented it. You could finish that in order to set synonyms without restarting service.