Retrieval-Augmented Generation (RAG)

Episode #528 by Teacher's Avatar David Kimura

Summary

In this episode, we continue off of Episode #499 and implement a feature where we can search and consume sections of text for text generation. This has many benefits and some nuances that we'll explore in this episode.
rails llm artificial intelligence 24:30

Chapters

  • Introduction (0:00)
  • Creating the model to store prompts (2:28)
  • Updating the views (4:26)
  • Creating the route (8:44)
  • Creating the Chat Messages Controller (9:09)
  • Creating the Chat Message Response Job (10:31)
  • Completing the view (11:13)
  • Finishing the background job (13:13)
  • Demo (21:50)
  • Final Thoughts (22:13)
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