Project

gpt4all

0.0
No release in over a year
interface to gpt4all
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 2.7
~> 1.1
 Project Readme

Gpt4all

Gem Version CI

Gpt4all is a Ruby gem that provides an easy-to-use interface for interacting with the GPT4ALL conversational AI model.

Installation

Add this line to your application's Gemfile:

gem 'gpt4all'

And then execute:

$ bundle install

Or install it yourself as:

$ gem install gpt4all

Usage

To use the Gpt4all gem, you can follow these steps:

require 'gpt4all'

gpt4all = Gpt4all::ConversationalAI.new
gpt4all.prepare_resources(force_download: true)
gpt4all.start_bot

response = gpt4all.prompt('What is your name?')
puts response

gpt4all.stop_bot

Development

After checking out the repo, run bin/setup to install dependencies. Then, run rake spec to run the tests. You can also run bin/console for an interactive prompt that will allow you to experiment.

To install this gem onto your local machine, run bundle exec rake install. To release a new version, update the version number in version.rb, and then run bundle exec rake release, which will create a git tag for the version, push git commits and tags, and push the .gem file to rubygems.org.