Skip to content

Commit 6e56c83

Browse files
committed
support Oracle DB
1 parent b690e07 commit 6e56c83

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

‎examples/lightrag_oracle_demo.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,13 @@ async def main():
7171
# We storage data in unified tables, so we need to set a `workspace` parameter to specify which docs we want to store and query
7272
# Below is an example of how to connect to Oracle Autonomous Database on Oracle Cloud
7373
oracle_db = OracleDB(config={
74-
"user":"RAG",
74+
"user":"username",
7575
"password":"xxxxxxxxx",
7676
"dsn":"xxxxxxx_medium",
7777
"config_dir":"dir/path/to/oracle/config",
7878
"wallet_location":"dir/path/to/oracle/wallet",
7979
"wallet_password":"xxxxxxxxx",
80-
"workspace":"company" # specify which docs we want to store and query
80+
"workspace":"company" # specify which docs you want to store and query
8181
}
8282
)
8383

‎lightrag/lightrag.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ def __post_init__(self):
146146

147147
self.llm_response_cache = (
148148
self.key_string_value_json_storage_cls(
149-
namespace="llm_response_cache", global_config=asdict(self)
149+
namespace="llm_response_cache", global_config=asdict(self),embedding_func=None
150150
)
151151
if self.enable_llm_cache
152152
else None

0 commit comments

Comments
 (0)