Update 5 files
- /rag/config_models.py - /rag/utils/config_loader.py - /rag/prompt_builder.py - /rag/query_processor.py - /template_bot_profile/data/fewshot_examples.json
This commit is contained in:
@@ -105,6 +105,10 @@ def load_config(profile_dir: str) -> AppConfig:
|
||||
if 'auth' not in merged:
|
||||
merged['auth'] = {}
|
||||
|
||||
# Добавляем секцию fewshot, если её нет
|
||||
if 'fewshot' not in merged:
|
||||
merged['fewshot'] = {}
|
||||
|
||||
# Создаём экземпляр AppConfig
|
||||
try:
|
||||
config = AppConfig(**merged)
|
||||
|
||||
Reference in New Issue
Block a user