Sefism is free for learners. We are here to help you grow, one step at a time.Join for free
Sefism.

Cheat sheet · Specialise

LangChain and LlamaIndex cheat sheet (LangChain)

Opens with credits

A quick-revision book on LLM applications with LangChain in Python: RAG from loading to evaluation, chat models, prompts, runnables, structured output and tool calling, plus LangGraph for agents with state and LangSmith for tracing.

Curated by Tauseef Fayyaz8 chapters58 concepts80 glossary terms

Chapters

8 chapters · 58 concepts

  1. 1RAG and agents: the big pictureWhat retrieval-augmented generation and agents are, the two phases of a RAG system, and when a framework earns its place.7 concepts
  2. 2Loading and chunkingTurning PDFs, web pages and other sources into clean text with metadata, then into chunks sized for retrieval.7 concepts
  3. Embeddings and vector storesHow text becomes vectors, where those vectors live, and how filtering and hybrid search make lookups precise.7 conceptsOpens with credits
  4. Retrieval and rerankingGetting the right few chunks in front of the model: retrievers, reranking, query rewriting and how context is packed.6 conceptsOpens with credits
  5. Agents, tools and memoryLetting the model act: defining tools, the loop that runs them, memory across turns, and the limits that keep agents safe.8 conceptsOpens with credits
  6. Evaluation and observabilityMeasuring retrieval and answers against a test set, tracing every call, and keeping quality from quietly regressing.7 conceptsOpens with credits
  7. LangChain coreChat models, messages, prompt templates, runnables composed with LCEL, structured output and tool calling.8 conceptsOpens with credits
  8. Agents with LangGraph and LangSmithLangChain agents run on LangGraph: prebuilt agents first, then graphs with explicit state, persistence and human approval, all traced in LangSmith.8 conceptsOpens with credits
  9. 9Glossary, A to ZEvery concept in the sheet and the smaller terms it uses, in one list.80 terms

About this sheet

RAG pipelines, retrieval quality, agents, tools, memory and evaluation in Python, with LangChain and LangGraph or LlamaIndex.

Picked from the other libraries by shared topics.

Work with me

Stuck on something specific?

Writing only gets you so far. If you want an answer to your situation rather than the general case, book a session and we will work through it together. Sessions are free for approved Sefism members, and a few slots open each week.

  • 1:1 Mentorship
  • Fresh Graduate Mentorship
  • Career Guidance

Brand deals, promos and partnerships: tauseeffayyaz@gmail.com