I'm happy to share a beginner-friendly tutorial that walks through the core concepts of LangChain JS using Google Gemini as the LLM. This tutorial is divided into 5 focused parts, each available in a separate GitHub branch to help you learn step-by-step.
Each part of the tutorial is isolated in its own branch:
prompt– Creating dynamic prompt templates with variablesllm– Understanding and invoking LLMs using LangChainllm-model– Using Gemini Flash 1.5 with LangChain JSmemory– Adding memory to retain conversation historyread-pdf– Reading PDFs and answering questions from the content
You can switch between these branches using:
git checkout prompt
git checkout llm
# etc.