From d68fc3d2482bd83583a18a7a82256fa2e7c7c951 Mon Sep 17 00:00:00 2001 From: jin <52519003+jin38324@users.noreply.github.com> Date: Fri, 8 Nov 2024 16:20:34 +0800 Subject: [PATCH] support Oracle DB --- examples/lightrag_oracle_demo.py | 4 ++-- lightrag/lightrag.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/lightrag_oracle_demo.py b/examples/lightrag_oracle_demo.py index 93f0799d..166f2b9a 100644 --- a/examples/lightrag_oracle_demo.py +++ b/examples/lightrag_oracle_demo.py @@ -71,13 +71,13 @@ async def main(): # We storage data in unified tables, so we need to set a `workspace` parameter to specify which docs we want to store and query # Below is an example of how to connect to Oracle Autonomous Database on Oracle Cloud oracle_db = OracleDB(config={ - "user":"RAG", + "user":"username", "password":"xxxxxxxxx", "dsn":"xxxxxxx_medium", "config_dir":"dir/path/to/oracle/config", "wallet_location":"dir/path/to/oracle/wallet", "wallet_password":"xxxxxxxxx", - "workspace":"company" # specify which docs we want to store and query + "workspace":"company" # specify which docs you want to store and query } ) diff --git a/lightrag/lightrag.py b/lightrag/lightrag.py index 820051b7..3a426a22 100644 --- a/lightrag/lightrag.py +++ b/lightrag/lightrag.py @@ -146,7 +146,7 @@ class LightRAG: self.llm_response_cache = ( self.key_string_value_json_storage_cls( - namespace="llm_response_cache", global_config=asdict(self) + namespace="llm_response_cache", global_config=asdict(self),embedding_func=None ) if self.enable_llm_cache else None