mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
fix settings global docStoreConn for opensearch (#8885)
### What problem does this PR solve?
fix opensearch OSConnection init.
```
docStoreConn = rag.utils.opensearch_conn.OSConnection()
```
### Type of change
- [x] Bug Fix (non-breaking change which fixes an issue)
Signed-off-by: zhanluxianshen <zhanluxianshen@163.com>
This commit is contained in:
@ -163,7 +163,7 @@ def init_settings():
|
|||||||
elif lower_case_doc_engine == "infinity":
|
elif lower_case_doc_engine == "infinity":
|
||||||
docStoreConn = rag.utils.infinity_conn.InfinityConnection()
|
docStoreConn = rag.utils.infinity_conn.InfinityConnection()
|
||||||
elif lower_case_doc_engine == "opensearch":
|
elif lower_case_doc_engine == "opensearch":
|
||||||
docStoreConn = rag.utils.opensearch_coon.OSConnection()
|
docStoreConn = rag.utils.opensearch_conn.OSConnection()
|
||||||
else:
|
else:
|
||||||
raise Exception(f"Not supported doc engine: {DOC_ENGINE}")
|
raise Exception(f"Not supported doc engine: {DOC_ENGINE}")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user