
Explore building chat applications with OpenAI and Lang Chain, using GPT-4 to create stateful, context-aware chatbots with reasoning. Apply to web summaries, database queries, and a 365 Q&A.
Explore real-world business applications of LangChain, from masking sensitive data in Ally AI to smart ticket routing and code generation copilots, powered by retrieval augmented generation.
Explore how LangChain powers LLM applications with memory, document loaders, and tool integrations, using OpenAI's GPT-4 and other models to build stateful, context-aware chatbots.
Explore how tokens drive pricing for OpenAI models, distinguish input and output tokens, and compare GPT-4 prices and context windows, then set up an Anaconda environment and API key.
Set up a Conda environment for LangChain and add it as a Jupyter kernel. Install OpenAI, ipykernel, and Jupyter tools, and configure the OpenAI API key as an environment variable.
Learn how to obtain and securely store your OpenAI API key or secret key, copy it to a text file, and understand billing when accessing OpenAI's API and language models.
Explore system, user, and assistant roles in chat completion objects. Learn how the system message directs model behavior and persona, while user prompts and assistant outputs shape responses.
Explore how input tokens, completion tokens, and max tokens influence model outputs and API pricing. Use temperature and the stream option to deliver real-time, delta content in chat responses.
Explore the Lang Chain chat OpenAI integration, learn about chat message types, prompt templates, and the chain concept, and build your first Lang Chain mini project with a sarcastic chatbot.
Explore how Lang Chain uses system and human messages to steer chat models, define a chat model, and invoke it with multiple messages to generate a sarcastic response.
Explore using AI messages in LangChain to shape model responses with few-shot prompting, removing system messages, and demonstrating sarcasm via dog and cat name examples.
Discover how to design reusable prompt templates with LangChain’s prompt template class, converting system and user messages into a prompt value by invoking with a dictionary of input variables.
Explore the comma separated list output parser in LangChain, converting chat outputs into a clean list of values and using get format instructions to refine formatting.
Build a chain with a chat template, a chat model, and a comma separated list output parser using long chain expression language and invoke, stream, and batch methods.
Explore batching in LangChain, running multiple input sets in parallel with the batch method, using pet and breed like dog and shepherd or dragon and nightfury to boost time efficiency.
Learn to pipe chains with a runnable passthrough identity, build tools and strategy chat templates, and combine chains to generate personalized learning plans for a data scientist.
Visualize lang chain graphs by rendering chain components with the Gandalf Python package, showing two chat prompt templates feeding a chain and illustrating parallel branches.
Run the books chain and the projects chain in parallel with the runnable parallel class, compare to sequential execution, visualize the graph, and show faster results for a Python input.
Learn how a runnable parallel object runs multiple runnables in parallel and how to chain it with a time estimation template in LangChain, using books and projects as input.
Convert Python lambda functions into runnable objects with the runnable lambda, then compose them into a chain using pipe to compute list sum and its square, and visualize the graph.
Explore the @chain decorator in LangChain, wrapping functions into runnable lambdas to build chained data processing with examples, type checks, and cautions about name conflicts.
Discover three methods to inject custom data into large language models—prompting, fine tuning, and retrieval augmented generation (rag)—and compare their trade-offs for proprietary information.
Explore document loading and splitting in LangChain, converting diverse formats into standardized document objects, and creating meaningful chunks to fit model context windows for efficient retrieval augmented generation.
Learn how document embedding converts text into vectors to capture semantic meaning and enable similarity searches using dot product, cosine similarity, and Euclidean distance.
Learn how LangChain loads data into document objects, splits text into chunks, embeds them as vectors, and stores them for semantic search with diverse retrievers and augmented generation.
Learn to load a docx file with the DocXToTextLoader in Langshan, producing a single document text and file path metadata for reliable indexing.
Explore indexing documents with a LangChain character text splitter by splitting text into 500-character chunks, adjusting overlap, and using custom separators to control where chunks end.
Load and split text with a doc X loader and text splitter, generate OpenAI embeddings, and assess semantic similarity between chunks to prepare for a vector database in chat apps.
Discover retrieval in a vector store using similarity search and maximal marginal relevance. See LangChain's vector store retriever, embeddings, and an LLM generate responses.
Use maximal marginal relevance (mmr) search to balance relevance and diversity in retrieval, improving on similarity methods. Tune lambda and filters to target the second lecture and observe result diversity.
Implement a vector store retriever in a LangChain workflow, configure MMR search with k=3 and lambda=0.7, and invoke it to retrieve documents for rag technique generation.
Build the generation step of the Rag technique with a vector store and an expression language chain, using three documents and maximal marginal relevance for a context-specific response.
Are you an aspiring AI engineer excited to integrate AI into your product?
Are you thrilled about the breakthroughs in the field of AI?
Or maybe you’re eager to learn this new and exciting LangChain framework everyone’s talking about.
If yes, then you’ve come to the right place!
Why should you consider taking this LangChain course?
In this Build Chat Applications with OpenAI and LangChain course, we’ll explore the increasingly popular LangChain Python library to develop engaging chatbot applications.
With detailed, step-by-step guidance, you will use OpenAI’s API key to access their powerful large language models (LLMs). Once we have access to foundational models, we'll utilize LangChain and its integrations to create compelling prompts, add memory, input external data, and link it to third-party tools.
LangChain's integration with third-party tools distinguishes it by enabling connections to various language models and loading documents in multiple formats. It also allows for selecting suitable embedding models, storing embeddings in a vector store, and linking to search engines, code interpreters, and tools like Wikipedia, GitHub, Gmail, and more.
None of this would be possible without mastering the LangChain Expression Language (LCEL)—essential for developing stateful, context-aware reasoning chatbots. These chatbots remember past conversations, answer questions about unseen data, and tackle more complex problems.
Additionally, we’ll spend much of our time discussing the state-of-the-art Retrieval Augmented Generation (RAG), both theoretically and practically. This technique allows LLM-powered applications to analyze and answer questions about information outside their training data. Ultimately, we’ll create a chatbot that answers students’ questions on courses from the 365 library.
What skills do you gain?
- Integrate existing applications with powerful LLMs.
- Connect to OpenAI’s language and embedding models using an OpenAI API key.
- Develop prompt engineering techniques to enhance AI response performance and relevance.
- Implement RAG to enrich your AI-driven product with a knowledge base.
- Master the LCEL protocol—essential for developing applications with the LangChain Python library.
- Connect external tools to your LLM-powered application.
- Understand the mechanics behind agents and agent executors.
Enhance your career prospects with rare and highly sought-after AI Engineering skills by enrolling in this LangChain and OpenAI course.
Click ‘Buy Now’ and acquire real-world AI engineer skills today!