Classification Models

Episode #502 by Teacher's Avatar David Kimura

Summary

Continuing from the previous episode, we look at removing the LLM in favor of a Classification Model. This will allow a more directed course of action for the Rails application to take based on the user input. We'll also look at fine tuning the model so that we are able to get better classifications of the user input.
rails view artificial intelligence 25:43

Chapters

  • Introduction (0:00)
  • Refactor from previous episode (2:35)
  • Updating the GenerateChatResponse job (3:36)
  • Generate Category Response class (6:44)
  • Python - Walking through the API interface (9:02)
  • Python - Fine Tuning (10:08)
  • Running the fine tuning (16:04)
  • Python - Inference on the fine tuned model (17:50)
  • Running the python service (20:35)
  • Fixing a bug on the Rails side (20:53)
  • Demo (21:18)
  • Final thoughts (22:34)
Student & Teacher
$ 9 /mo

Valid School Email Required

Same Access as Pro

Subscribe Now
Pro Monthly
$ 19 /mo

Access to Pro Episodes

Invite to Slack Channel

Priority Suggestions

Ad Free

Subscribe Now
Pro Annual
$ 190 /yr

Access to Pro Episodes

Invite to Slack Channel

Priority Suggestions

Ad Free

Subscribe Now
Teams
$ 57 /mo

3 Users Minimum

$19.00 / user / month

Same Access as Pro

Subscribe to Teams