Revert "[EVO] Add language configuration to environment and argument parsing"
This reverts commit a688b8822a
.
This commit is contained in:
@@ -48,7 +48,7 @@
|
|||||||
# CHUNK_OVERLAP_SIZE=100
|
# CHUNK_OVERLAP_SIZE=100
|
||||||
# MAX_TOKENS=32768 # Max tokens send to LLM for summarization
|
# MAX_TOKENS=32768 # Max tokens send to LLM for summarization
|
||||||
# MAX_TOKEN_SUMMARY=500 # Max tokens for entity or relations summary
|
# MAX_TOKEN_SUMMARY=500 # Max tokens for entity or relations summary
|
||||||
# LANGUAGE=English
|
# SUMMARY_LANGUAGE=English
|
||||||
# MAX_EMBED_TOKENS=8192
|
# MAX_EMBED_TOKENS=8192
|
||||||
|
|
||||||
### LLM Configuration (Use valid host. For local services installed with docker, you can use host.docker.internal)
|
### LLM Configuration (Use valid host. For local services installed with docker, you can use host.docker.internal)
|
||||||
|
@@ -331,9 +331,6 @@ def create_app(args):
|
|||||||
"use_llm_check": False,
|
"use_llm_check": False,
|
||||||
},
|
},
|
||||||
namespace_prefix=args.namespace_prefix,
|
namespace_prefix=args.namespace_prefix,
|
||||||
addon_params={
|
|
||||||
"language": args.language,
|
|
||||||
},
|
|
||||||
auto_manage_storages_states=False,
|
auto_manage_storages_states=False,
|
||||||
)
|
)
|
||||||
else: # azure_openai
|
else: # azure_openai
|
||||||
|
@@ -340,7 +340,6 @@ def parse_args(is_uvicorn_mode: bool = False) -> argparse.Namespace:
|
|||||||
# Inject chunk configuration
|
# Inject chunk configuration
|
||||||
args.chunk_size = get_env_value("CHUNK_SIZE", 1200, int)
|
args.chunk_size = get_env_value("CHUNK_SIZE", 1200, int)
|
||||||
args.chunk_overlap_size = get_env_value("CHUNK_OVERLAP_SIZE", 100, 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
|
ollama_server_infos.LIGHTRAG_MODEL = args.simulated_model_name
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user