Module 13 Lesson 2: LangSmith Overview
The Cloud Control Room. Introduction to LangSmith, the enterprise platform for tracing and optimizing your AI applications.
The Cloud Control Room. Introduction to LangSmith, the enterprise platform for tracing and optimizing your AI applications.
Hands-on: Set up LangSmith and trace a complex multi-tool agentic decision.
Connecting to the Frontend. How to wrap your LangChain apps in a professional REST API using FastAPI.
Stability and Speed. How to use caching to save money on redundant queries and retries to handle common network errors.
Hands-on: Create a production-ready FastAPI endpoint with caching and retry logic.
From Script to Service. How to organize your code and dependencies for reliable deployment on any server.
Isolation at Scale. How to create a Docker container for your AI app to ensure it runs everywhere from AWS to Azure.
Hands-on: Finalize your deployment package and learn about cloud hosting options for LangChain apps.
The Power of Agnosticism. Why LangChain uses wrappers to ensure you can switch models without rewriting your code.
Messages vs. Strings. Understanding the different ways LLMs process input and why Chat models are the modern standard.
Zero Latency UX. How to use LangChain's .stream() method to display text as it's being generated.
Parallel Processing. How to use .batch() to send multiple independent queries to an LLM at once.
Hands-on: Implementing a model switcher that allows you to change the 'Brain' of your app via a simple configuration.
Reviewing model abstractions, streaming, and batching. Your final check before moving to Prompts.
The Art of Instruction. Learning the basic principles of prompt engineering: Context, Task, and Format.
From Static to Dynamic. Using PromptTemplate to create reusable instructions with variables.
The Agent's Blueprint. How to create templates for multi-role conversations (System, Human, AI).
Leading by Example. How to provide the model with sample Q&A pairs to enforce style and accuracy.
Prompts as Code. How to version-control your instructions and use the LangChain Hub to share and pull best-in-class prompts.
Hands-on: Build a reusable prompt library and implement a few-shot dynamic classifier.
The Connection Logic. Understanding how LangChain 'links' prompts, models, and output parsers into a single executable object.
Piping the Brain. Learning how to use the | operator to create your first executable LangChain Expression Language chain.
Multi-Step reasoning. How to pipe the output of one LLM call directly into the input of a second LLM call.
Dynamic Decision Making. How to use an LLM to decide which sub-chain should handle a specific user request.
Parallel Reasoning. How to run multiple chains at the same time and combine their results into a final synthesized answer.
Hands-on: Build a Parallel-Sequential Research Chain that writes, reviews, and translates a report.
Inbound Data. How LangChain standardizes the mess of real-world file formats into a single 'Document' object.
Handling the Web. How to scrape data from websites and extract text from multi-page PDF documents.
Optimizing for Logic. Why we must split long documents into smaller 'Chunks' to fit within LLM context windows.
Context-Aware Splitting. How to split Python code by functions and Markdown by headers to maintain semantic integrity.
Hands-on: Build a pipeline that loads a multi-page PDF and splits it into optimized chunks.
The Math of Meaning. How to turn human words into a list of numbers that represent their semantic soul.
Choosing your engine. Comparing OpenAI cloud embeddings with local HuggingFace models for speed and privacy.
The Semantic Database. How to store thousands of vectors so you can search them in milliseconds.
Fine-Tuning Retrieval. Learning how to control how many results (k) your vector store returns and what 'Score' means.
Hands-on: Build a local knowledge base using ChromaDB and perform semantic queries.
Fighting Hallucinations. Understanding the architectural pattern of grounding AI responses in factual, retrieved context.
The Search Object. How LangChain standardizes vector store lookups into a 'Retriever' that can be used in any chain.
Piping Facts. Putting it all together into a single LCEL chain that retrieves context and generates an answer.
The Art of Grounding. How to write the perfect system prompt to ensure your AI stays factual and cites its sources.
Hands-on: Finalize your first production-ready RAG system over your own local documents.
Breaking the Amnesia. Understanding why LLMs are stateless and how we provide 'history' to simulate a conversation.
The Raw Transcript. Using the simplest memory type to keep a literal record of every message in a conversation.
Dense context. How to use an LLM to periodically summarize a conversation to keep the memory footprint small.
Production State. How to move your memory from local RAM to persistent databases for multi-user applications.
Hands-on: Build a persistent chatbot that remembers your name across different CLI sessions.
The Agent's Hands. Understanding how to give an LLM the ability to execute code and interact with the physical world.
Creating Superpowers. How to turn any Python function into a LangChain tool using a simple decorator.
Instant Capabilities. Exploring the library of pre-made tools for web search, calculation, and database interaction.
Hands-on: Build a toolbox for an agent that can multiply numbers and search Wikipedia.