feat: rebuild news summarizer on local Ollama
Swap Nous Portal for the newsPipeline local_llm generate path (POST /api/generate, GET /api/tags). No API key. Settings model selector lists Ollama tags; idle if the host is down.
This commit is contained in:
parent
d2bf55183c
commit
58ff43bdee
15 changed files with 336 additions and 339 deletions
14
.env.example
14
.env.example
|
|
@ -60,7 +60,7 @@ FIRMS_INTERVAL=900
|
|||
INGEST_FIRES=1
|
||||
|
||||
# ── API keys (managed from the dashboard UI) ──────────────────────────────
|
||||
# Keys such as NOUS_API_KEY and TELEGRAM_TOKEN are stored in the Postgres
|
||||
# Keys such as TELEGRAM_TOKEN are stored in the Postgres
|
||||
# `api_keys` table and managed from the dashboard's "Keys" tab
|
||||
# (GET/POST/DELETE /api/keys/{name}) — see app/keystore.py. The FIRMS ingestor
|
||||
# currently reads FIRMS_MAP_KEY from .env (above); wiring the Keys-UI store as
|
||||
|
|
@ -68,17 +68,15 @@ INGEST_FIRES=1
|
|||
|
||||
# ── News pipeline (scraper + summarizer, profile `ingest`) ────────────────
|
||||
# Hourly: the scraper crawls 257 RSS sources at minute :00 and the summarizer
|
||||
# runs the Nous map-reduce at minute :05, both writing to the shared osint-db
|
||||
# runs the local Ollama map-reduce at minute :05, both writing to the shared osint-db
|
||||
# (tables `articles` + `article_summaries`, created by alembic 003_news).
|
||||
# Consume via GET /api/news and GET /api/news/summaries.
|
||||
# NOUS_API_KEY is also (preferably) set in the Keys UI; env is an override.
|
||||
# Unset in both env and api_keys = summarizer logs and idles (never crashes).
|
||||
NOUS_API_KEY=
|
||||
NOUS_BASE_URL=https://inference-api.nousresearch.com/v1
|
||||
# Optional LLM knobs
|
||||
# LLM_URL is the Ollama origin (Pi container cannot use 127.0.0.1 for a laptop
|
||||
# GPU). Example: LLM_URL=http://100.91.7.84:11434
|
||||
# LLM_URL=
|
||||
# SUMMARY_MODEL is an optional override. Leave unset so Settings
|
||||
# (app_settings.SUMMARY_MODEL) can reach the summarizer. Code default
|
||||
# Hermes-4.3-36B remains after a Postgres miss. Env wins when set.
|
||||
# qwen3:30b-a3b remains after a Postgres miss. Env wins when set.
|
||||
# SUMMARY_MODEL=
|
||||
NEWS_BATCH_SIZE=50
|
||||
SUMMARY_WINDOW_HOURS=1
|
||||
|
|
|
|||
Loading…
Reference in a new issue