
Explore a beginner-friendly, project-based course on building production-quality conversational apps using OpenAI GPT APIs, five projects, fine-tuning, semantic search, and custom datasets to create a financial AI assistant.
Explore course logistics for building a Python-based OpenAI GPT project with a Q&A chatbot, covering prerequisites in Python and Pandas, Streamlit basics, and using Google Colab and GitHub for materials.
Build a financial assistant across five mini projects, enabling stock questions, earnings call summaries, and real-time charts, backed by a Streamlit interface and a vector database stack like Pinecone.
Set up a Python virtual environment, clone the starter Financial Starter project, install OpenAI and Pinecone dependencies, and launch a Streamlit app to prototype a ChatGPT clone.
Build a ChatGPT clone in Streamlit in about 50 lines of code, with a text input and persistent chat history, plus OpenAI API integration.
Finish OpenAI API integration in a Streamlit ChatGPT clone by creating a secrets file with your OpenAI API key, restarting the server, and testing the text-davinci-003 model.
Explore how ChatGPT, GPT-3, and InstructGPT work as language models that generate human-like text, with emphasis on GPT-3.5, attention mechanisms, and API applications.
Master prompt engineering and advanced GPT parameters to shape outputs, control randomness and word probabilities, and tailor completions for reliable app development with GPT.
Discover how GPT becomes a multi-task, few-shot learner with strong intent understanding, enabling one model to replace many narrow models through prompts and easy fine-tuning.
Develop an intent classifier for a financial assistant in a Streamlit app using GPT-3.5 to categorize stock questions, earnings summaries, or other prompts, extract tickers, and route to handlers.
Learn to build end-to-end intent classification with GPT in Python using a Google Colab notebook, comparing zero-shot and few-shot prompts, and evaluating with test data and class probabilities.
Apply GPT3.5 to classify stock questions and earnings, generate test data, and evaluate with a classification report, achieving high accuracy. Explore a multitask prompt to extract tickers.
Integrate the intent classifier into the app by centralizing prompts and utilities, routing by intent to stock question, earnings summary, or other handlers, and testing end-to-end with OpenAI.
Examine the five fundamental limitations of GPT models, including token limits, hallucination and imperfect memory, knowledge cut-off, and data gaps, and apply practical strategies like recursive summarization and prompt engineering.
Explore the limits of GPT reasoning and math, and how chain-of-thought prompting with step-by-step prompts boosts performance. Discuss data privacy and semantic search and question answering.
Learn how semantic search uses embeddings and cosine similarity to retrieve context for answers, reduce hallucinations, and implement a retriever-generator QA workflow with Pinecone and OpenAI embeddings.
Explore Python word and sentence embeddings, compute cosine similarity, and build a top ten similar words tool using a 10,000-word MIT dataset and a 768-d vector model.
Build a semantic search engine in Python using OpenAI embeddings and a vector database to retrieve 2,286 financial news articles by semantic similarity.
Implement semantic search by embedding articles with OpenAI's API and uploading vectors to Pinecone for fast nearest-neighbor queries in a vector database.
Embed queries as vectors with get embeddings OpenAI, call Pinecone REST API to fetch top K matches, and render article previews in the stock question handler.
Build a GPT-powered Q&A assistant that answers questions from custom data using semantic search, prompt engineering, and fine tuning. Balance accuracy and hallucinations with discriminators and model selection.
Build a Q&A system using semantic search and a retriever-generator model with contextual articles. Reduce hallucinations with prompt engineering and discriminator fine-tuning, and integrate the Q&A function into the app.
Explore prompt engineering to reduce hallucinations in QA, using a discriminator and a refined template, and construct training data with generative labeling of positive and negative samples for fine-tuning.
Fine-tune a GPT model on a prepared training and validation set with OpenAI's API, then evaluate using accuracy and F-score, and use a discriminator with semantic search for safe Q&A.
Learn to generate earnings call summaries with GPT using recursive summarization with chunking, embeddings, and pinecone-based semantic search, including bullet points and quotes for fast Q&A.
Build an earnings call summarizer in a Google Colab notebook, creating chunked transcripts, generating summaries with GPT-3.5, embedding into Pinecone, and enabling semantic search and Q&A in the AI assistant.
integrate the earnings summary feature by fetching summaries for tickers via semantic search, update utils.py with namespace and filter, render results in streamlit, and test with various tickers.
Add real-time financial charting to your AI assistant by pulling data from Yahoo Finance with the finance module, and render Plotly candlestick charts in Streamlit for multiple tickers.
Deploy a streamlit app to streamlit cloud by pushing to github, linking app.py, and configuring secrets like pinecone api key; set python version and deploy to obtain a URL.
Note: This course assumes that you have gotten the basics of Python and Pandas down. You don’t need to be an experienced Python and Pandas developer, but the ability to follow along and understand syntax is needed.
Take your AI development skills to the next level with this course!
In this course, you will learn how to build an AI assistant powered by OpenAI's GPT technology, HuggingFace, and Streamlit. In addition, you will learn the foundational concepts of GPT and generative AI, such as Large Language Models, Prompt Engineering, Semantic Search, Finetuning, and more. You will also understand how to use OpenAI’s APIs and their best practices, with real world code samples.
Unlike other courses, you will learn by doing. You will start with a blank app, and add features one at a time. Before adding a new feature, you will learn just enough theory to confidently build your app.
You will get all the code samples, including Google colab notebooks, and access to the Q&A forum if you get stuck. You don’t need a powerful PC or Mac that has GPUs to take this course. By the end of the course, you will be able to deploy and create your first app using OpenAI’s technology, and be confident about the theoretical knowledge behind this technology. So sign up today and start building your AI powered app!
What you will learn:
Creating an AI chatbot with Streamlit
IntentClassifiers - what they are, how to build it.
Prompt Engineering: different ways of crafting the perfect prompt
How to evaluate and choose the best prompt
The concept of word embeddings
How to use word embeddings to quantify semantic similarity
How to use a vector database to store word embeddings
How to create a search engine that searches based on word embeddings
How to perform entity resolution for documents
Sentiment extraction using GPT
How to clean a finance dataset for use in a semantic search
How to embed finance documents and upload them to a vector database
How to use a language model to generate answers to questions
How to use fine-tuning to ensure the language model does not hallucinate
How to deploy a Q&A bot and a custom action system.