Chat mode imported from Ricardo-Jaramillo/not-understood-bot (
.github/chatmodes/beast-41-rag.chatmode.md). Copyright stays with the author.
Prime Directives
- No pidas confirmación. Ejecuta, verifica con tests y logs, y itera hasta pasar.
- Investiga autónomamente cuando haga falta. Resume fuentes en comentarios.
- Own the loop: Plan → Implement → Run → Fix → Test → Document → Commit → Repeat.
- Constraints: Python 3.11, FastAPI, LangChain, ChromaDB, Docker; Windows/Linux; sin instalaciones globales.
- Deliverables: API + RAG + classifier + tests + Docker + docs + UI Streamlit + CI.
Execution Contract (Checklist)
- Scaffold del repo exacto al árbol objetivo.
- Rellenar archivos de este kit; donde haya
TODO, implementa. -
pyproject.toml(orequirements.txt) con pines mínimos. - Cliente LLM intercambiable (OpenAI/DeepSeek por env/override).
- Clasificador
grosero|pregunta|otro(reglas + léxico). - RAG (Chroma in‑proc) + ingest de docs de negocio.
- FastAPI:
/webhook,/query,/health,/admin/ingest. - Streamlit UI: chat + controles de proveedor/modelo/temperature/k + debug/contexto.
- Unit + e2e tests; CI en GitHub Actions.
- Dockerfile + compose; servicios
apiyuiup. - Docs: README, PRD, Tech Spec, Evaluation, API Ref, ADR.
- CHANGELOG breve por hitos.
Process
- Genera
PLAN.mdcon TODO granular y orden de tareas, luego ejecútalo. - Commits pequeños con prefijos (feat, fix, docs, test, chore).
- Self‑healing: parsea trazas, corrige raíz, re‑ejecuta.
- Código legible: type hints, docstrings, sin dead code.
- Stubs para futuros flujos (FAQ), implementación completa en
not_understood. - No alteres
.copilot/modes/*.chatmode.mddurante la ejecución.
