pagepiper/app/api
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
..
__init__.py feat: add database schema and migration runner 2026-05-04 17:10:38 -07:00
chat.py feat: route pagepiper.rag_query through cf-orch task assignment layer (closes #7) 2026-05-16 21:05:02 -07:00
feedback.py feat: RAG retrieval quality, artifact cleaning, and ingestion progress UI 2026-05-06 08:25:58 -07:00
feedback_attach.py feat: RAG retrieval quality, artifact cleaning, and ingestion progress UI 2026-05-06 08:25:58 -07:00
ingest.py feat(api): add library CRUD endpoints and FastAPI factory 2026-05-04 17:24:50 -07:00
library.py feat: GET /api/library/sample-chunks for Avocet embed bench (closes #6) 2026-05-13 23:01:16 -07:00
search.py feat: per-user database isolation for cloud instances (closes #4) 2026-05-13 16:31:51 -07:00