yangdx commited on
Commit
dd1704b
Β·
1 Parent(s): b46cca0

Refactor splash screen display configuration layout.

Browse files
Files changed (1) hide show
  1. lightrag/api/utils_api.py +8 -6
lightrag/api/utils_api.py CHANGED
@@ -444,8 +444,8 @@ def display_splash_screen(args: argparse.Namespace) -> None:
444
  ASCIIColors.yellow(f"{args.log_level}")
445
  ASCIIColors.white(" β”œβ”€ Verbose Debug: ", end="")
446
  ASCIIColors.yellow(f"{args.verbose}")
447
- ASCIIColors.white(" β”œβ”€ Timeout: ", end="")
448
- ASCIIColors.yellow(f"{args.timeout if args.timeout else 'None (infinite)'}")
449
  ASCIIColors.white(" └─ API Key: ", end="")
450
  ASCIIColors.yellow("Set" if args.key else "Not Set")
451
 
@@ -462,8 +462,10 @@ def display_splash_screen(args: argparse.Namespace) -> None:
462
  ASCIIColors.yellow(f"{args.llm_binding}")
463
  ASCIIColors.white(" β”œβ”€ Host: ", end="")
464
  ASCIIColors.yellow(f"{args.llm_binding_host}")
465
- ASCIIColors.white(" └─ Model: ", end="")
466
  ASCIIColors.yellow(f"{args.llm_model}")
 
 
467
 
468
  # Embedding Configuration
469
  ASCIIColors.magenta("\nπŸ“Š Embedding Configuration:")
@@ -478,8 +480,10 @@ def display_splash_screen(args: argparse.Namespace) -> None:
478
 
479
  # RAG Configuration
480
  ASCIIColors.magenta("\nβš™οΈ RAG Configuration:")
481
- ASCIIColors.white(" β”œβ”€ Max Async Operations: ", end="")
482
  ASCIIColors.yellow(f"{args.max_async}")
 
 
483
  ASCIIColors.white(" β”œβ”€ Max Tokens: ", end="")
484
  ASCIIColors.yellow(f"{args.max_tokens}")
485
  ASCIIColors.white(" β”œβ”€ Max Embed Tokens: ", end="")
@@ -488,8 +492,6 @@ def display_splash_screen(args: argparse.Namespace) -> None:
488
  ASCIIColors.yellow(f"{args.chunk_size}")
489
  ASCIIColors.white(" β”œβ”€ Chunk Overlap Size: ", end="")
490
  ASCIIColors.yellow(f"{args.chunk_overlap_size}")
491
- ASCIIColors.white(" β”œβ”€ History Turns: ", end="")
492
- ASCIIColors.yellow(f"{args.history_turns}")
493
  ASCIIColors.white(" β”œβ”€ Cosine Threshold: ", end="")
494
  ASCIIColors.yellow(f"{args.cosine_threshold}")
495
  ASCIIColors.white(" β”œβ”€ Top-K: ", end="")
 
444
  ASCIIColors.yellow(f"{args.log_level}")
445
  ASCIIColors.white(" β”œβ”€ Verbose Debug: ", end="")
446
  ASCIIColors.yellow(f"{args.verbose}")
447
+ ASCIIColors.white(" β”œβ”€ History Turns: ", end="")
448
+ ASCIIColors.yellow(f"{args.history_turns}")
449
  ASCIIColors.white(" └─ API Key: ", end="")
450
  ASCIIColors.yellow("Set" if args.key else "Not Set")
451
 
 
462
  ASCIIColors.yellow(f"{args.llm_binding}")
463
  ASCIIColors.white(" β”œβ”€ Host: ", end="")
464
  ASCIIColors.yellow(f"{args.llm_binding_host}")
465
+ ASCIIColors.white(" β”œβ”€ Model: ", end="")
466
  ASCIIColors.yellow(f"{args.llm_model}")
467
+ ASCIIColors.white(" └─ Timeout: ", end="")
468
+ ASCIIColors.yellow(f"{args.timeout if args.timeout else 'None (infinite)'}")
469
 
470
  # Embedding Configuration
471
  ASCIIColors.magenta("\nπŸ“Š Embedding Configuration:")
 
480
 
481
  # RAG Configuration
482
  ASCIIColors.magenta("\nβš™οΈ RAG Configuration:")
483
+ ASCIIColors.white(" β”œβ”€ Max Async for LLM: ", end="")
484
  ASCIIColors.yellow(f"{args.max_async}")
485
+ ASCIIColors.white(" β”œβ”€ Max Parallel Insert: ", end="")
486
+ ASCIIColors.yellow(f"{global_args['max_parallel_insert']}")
487
  ASCIIColors.white(" β”œβ”€ Max Tokens: ", end="")
488
  ASCIIColors.yellow(f"{args.max_tokens}")
489
  ASCIIColors.white(" β”œβ”€ Max Embed Tokens: ", end="")
 
492
  ASCIIColors.yellow(f"{args.chunk_size}")
493
  ASCIIColors.white(" β”œβ”€ Chunk Overlap Size: ", end="")
494
  ASCIIColors.yellow(f"{args.chunk_overlap_size}")
 
 
495
  ASCIIColors.white(" β”œβ”€ Cosine Threshold: ", end="")
496
  ASCIIColors.yellow(f"{args.cosine_threshold}")
497
  ASCIIColors.white(" β”œβ”€ Top-K: ", end="")