From 4c032a9d4f411a3df1d686f36e67381103d9934f Mon Sep 17 00:00:00 2001 From: yangdx Date: Fri, 26 Dec 2025 15:01:25 +0800 Subject: [PATCH] Fix linting --- examples/lightrag_gemini_demo.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/lightrag_gemini_demo.py b/examples/lightrag_gemini_demo.py index 376a7bc3..c6586922 100644 --- a/examples/lightrag_gemini_demo.py +++ b/examples/lightrag_gemini_demo.py @@ -7,13 +7,14 @@ for text generation and the text-embedding-004 model for embeddings. Prerequisites: 1. Set GEMINI_API_KEY environment variable: export GEMINI_API_KEY='your-actual-api-key' - + 2. Prepare a text file named 'book.txt' in the current directory (or modify BOOK_FILE constant to point to your text file) Usage: python examples/lightrag_gemini_demo.py """ + import os import asyncio import nest_asyncio @@ -95,7 +96,7 @@ def main(): f"'{BOOK_FILE}' not found. " "Please provide a text file to index in the current directory." ) - + rag = asyncio.run(initialize_rag()) # Insert text