Repository navigation
Operations and Troubleshooting
PantheraNestah edited this page Nov 5, 2026
·
1 revision
| Log line | Meaning |
|---|---|
[Warmup] retriever ready in Xs / [Warmup] verifier ready in Xs
|
Preload finished (about 50 s total on a CPU) |
[Retriever] Semantic / BM25 / After RRF fusion / Reranked ... / Final: ... |
Retrieval stages for one request |
[LLM] tier=medium -> anthropic:claude-haiku-5-5:medium |
Which model served the call |
[LLM] <model> usage: input=... cache_write=... cache_read=... output=... |
Anthropic token use and prompt-cache activity |
[LLM] <model> usage: prompt=... cache_hit=... reasoning=... |
DeepSeek token use and cache hits |
[Verifier] Result: score=... label=... |
Grounding result for the previous /query (arrives later) |
[Logger] Query saved / Learn (...) saved
|
The log row was written |
Logging is plain INFO-level standard output from uvicorn plus the app's loggers.
| Symptom | Likely cause and fix |
|---|---|
No ChromaDB collections found on the first query |
The vector store is missing. Build it (Getting Started) |
ANTHROPIC_API_KEY is not set but a tier is configured to use 'anthropic' |
The key is missing, or a tier you did not intend still uses Anthropic. Set the key or override that tier in .env (Configuration) |
Bad model spec ... / Unknown provider ... / Unknown effort ...
|
A malformed LLM_MODEL_* value |
| HTTP 200 with a short apology instead of an answer or lesson | The model call failed; the exact error is in the server log (authentication, rate limit, refusal, bad model ID) |
Lesson is cut off, log shows hit max_tokens
|
Reasoning tokens used part of the budget. Raise the limit in generator.py or lower the effort |
| First request takes minutes |
PRELOAD_MODELS=false, or first-ever start downloading models. Leave preload on |
database is locked |
Should not happen now (WAL plus a 30 s wait). If it does, check for another process holding the database open |
alembic upgrade head fails |
Expected on a new database. Use alembic stamp head (Data and Logging) |
A source shows as unknown
|
A chunk found only by keyword search; known bug (Known Issues and Limitations) |
| Install fails or fills the disk with CUDA packages | Use the CPU install path (Getting Started) |
| Out-of-memory on a small machine | Several models load in one process; give it more memory or run one process. Memory needs have not been measured |
This project is a prototype. If you deploy it anyway:
- Run one worker process. Each process loads every model and its own BM25 index, so more workers multiply memory use.
- Drop
--reload, and bind to127.0.0.1behind a reverse proxy that handles TLS and authentication. The API has none. - Tighten CORS in
app/main.py(it allows every origin). - Protect and back up
nutripepper.db(with its-waland-shmfiles) and set a retention policy; see Data and Logging. - Keep keys in the environment or a secret store, not in the repository.
- There is no Docker configuration in the repository.
Latency is dominated by the language model call. Do not rely on any latency figure from the evaluation: it is historical (Evaluation).
Documentation last verified against the code on 2026-11-05. Evaluation figures are historical, see Evaluation. Educational tool, not medical advice.
Use it
How it works
- Architecture
- Retrieval Pipeline
- LLM Layer
- Prompts and Lessons
- Grounding Verification
- Knowledge Base
- Data and Logging
Quality
Develop