ragflow icon indicating copy to clipboard operation
ragflow copied to clipboard

[Question]: why synonym.Dealer() no pass redis param in init()?

Open pkunight opened this issue 1 year ago • 1 comments

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.

pkunight avatar Aug 16 '24 09:08 pkunight

We have not Implemented it. You could finish that in order to set synonyms without restarting service.

KevinHuSh avatar Aug 16 '24 11:08 KevinHuSh