Files
fckbot/template_bot_profile/bot.conf.sample
2026-07-01 08:41:39 +00:00

123 lines
5.8 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
```yaml
# bot.conf КОНФИГ БОТА-КЛИЕНТА (пример для профиля)
# Все пути относительные относительно каталога профиля.
# ============================================================
# XMPP
# ============================================================
jid: "metabot@domain.ru" # JID бота
password_env: "XMPP_PASSWORD" # Переменная окружения с паролем
resource: "bot" # Ресурс XMPP
# ============================================================
# RAG-сервер
# ============================================================
rag_server_url: "http://localhost:8080" # Адрес RAG-сервера
# ============================================================
# Статус
# ============================================================
status_message: "📐 Методолог (ГОСТы, стандарты) готов"
# ============================================================
# Администраторы (JID)
# ============================================================
admin_jids:
- "admin@domain.ru"
# ============================================================
# Промпты (пути относительно каталога профиля)
# ============================================================
prompts:
system: "prompts/system.txt"
synthesis: "prompts/synthesis.txt"
intent: "prompts/intent_classify.txt"
expand: "prompts/expand.txt"
metrics: "prompts/metrics_extract.txt"
summary: "prompts/smart_summary.txt"
hierarchical_summary: "prompts/hierarchical_summary.txt"
consistency: "prompts/consistency_check.txt"
critique: "prompts/self_critique.txt"
spellcheck: "prompts/spellcheck.txt"
quality: "prompts/quality_criteria.txt"
generate_document: "prompts/generate_document.txt"
# ============================================================
# Функции (включение/отключение)
# ============================================================
features:
surgical_replace: true
voice_recognition: true
vision: true
archive_support: true
ocr: true
enable_intent_classification: true
enable_self_critique: true
mention_keyword: "методолог" # Ключевое слово для упоминания в группах
# Новые функции
enable_soma: true # SOMA-анализ (LLM-as-judge)
enable_react: true # ReAct (вызов внешних инструментов)
enable_planning: true # Генерация плана действий
enable_agents: true # Многоагентность
enable_reindex: true # Фоновый ReindexWorker
# ============================================================
# Параметры SOMA
# ============================================================
soma_temperature: 0.1 # Температура для оценки
soma_threshold: 3.5 # Порог прохождения (1-5)
soma_cache_ttl: 300 # TTL кэша SOMA (сек)
soma_timeout: 30 # Таймаут запроса (сек)
# ============================================================
# Параметры ReAct
# ============================================================
react_temperature: 0.3 # Температура для ReAct-цикла
react_max_iterations: 5 # Макс. число итераций
# ============================================================
# Параметры планирования
# ============================================================
planning_temperature: 0.2 # Температура для генерации плана
# ============================================================
# Параметры ReindexWorker
# ============================================================
reindex_interval: 300 # Интервал проверки (сек)
reindex_batch_size: 10 # Макс. документов за цикл
# ============================================================
# Параметры агентов
# ============================================================
agent_temperature: 0.3 # Температура для агентов
# ============================================================
# API-ключи для внешних инструментов
# ============================================================
weather_api_key: "" # OpenWeatherMap (опционально)
# ============================================================
# Redis для кэширования
# ============================================================
redis_url: "redis://localhost:6379" # URL Redis (опционально)
# ============================================================
# Лимиты истории
# ============================================================
max_history_message_length: 10000 # Макс. длина одного сообщения (символов)
# ============================================================
# Few-shot примеры
# ============================================================
fewshot:
max_examples: 5 # Макс. примеров в промте
examples_file: "data/fewshot_examples.json"
# ============================================================
# Параметры RAG (общие)
# ============================================================
max_context_tokens: 3000 # Лимит токенов для истории
rerank:
min_length: 5000 # Порог длины контекста для переранжирования (символов)
```