Skip to content

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

Fix: elasticsearch connection hardcoded (#10975)

Stephen Huc20f5675c663
diff --git a/rag/utils/es_conn.py b/rag/utils/es_conn.py
index 6cb569406b..ec117f4e48 100644
--- a/rag/utils/es_conn.py
+++ b/rag/utils/es_conn.py
@@ -75,9 +75,8 @@ class ESConnection(DocStoreConnection):
settings.ES["hosts"].split(","),
basic_auth=(settings.ES["username"], settings.ES[
"password"]) if "username" in settings.ES and "password" in settings.ES else None,
- verify_certs=False,
- timeout=600
- )
+ verify_certs= settings.ES.get("verify_certs", False),
+ timeout=600 )
if self.es:
self.info = self.es.info()
return True