pagepiper/app
pyr0ball b16620385a feat: route pagepiper.rag_query through cf-orch task assignment layer (closes #7)
When CF_ORCH_URL is set, chat now calls CFOrchClient.task_allocate("pagepiper",
"rag_query") instead of routing through LLMRouter with an explicit model. The
coordinator resolves the assignment (granite-4.1-8b via assignments.yaml) and
returns an allocated URL; pagepiper wraps it in a minimal LLMRouter config for
the Synthesizer. Falls back to LLMRouter on TaskNotFound or allocation failure,
so standalone Ollama installs are unaffected.

Extracts _run_chat() and _build_llm_for_alloc() helpers to keep the endpoint
body readable regardless of which path fires.
2026-05-16 21:05:02 -07:00
..
api feat: route pagepiper.rag_query through cf-orch task assignment layer (closes #7) 2026-05-16 21:05:02 -07:00
services fix: quote-first prompt structure + escape phrase post-processing to kill hallucinations 2026-05-06 10:30:11 -07:00
__init__.py feat: add database schema and migration runner 2026-05-04 17:10:38 -07:00
cloud_session.py feat: per-user database isolation for cloud instances (closes #4) 2026-05-13 16:31:51 -07:00
config.py feat: per-user database isolation for cloud instances (closes #4) 2026-05-13 16:31:51 -07:00
deps.py feat: per-user database isolation for cloud instances (closes #4) 2026-05-13 16:31:51 -07:00
main.py feat: encryption at rest infrastructure for cloud user data (closes #5) 2026-05-13 18:35:17 -07:00
startup.py feat: encryption at rest infrastructure for cloud user data (closes #5) 2026-05-13 18:35:17 -07:00