pagepiper/app/api/chat.py
pyr0ball 4c2370f1de feat(api): add library CRUD endpoints and FastAPI factory
Implements GET/DELETE /api/library, POST /api/library/{id}/reingest,
POST /api/library/scan, and GET /api/library/{id}/status. Adds FastAPI
app factory with lifespan migrations, BM25 singleton wiring, get_db
dependency, ingest task registry with cf-orch/BackgroundTasks fallback,
and placeholder search/chat routers. All 5 new tests pass (14 total).
2026-05-04 17:24:50 -07:00

5 lines
180 B
Python

# app/api/chat.py
"""RAG chat API — streaming LLM responses with page citations (Task 6)."""
from fastapi import APIRouter
router = APIRouter(prefix="/api/chat", tags=["chat"])