support Oracle DB

This commit is contained in:
jin
2024-11-08 16:20:34 +08:00
parent 5e9d19d5a3
commit d68fc3d248
2 changed files with 3 additions and 3 deletions

View File

@@ -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
}
)

View File

@@ -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