From 133fb1554fe5e65bfda56827b41b93aa67f68f8e Mon Sep 17 00:00:00 2001 From: Sebastian Schramm Date: Mon, 21 Oct 2024 11:23:12 +0200 Subject: [PATCH] add import and rm duplicate working dir in README --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index b345c1d1..2ea4f7e9 100644 --- a/README.md +++ b/README.md @@ -51,6 +51,7 @@ curl https://raw.githubusercontent.com/gusye1234/nano-graphrag/main/tests/mock_d Use the below Python snippet (in a script) to initialize LightRAG and perform queries: ```python +import os from lightrag import LightRAG, QueryParam from lightrag.llm import gpt_4o_mini_complete, gpt_4o_complete @@ -63,8 +64,6 @@ from lightrag.llm import gpt_4o_mini_complete, gpt_4o_complete WORKING_DIR = "./dickens" -WORKING_DIR = "./dickens" - if not os.path.exists(WORKING_DIR): os.mkdir(WORKING_DIR)