RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.
Go agent-harnessagent-native-databaseagentic-aiagentic-retrievalagentic-searchaiai-agentscontext-enginecontext-engineeringcontext-managementharness-engineeringknowledge-compilationragretrieval-augmented-generationretrieval-harnesssearch-harness
refine redis connection (#599)
KevinHuSh8acc01a22707
diff --git a/rag/app/table.py b/rag/app/table.pyindex 039a4787f4..96a53aac4c 100644--- a/rag/app/table.py+++ b/rag/app/table.py@@ -47,6 +47,7 @@ class Excel(ExcelParser):cell.value for i,cell in enumerate(rows[0]) if i not in missed]+ if not headers:continuedata = []for i, r in enumerate(rows[1:]):rn += 1diff --git a/rag/utils/redis_conn.py b/rag/utils/redis_conn.pyindex 5884d52aa0..984ae1629e 100644--- a/rag/utils/redis_conn.py+++ b/rag/utils/redis_conn.py@@ -14,10 +14,10 @@ class RedisDB:def __open__(self):try:- self.REDIS = redis.Redis(host=self.config.get("host", "redis").split(":")[0],+ self.REDIS = redis.StrictRedis(host=self.config["host"].split(":")[0],port=int(self.config.get("host", ":6379").split(":")[1]),db=int(self.config.get("db", 1)),- password=self.config.get("password"))+ password=self.config["password"])except Exception as e:logging.warning("Redis can't be connected.")return self.REDIS