Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

CodeSignal

Creating a Personal Tutor with DeepSeek in Python

via CodeSignal

Overview

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.

Syllabus

  • Unit 1: Sending a Simple Query to DeepSeek
    • Modifying Your First API Request to Get a Fun Fact
    • Switching Models to Improve Reasoning Accuracy
    • Fixing a Bug in API Response Handling
    • Completing a Basic OpenAI API Interaction
  • Unit 2: Exploring Model Parameters in DeepSeek
    • Exploring Default AI Behavior with Basic Parameters
    • Controlling Response Length with max_tokens Parameter
    • Adding Temperature Parameter to Control AI Creativity
    • Exploring High Temperature Settings for AI Responses
    • Implementing Presence Penalty to Encourage Topic Diversity
    • Reducing Repetition with Frequency Penalty Parameter
  • Unit 3: Message Types and Session History
    • Initializing Conversation History with a User Message
    • Passing Conversation History to the AI
    • Building a Conversation History with OpenAI API
    • Visualizing Conversation History
    • Enhancing the send_message Function for Efficient Conversation Management
  • Unit 4: Personalizing Your Tutor with System Prompts
    • Creating a Custom AI Persona with System Prompts
    • Maintaining AI Persona Across Multiple Interactions
    • Fixing the System Prompt Role Bug
    • Creating a Custom AI Persona with System Prompts
  • Unit 5: Managing Multiple Tutoring Sessions with DeepSeek
    • Creating a Chat Session Management Function
    • Chat Session Message Handler Implementation
    • Integrating DeepSeek Models
    • Managing Multiple Chat Sessions

Reviews

Start your review of Creating a Personal Tutor with DeepSeek in Python

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.