yangdx
commited on
Commit
Β·
dd1704b
1
Parent(s):
b46cca0
Refactor splash screen display configuration layout.
Browse files
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(" ββ
|
448 |
-
ASCIIColors.yellow(f"{args.
|
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("
|
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
|
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="")
|