Docs · Quickstart
5 minutes, no API key.
1 · Install & run
pip install memflex cp .env.example .env EMBEDDING_BACKEND=hash python -m reflex.api.app # :8000 # open http://localhost:8000/docs (Swagger UI)
2 · First ask (thinks, memorizes)
In /docs, POST /ask → Try it out:
{"user_id": "u123", "message": "When will my refund arrive?", "llm": "mock/mock-echo"}→ "source": "llm". System 2 thought, then saved a reflex.
3 · Ask again (memory, ₹0)
Execute once more → "source": "reflex", "confidence": 0.9. No LLM call. Then try it in another language — German ("Wo ist meine Rückerstattung?") or Spanish ("¿Dónde está mi entrega?") run the same loop.
4 · Watch the money
curl http://localhost:8000/metrics # hit_rate, avg_latency_ms, cost_saved_30d_inr, calibration[]
Next: API reference · plug in your agent · how it works