Remove unused global_top_k variable and related configurations.
This commit is contained in:
parent
b8543b8701
commit
2e13def95c
1 changed files with 0 additions and 6 deletions
|
|
@ -49,9 +49,6 @@ except Exception as e:
|
||||||
config = configparser.ConfigParser()
|
config = configparser.ConfigParser()
|
||||||
config.read("config.ini")
|
config.read("config.ini")
|
||||||
|
|
||||||
# Global configuration
|
|
||||||
global_top_k = 60 # default value
|
|
||||||
|
|
||||||
# Global progress tracker
|
# Global progress tracker
|
||||||
scan_progress: Dict = {
|
scan_progress: Dict = {
|
||||||
"is_scanning": False,
|
"is_scanning": False,
|
||||||
|
|
@ -98,9 +95,6 @@ class AccessLogFilter(logging.Filter):
|
||||||
|
|
||||||
|
|
||||||
def create_app(args):
|
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
|
# Initialize verbose debug setting
|
||||||
from lightrag.utils import set_verbose_debug
|
from lightrag.utils import set_verbose_debug
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue