Remove unused global_top_k variable and related configurations.

This commit is contained in:
yangdx
2025-02-24 18:20:39 +08:00
parent b8543b8701
commit 2e13def95c

View File

@@ -49,9 +49,6 @@ except Exception as e:
config = configparser.ConfigParser()
config.read("config.ini")
# Global configuration
global_top_k = 60 # default value
# Global progress tracker
scan_progress: Dict = {
"is_scanning": False,
@@ -98,9 +95,6 @@ class AccessLogFilter(logging.Filter):
def create_app(args):
# Set global top_k
global global_top_k
global_top_k = args.top_k # save top_k from args
# Initialize verbose debug setting
from lightrag.utils import set_verbose_debug