Merge pull request #994 from Brocowlee/language_support

[EVO] Add language configuration to environment and argument parsing
This commit is contained in:
Yannick Stephan
2025-03-04 22:33:03 +01:00
committed by GitHub
3 changed files with 5 additions and 1 deletions

View File

@@ -331,6 +331,9 @@ def create_app(args):
"use_llm_check": False,
},
namespace_prefix=args.namespace_prefix,
addon_params={
"language": args.language,
},
auto_manage_storages_states=False,
)
else: # azure_openai

View File

@@ -340,6 +340,7 @@ def parse_args(is_uvicorn_mode: bool = False) -> argparse.Namespace:
# Inject chunk configuration
args.chunk_size = get_env_value("CHUNK_SIZE", 1200, int)
args.chunk_overlap_size = get_env_value("CHUNK_OVERLAP_SIZE", 100, int)
args.language = get_env_value("LANGUAGE", "English")
ollama_server_infos.LIGHTRAG_MODEL = args.simulated_model_name