Agent-Mode mit Aufgabenteilung und automatischer Recherche

This commit is contained in:
2026-08-07 21:57:23 +02:00
parent ffee925163
commit adbe69d24d
30 changed files with 2580 additions and 51 deletions
+31
View File
@@ -1,3 +1,6 @@
# Runtime role: brain = full knowledge system; agent = lightweight source poller using the same binary/image.
BRAIN_MODE=brain
# HTTP
BRAIN_LISTEN_ADDR=:8090
BRAIN_DATA_DIR=./data
@@ -88,6 +91,17 @@ BRAIN_RELATION_THRESHOLD=0.72
BRAIN_TOP_K=8
BRAIN_MAX_CONTEXT_CHARS=16000
# Distributed Source-Agent inbox (Brain mode). Agent documents are queued outside
# the graph, embedded in small batches, and only promoted to candidate status when
# they match existing knowledge. Adaptive article research checks this inbox before SearXNG.
BRAIN_SOURCE_INBOX_ENABLED=true
BRAIN_SOURCE_INBOX_INTERVAL=30s
BRAIN_SOURCE_INBOX_BATCH_SIZE=12
BRAIN_SOURCE_INBOX_MIN_SIMILARITY=0.55
BRAIN_SOURCE_INBOX_MIN_RESULTS=2
# Freshness-sensitive article queries only reuse inbox documents newer than this.
BRAIN_SOURCE_INBOX_FRESH_MAX_AGE=168h
# Optional controlled web research through your own SearXNG instance.
# Use the root URL or a URL ending in /search. Inside Docker, localhost points
# to the Brain container; use the SearXNG service name or host.docker.internal.
@@ -168,3 +182,20 @@ BRAIN_AUTONOMOUS_RESEARCH_LEASE=45m
BRAIN_AUTONOMOUS_RESEARCH_MAX_ATTEMPTS=3
BRAIN_AUTONOMOUS_RESEARCH_QUERY_TRIGGERS=true
BRAIN_AUTONOMOUS_RESEARCH_OPPORTUNITY_LIMIT=8
# -----------------------------------------------------------------------------
# Agent mode only. These values are ignored in BRAIN_MODE=brain.
# Create/rotate the token under /source-agents.html in the Brain UI.
# A local JSON bootstrap file may be used instead of URL/ID/token envs.
# -----------------------------------------------------------------------------
# BRAIN_MODE=agent
# BRAIN_AGENT_BRAIN_URL=https://brain.example.org
# BRAIN_AGENT_ID=security-news-01
# BRAIN_AGENT_TOKEN=brain_agent_xxxxxxxxx
# BRAIN_AGENT_CONFIG_FILE=
# BRAIN_AGENT_CONFIG_REFRESH=5m
# BRAIN_AGENT_HTTP_TIMEOUT=30s
# BRAIN_AGENT_CONCURRENCY=3
# BRAIN_AGENT_BATCH_SIZE=50
# Allow polling RFC1918/private URLs only for intentionally trusted intranet sources.
# BRAIN_AGENT_ALLOW_PRIVATE=false