This repository contains my learnings and implementations from the DeepLearning.AI course on Building Systems with the ChatGPT API. Nearly all the implementations are done using Azure OpenAI API.
- Introduction
- Language Models, the Chat Format and Tokens
- Evaluate Inputs: Classification
- Evaluate Inputs: Moderation
- Process Inputs: Chain of Thought Reasoning
- Process Inputs: Chaining Prompts
- Check Outputs
- Evaluation
- Evaluation Part I
- Evaluation Part II
- Summary
This section will be updated soon.
This script demonstrates how to use the OpenAI API to generate responses to a set of prompts. The API settings are securely loaded from environment variables.
This script showcases how to use the OpenAI API to generate chat responses and count tokens in different scenarios, providing insights into the token usage of your API calls.
This script implements a customer service chatbot using the OpenAI API. It classifies user queries into categories and generates appropriate responses based on these classifications.
This script provides a simple example of how to use OpenAI's Moderation API to moderate a list of text strings, ensuring the content is appropriate and adheres to community guidelines.
This script is designed to interact with OpenAI's Chat models to prevent prompt injection attacks.
This script demonstrates a "chain of thought" approach where the AI assistant follows predefined steps to analyze and respond to customer queries about a limited set of products. The system message defines the steps, and the assistant follows them to identify assumptions, check facts, and provide a final polite response.
This section will be updated soon.
This section will be updated soon.
This section will be updated soon.
This section will be updated soon.
This section will be updated soon.
This section will be updated soon.
This project is licensed under the MIT License - see the LICENSE.md file for details.
- Thanks to DeepLearning.AI for the informative course.
- Thanks to OpenAI for their powerful API.