jin
commited on
Commit
·
b872a06
1
Parent(s):
e0c53ac
support Oracle DB
Browse files- examples/lightrag_oracle_demo.py +2 -2
- lightrag/lightrag.py +1 -1
examples/lightrag_oracle_demo.py
CHANGED
@@ -71,13 +71,13 @@ async def main():
|
|
71 |
# We storage data in unified tables, so we need to set a `workspace` parameter to specify which docs we want to store and query
|
72 |
# Below is an example of how to connect to Oracle Autonomous Database on Oracle Cloud
|
73 |
oracle_db = OracleDB(config={
|
74 |
-
"user":"
|
75 |
"password":"xxxxxxxxx",
|
76 |
"dsn":"xxxxxxx_medium",
|
77 |
"config_dir":"dir/path/to/oracle/config",
|
78 |
"wallet_location":"dir/path/to/oracle/wallet",
|
79 |
"wallet_password":"xxxxxxxxx",
|
80 |
-
"workspace":"company" # specify which docs
|
81 |
}
|
82 |
)
|
83 |
|
|
|
71 |
# We storage data in unified tables, so we need to set a `workspace` parameter to specify which docs we want to store and query
|
72 |
# Below is an example of how to connect to Oracle Autonomous Database on Oracle Cloud
|
73 |
oracle_db = OracleDB(config={
|
74 |
+
"user":"username",
|
75 |
"password":"xxxxxxxxx",
|
76 |
"dsn":"xxxxxxx_medium",
|
77 |
"config_dir":"dir/path/to/oracle/config",
|
78 |
"wallet_location":"dir/path/to/oracle/wallet",
|
79 |
"wallet_password":"xxxxxxxxx",
|
80 |
+
"workspace":"company" # specify which docs you want to store and query
|
81 |
}
|
82 |
)
|
83 |
|
lightrag/lightrag.py
CHANGED
@@ -146,7 +146,7 @@ class LightRAG:
|
|
146 |
|
147 |
self.llm_response_cache = (
|
148 |
self.key_string_value_json_storage_cls(
|
149 |
-
namespace="llm_response_cache", global_config=asdict(self)
|
150 |
)
|
151 |
if self.enable_llm_cache
|
152 |
else None
|
|
|
146 |
|
147 |
self.llm_response_cache = (
|
148 |
self.key_string_value_json_storage_cls(
|
149 |
+
namespace="llm_response_cache", global_config=asdict(self),embedding_func=None
|
150 |
)
|
151 |
if self.enable_llm_cache
|
152 |
else None
|