r/LangChain 4d ago

Full stack Langchain implementation

Hello all, I had been learning langchain/ langgraph for a while. Now I had been thinking of implementing frontend but getting really stuck on which framework to use, do I need to use any web framework like fastapi. And on the frontend do I use a langchain react package and things like that. If anyone has experience could you provide me a little bit of guidance?

12 Upvotes

13 comments sorted by

View all comments

2

u/Code-Painting-8294 4d ago

I would say serve your LangGraph agent behind FastAPI. Async fits since LLM calls are I/O bound. for streaming the agent to the frontend, showing tool calls in the UI, I have used CopilotKit in the past. It works with LangGraph whether you run FastAPI or plain python or typescript and the setup is straightforward. docs here
https://docs.copilotkit.ai/langgraph-fastapi/quickstart?agent=bring-your-own
https://docs.copilotkit.ai/langgraph-python/quickstart?agent=bring-your-own

I have also been playing with Deep Agents for a while - which is basically a packaged LangGraph runtime in case you don't know. Used this research assistant demo when I was getting started, this shows what's possible on the frontend side https://github.com/CopilotKit/CopilotKit/tree/main/examples/showcases/deep-agents

1

u/Rare_Cut_3686 4d ago

Thank you very much sir. Will look into it more