Transform your tutoring AI into a scalable web service using Axum! In this course, you'll learn how to build, test, and integrate all components into a cohesive Rust web application. Powered by DeepSeek through the OpenAI SDK, your tutor will deliver personalized academic support with the performance, safety, and scalability of Rust.
Overview
Syllabus
- Unit 1: Adding a System Prompt
- Loading the Prompt
- Handling Errors
- Updating the System Prompt
- Adding Guidelines
- Adding Business Constraints
- Adding Requirements
- Unit 2: Building a Session Manager
- Create and Retrieve Sessions
- Conversational Retrieval
- Adding Messages
- Adding and Retrieving Messages
- Unit 3: Implementing the Service Layer
- Creating a Tutoring Session
- Storing Queries
- Processing Queries
- Testing Context Retention
- Managing Multiple Sessions
- Unit 4: Managing Controller Logic
- Ensuring Unique Sessions
- Implementing Session Creation in Controller
- Sending Query Requests
- Unit 5: Building a RESTful Tutor API with Axum
- Create a Basic REST API with a Welcome Route
- Creating a Session Route
- Adding a Query Route
- Trying Out the API