support Oracle DB
This commit is contained in:
@@ -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
|
# 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
|
# Below is an example of how to connect to Oracle Autonomous Database on Oracle Cloud
|
||||||
oracle_db = OracleDB(config={
|
oracle_db = OracleDB(config={
|
||||||
"user":"RAG",
|
"user":"username",
|
||||||
"password":"xxxxxxxxx",
|
"password":"xxxxxxxxx",
|
||||||
"dsn":"xxxxxxx_medium",
|
"dsn":"xxxxxxx_medium",
|
||||||
"config_dir":"dir/path/to/oracle/config",
|
"config_dir":"dir/path/to/oracle/config",
|
||||||
"wallet_location":"dir/path/to/oracle/wallet",
|
"wallet_location":"dir/path/to/oracle/wallet",
|
||||||
"wallet_password":"xxxxxxxxx",
|
"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
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@@ -146,7 +146,7 @@ class LightRAG:
|
|||||||
|
|
||||||
self.llm_response_cache = (
|
self.llm_response_cache = (
|
||||||
self.key_string_value_json_storage_cls(
|
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
|
if self.enable_llm_cache
|
||||||
else None
|
else None
|
||||||
|
Reference in New Issue
Block a user