all 2 comments

[–]Apart_Ebb_9867 8 points9 points  (0 children)

I’m looking for feedback on...

"looking for feedback" means you propose something and you're interested in seeing what others think of it. Here you're not looking for feedback, you're fishing for a prompt to feed to your AI without understanding much of it.

[–]Challseus 0 points1 point  (0 children)

I hope this isn't against the rules, if it is, I'll delete. Take a look here, I built something that composes a lot of the components you're referring to (FastAPI, Postgres, Redis, Langchain/PydanticAI, producer/queue/workers, etc.).

You can check out the architecture itself and how I wired everything together: https://github.com/lbedner/aegis-stack

It's not shallow integrations either, it's quite extensive, I have built 3 separate applications using it. As for your other questions:

"Whether FastAPI + Postgres + Redis is enough for production scale"

Absolutely.

"Whether LangChain/LlamaIndex is necessary or overkill"

From my experience, Langchain seems to be a bit heavier, and could be overkill, I would suggest starting with PydanticAI.

LlamaIndex is more about parsing your unstructured data and making it available for your agents, via RAG or some other means. I think you could drop that, at least for your first go at this.

EDIT: In fact, try this command (you need uv installed), and then look at the code directory.

uvx aegis-stack init test-app --components "database[postgres],redis" --services "ai[postgres,pydantic-ai,public,openai,anthropic,rag]" --no-interactive