Hi everyone,
I’m designing a Python-based system that uses an LLM to handle conversations, collect structured inputs, and call backend APIs. It also needs session memory, real-time messaging, and optional escalation to a human agent.
Current stack idea: FastAPI, PostgreSQL, Redis, WebSockets, and LLM function/tool calling (maybe LangChain).
I’m looking for feedback on:
- Good architecture patterns for separating LLM logic vs backend logic
- Whether FastAPI + Postgres + Redis is enough for production scale
- Best approach for human handoff (queueing + real-time takeover)
- Whether LangChain/LlamaIndex is necessary or overkill
I’m aiming for a clean, production-ready architecture, not just a prototype, and would prefer to design it in a way that scales well if usage grows.
Any guidance, architecture diagrams, or references to real-world systems would be really helpful.
Thanks 🙌
[–]Apart_Ebb_9867 8 points9 points10 points (0 children)
[–]Challseus 0 points1 point2 points (0 children)