add import and rm duplicate working dir in README
This commit is contained in:
parent
08caaa0b53
commit
133fb1554f
1 changed files with 1 additions and 2 deletions
|
|
@ -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:
|
Use the below Python snippet (in a script) to initialize LightRAG and perform queries:
|
||||||
|
|
||||||
```python
|
```python
|
||||||
|
import os
|
||||||
from lightrag import LightRAG, QueryParam
|
from lightrag import LightRAG, QueryParam
|
||||||
from lightrag.llm import gpt_4o_mini_complete, gpt_4o_complete
|
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"
|
||||||
|
|
||||||
|
|
||||||
WORKING_DIR = "./dickens"
|
|
||||||
|
|
||||||
if not os.path.exists(WORKING_DIR):
|
if not os.path.exists(WORKING_DIR):
|
||||||
os.mkdir(WORKING_DIR)
|
os.mkdir(WORKING_DIR)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue