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:
Markov Andrey
2026-06-30 14:57:03 +00:00
parent c00af40977
commit 67d86d6c1d
5 changed files with 298 additions and 55 deletions

View File

@@ -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)