I wrote a set of notes on LangChain and LangGraph where every concept gets a diagram first and code second.
What is in it:
- Runnables, pipe, RunnableParallel and RunnablePassthrough, explained with pictures
- Tool calling: u/tool, bind_tools and the full loop with ToolMessage
- RAG: document loaders, text splitters, embeddings, Chroma, and a RAG chatbot with history
- LangGraph: state and reducers, conditional edges, fan-out and fan-in, loops, memory, human in the loop, conditional RAG
All code is in one repo, one folder per topic, each with requirements.txt and .env.example. It runs on free API keys.
Notes: https://genai-notes.vercel.app
Code: https://github.com/dhruv608/genai-notes
If something is wrong or outdated, please tell me and I will fix it.
More lessons are coming (GraphRAG, advanced agents and more). ⭐ Star the repo to keep it for revision and to get the updates.