From 32188feb4d4391c86923af064a1e38a36dc03ed0 Mon Sep 17 00:00:00 2001 From: Sebastian Schramm Date: Mon, 21 Oct 2024 11:23:12 +0200 Subject: [PATCH 1/2] 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) From 272044289367ad0a7bb732fd517d97b7871fc46f Mon Sep 17 00:00:00 2001 From: zrguo <49157727+LarFii@users.noreply.github.com> Date: Mon, 21 Oct 2024 21:10:19 +0800 Subject: [PATCH 2/2] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 2ea4f7e9..76535d19 100644 --- a/README.md +++ b/README.md @@ -42,6 +42,7 @@ pip install lightrag-hku ``` ## Quick Start +* [Video demo](https://www.youtube.com/watch?v=g21royNJ4fw) of running LightRAG locally. * All the code can be found in the `examples`. * Set OpenAI API key in environment if using OpenAI models: `export OPENAI_API_KEY="sk-...".` * Download the demo text "A Christmas Carol by Charles Dickens":