
Learn to build generative ai apps with chatgpt and langchain using python, openai api, and tools to perform natural language processing, memory management, and intelligent qa systems.
Explore how developers use ChatGPT via the web interface and the OpenAI API, compare free and paid models, and master prompt development, context management, and plugins for building AI apps.
Explore how the ChatGPT API solves text analysis tasks with long chain wrappers, token counting, and cost tracking, including summarization, sentiment analysis, translation, and rephrasing.
Explore OpenAI API model variants, focusing on GPT text models and chat completions, with snapshots for repeatable results, token-based pricing, and rate limits.
Set up your OpenAI account and API access to run course examples, note free trial rate limits, and securely store your secret key with a dot env file.
Learn to interact with the OpenAI API using the LangChain library, configure API keys via environment variables, and use chat and text models with messages, noting cost differences.
Explore how input context enables in-context learning and action planning, using open and closed book prompts, zero/one/few-shot patterns, and tool-driven agents to plan actions.
Explore prompt engineering for developers, mastering the temperature parameter, and crafting clear, concise prompts with tone, instruction, and output format to control responses.
Post-process ChatGPT responses using long-chain and structured output parsers to format, extract, and convert natural language into Python values or dictionaries, with formatting instructions in prompts.
Demonstrate applying moderation techniques to both input and output in ai apps, using OpenAI moderation endpoints to classify content into hate speech, harassment, self-harm, and other categories.
Build an automated ai app that analyzes web shop reviews using prompts, prompt templates, long chain chains, and output parsing to translate, detect language, assess sentiment, and extract product details.
Explore the difference between chat and QA modes, highlighting how a stateless chat builds conversation by interleaving user questions and AI answers, tracking tokens, and using the full conversation.
Explore how chat conversation memory works using a conversation buffer memory and a conversation chain with OpenAI's chat GPT 3.5 Turbo, memory prompts, and history handling.
Explore building a working chat bot UI in a jupyter notebook by creating a conversation chain with gradio or panel, including chat box and clear history.
Discover how the refine chain builds a final summary by iteratively refining an existing summary across pages, contrasting with the map-reduce chain for large PDFs.
Load web page content with a long chain using the web base loader, split into 3,000-character or 2,000-token chunks, then refine a summarization chain.
Explore naive question answering on a pdf document by scanning every page for answers, noting the time and cost, then consider a faster map reduce chain that selects relevant fragments.
Learn how semantic similarity search uses text embeddings to pick the most relevant pages from long documents, store them in a vector database, and rank results by relevance scores.
Build a qa system on a pdf using text embeddings and semantic search with a vector db; retrieve two relevant pages and generate answers via a retrieval chain.
Create a GPT-3.5 Turbo powered pandas user guide chatbot using a persistent Chroma vector DB with embeddings, memory, and a conversational retrieval chain to fetch the most relevant documents.
Build a vector DB with text embeddings from code, then apply a conversational retrieval chain using ChatGPT to answer questions about code, demonstrated with TikTokin.
Discover how agents built with LangChain and React reason, plan actions, and use tools to solve tasks, employing tool decorators, prompts, and an agent executor to produce final answers.
Explore how OpenAI functions enable tool calls in GPT-3.5 Turbo and GPT-4, building an OpenAI functions agent with tools like get weekday and DuckDuckGo search.
Add chat memory to an OpenAI functions agent by integrating a conversation buffer memory and tool calls (get weekday, Wikipedia) to preserve chat history across questions.
Leverage a vector db to augment parametric memory with custom knowledge from a pdf research paper, using embeddings and a conversational retrieval agent.
Set up a Bing search API account and environment variables to enable Bing in a LangChain notebook, then use the Bing API wrapper with GPT-4 or GPT-3.5 turbo.
Explore building an SQL database agent with LangChain and SQLite Sakila, enabling ad hoc analysis through natural language queries and an SQL toolkit.
ChatGPT revolutionises businesses, how we work and greatly influences our lives. It is much more than a famous Web and mobile applications everyone is using now. Its creators recently released a publicly available API enabling creation of sophisticated AI Apps utilising the power of GPT models to most difficult Natural Language Processing tasks and beyond.
This course aims at Python developers to teach how to harness the power of latest and greatest Large Language Models in custom, innovative applications, how to interface existing data in various formats with ChatGPT available through the API.
You will learn the magic of LangChain - the Python Library delivering ever growing ecosystem of tools and integrations necessary to build the AI Apps. LangChain offers not only convenient wrappers around ChatGPT model APIs, but has plenty of ready-made classes and functions facilitating creation and use of Chat Memory, Vector DBs for semantic search of relevant documents, and blueprints of powerful Agents, capable of using Python functions in your environment to get access to local, proprietary data.
The course is very practical and consists of dozens of practical demonstrations of Python code solving various AI tasks. You will get detailed, precise and in-depth explanation of all presented concepts and algorithms.
All of the code used in the course is available for your download from GitHub repository. You can use it as a basis to further exploration and experimentation leading to quick and easy development of real-life AI Apps.