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: Sending a Simple Query to DeepSeek
- Sending Your First Message to DeepSeek
- Switching to a Different DeepSeek Model
- Fix the API Response Bug
- Complete Your First DeepSeek AI Interaction
- Unit 2: Customizing AI Tutor Responses with Model Parameters
- Testing Default AI Behavior Without Parameters
- Controlling Response Length with max_tokens
- Adding the Temperature Parameter
- Experimenting with High Temperature Settings
- Adding Presence Penalty to Encourage Topic Diversity
- Minimizing Repetition with Frequency Penalty
- Unit 3: Message Types and Session History
- Starting a Conversation with DeepSeek
- Sending Your First Query with Conversation History
- Building a Conversation with DeepSeek
- Visualizing Conversation History
- Enhancing the sendQuery Function
- Unit 4: Personalizing Your Tutor with System Prompts
- Creating a New AI Persona with System Prompts
- Maintaining AI Persona Across Multiple Interactions
- Fix the System Prompt Bug
- Create a Custom AI Persona
- Unit 5: Managing Multiple Tutoring Sessions
- Creating Unique Chat Sessions
- Implementing a Chat Session Message Handler
- Integrating DeepSeek's Language Model for Dynamic Chatbot Responses
- Managing Multiple Chat Sessions