Wires the context/RAG layer into FastAPI via a dedicated _ctx router (/turnstone/api/context/*): document upload (POST/GET/DELETE /docs), fact CRUD (POST/GET/DELETE /facts), wizard state machine (/wizard/schema, /wizard/step, /wizard/apply), and a debug search endpoint (/debug/search). All blocking DB calls are dispatched via asyncio.to_thread to keep the event loop free. |
||
|---|---|---|
| .. | ||
| api | ||
| context | ||
| ingest | ||
| services | ||
| watch | ||
| __init__.py | ||
| mcp_server.py | ||
| rest.py | ||