Skip to content

Commit 543b487

Browse files
committed
add default folder for the cache
1 parent d790361 commit 543b487

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scrapegraphai/nodes/rag_node.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def execute(self, state: dict) -> dict:
9999
)
100100
embeddings = self.embedder_model
101101

102-
folder_name = "cache"
102+
folder_name = self.node_config.get("cache", "cache")
103103

104104
if self.node_config.get("cache", False) and not os.path.exists(folder_name):
105105
index = FAISS.from_documents(chunked_docs, embeddings)

0 commit comments

Comments
 (0)