Fix lintings in examples folder
This commit is contained in:
parent
1f48f72fe2
commit
3a6109d07c
3 changed files with 5 additions and 5 deletions
|
|
@ -2,8 +2,6 @@ import os
|
||||||
import asyncio
|
import asyncio
|
||||||
import nest_asyncio
|
import nest_asyncio
|
||||||
|
|
||||||
nest_asyncio.apply()
|
|
||||||
|
|
||||||
from lightrag import LightRAG, QueryParam
|
from lightrag import LightRAG, QueryParam
|
||||||
from lightrag.llm import (
|
from lightrag.llm import (
|
||||||
openai_complete_if_cache,
|
openai_complete_if_cache,
|
||||||
|
|
@ -16,6 +14,7 @@ from lightrag.kg.shared_storage import initialize_pipeline_status
|
||||||
# for custom llm_model_func
|
# for custom llm_model_func
|
||||||
from lightrag.utils import locate_json_string_body_from_string
|
from lightrag.utils import locate_json_string_body_from_string
|
||||||
|
|
||||||
|
nest_asyncio.apply()
|
||||||
|
|
||||||
WORKING_DIR = "./dickens"
|
WORKING_DIR = "./dickens"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,6 @@
|
||||||
import asyncio
|
import asyncio
|
||||||
import nest_asyncio
|
import nest_asyncio
|
||||||
|
|
||||||
nest_asyncio.apply()
|
|
||||||
|
|
||||||
import inspect
|
import inspect
|
||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
|
|
@ -12,6 +10,8 @@ from lightrag.llm.ollama import ollama_embed, ollama_model_complete
|
||||||
from lightrag.utils import EmbeddingFunc
|
from lightrag.utils import EmbeddingFunc
|
||||||
from lightrag.kg.shared_storage import initialize_pipeline_status
|
from lightrag.kg.shared_storage import initialize_pipeline_status
|
||||||
|
|
||||||
|
nest_asyncio.apply()
|
||||||
|
|
||||||
WORKING_DIR = "./dickens_age"
|
WORKING_DIR = "./dickens_age"
|
||||||
|
|
||||||
logging.basicConfig(format="%(levelname)s:%(message)s", level=logging.INFO)
|
logging.basicConfig(format="%(levelname)s:%(message)s", level=logging.INFO)
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,6 @@
|
||||||
import asyncio
|
import asyncio
|
||||||
import nest_asyncio
|
import nest_asyncio
|
||||||
|
|
||||||
nest_asyncio.apply()
|
|
||||||
import os
|
import os
|
||||||
import inspect
|
import inspect
|
||||||
import logging
|
import logging
|
||||||
|
|
@ -10,6 +9,8 @@ from lightrag.llm.ollama import ollama_model_complete, ollama_embed
|
||||||
from lightrag.utils import EmbeddingFunc
|
from lightrag.utils import EmbeddingFunc
|
||||||
from lightrag.kg.shared_storage import initialize_pipeline_status
|
from lightrag.kg.shared_storage import initialize_pipeline_status
|
||||||
|
|
||||||
|
nest_asyncio.apply()
|
||||||
|
|
||||||
WORKING_DIR = "./dickens"
|
WORKING_DIR = "./dickens"
|
||||||
|
|
||||||
logging.basicConfig(format="%(levelname)s:%(message)s", level=logging.INFO)
|
logging.basicConfig(format="%(levelname)s:%(message)s", level=logging.INFO)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue