Skip to content

Latest commit

 

History

History
12 lines (8 loc) · 619 Bytes

README.md

File metadata and controls

12 lines (8 loc) · 619 Bytes

AI in Focus Sample Code

This is sample code from our video series, AI in Focus.

The prompt class is a very basic class for communicating with OpenAI's ChatGPT. Its the code we code we build upon for most of the series.

The sample code doesn't run on its own. It uses the ruby-openai and tiktoken_ruby gems, as well as ActiveModel and an application specific Repository and Search classes to retrieve relevant documents for context.