Skip to content

thoughtbot/ai-in-focus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

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.

About

Sample code from our video series, AI in Focus.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published

Languages