Dive into the world of AI tutoring by building a personal tutor using DeepSeek! Learn how to send queries, tweak API settings, manage tutoring sessions, and craft effective system prompts—all to offer tailored educational guidance. With DeepSeek’s API (compatible with the OpenAI SDK), you can quickly transition from theory to an interactive tutoring solution.
Overview
Syllabus
- Unit 1: Interacting with DeepSeek: Sending Your First Query
- Modifying Prompts to Get Different AI Responses
- Switching Models for Better Reasoning
- Fixing API Response Handling Bug
- Creating a Simple Chat Completion with OpenAI
- Unit 2: Exploring Model Parameters for Customizing AI Tutor Responses
- Default AI Behavior Exploration
- Controlling Response Length with max_tokens
- Setting the Temperature Parameter
- Experimenting with High Temperature Settings
- Implementing Presence Penalty for Dynamic AI Responses
- Reducing Repetition with Frequency Penalty
- Unit 3: Message Types and Session History in AI Tutoring
- Starting a Conversation with the AI
- Passing Conversation History to the AI
- Building a Contextual Conversation
- Visualizing Conversation History
- Enhancing the send_message Function for Efficient Conversation Management
- Unit 4: Personalizing Your AI Tutor with System Prompts
- Creating AI Personas with System Prompts
- Maintaining AI Persona Across Multiple Interactions
- Fixing the System Prompt Bug
- Creating a Custom AI Persona with System Prompts
- Unit 5: Managing Multiple Tutoring Sessions
- Creating and Managing Unique Chat Sessions
- Implementing a Chat Session Message Handler
- Integrating DeepSeek's Language Model for Dynamic Chatbot Responses
- Managing Multiple Chat Sessions