生成式 AI - Python 中的 OpenAI API、ChatGPT 和 GPT-4
- 1. Welcome!
- 1. Introduction and Outline
- 2. Where to get the Code
- 3. How to Succeed in this Course
- 2. The ChatGPI and OpenAI API
- 1. The ChatGPI and OpenAI API Section Outline
- 2. Signup For OpenAI & Get Your API Key
- 3. Set Environment Variables (Windows)
- 4. Set Environment Variables (Linux & Mac)
- 5. Install the OpenAI and Tiktoken Libraries
- 6. Pricing
- 7. How to Pay & Add Billing Details
- 8. Quick Start (Use the ChatGPT API Right Away!)
- 9. What is a Token
- 10. Estimating Costs with Tiktoken
- 11. Reproducibility
- 12. System Prompt
- 13. Incorporating History
- 14. Temperature
- 15. Frequency and Presence Penalties
- 16. How LLMs Conquered NLP
- 17. How LLMs Change the NLP & Machine Learning Workflow
- 18. Usage Policies
- 19. Suggestion Box
- 3. Prompt Engineering & Applications
- 1. Prompt Engineering Section Outline
- 2. Unstructured to Structured
- 3. Structured to Unstructured
- 4. JSON Mode
- 5. Translation, Tone Enhancement, and Language Detection
- 6. Sentiment Analysis & Stock Trading
- 7. Summarization & ELI5
- 8. Another ELI5 Example
- 9. Question-Answering
- 10. Chain of Thought Prompting
- 4. Retrieval Augmented Generation (RAG)
- 1. What is Semantic Search
- 2. Facebook AI Similarity Search (FAISS)
- 3. OpenAI's Embeddings Endpoint
- 4. RAG with FAISS (pt 1)
- 5. RAG with FAISS (pt 2)
- 6. RAG with FAISS (pt 3)
- 7. RAG with FAISS (pt 4)
- 5. Fine-Tuning
- 1. What Is Fine-Tuning and When Should You Use It
- 2. OpenAI's Fine-Tuning and File Endpoints
- 3. Fine-Tuning ChatGPT - Making the Dataset
- 4. Fine-Tuning ChatGPT - Upload Data and Create Fine-Tuning Job
- 5. Fine-Tuning ChatGPT - Check the Results
- 6. GPT-4 With Vision (VIP)
- 1. GPT-4 With Vision Concepts
- 2. GPT-4 With Vision Applications in Code
- 3. Application Iterative Web Design
- 4. Analyze Video With GPT-4
- 7. Background Info
- 1. The Roots of Semantic Search