Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version 1.0 - Embeddable, Searchable, Completions, Prompts #1

Merged
merged 38 commits into from
Sep 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
060c029
Added embeddable
kladaFOX Aug 28, 2024
ddf33c3
Added bundle lock platform x86_64-linux
kladaFOX Aug 28, 2024
6e7b8b0
Adjust rspec setup
kladaFOX Aug 28, 2024
006cbcd
Added embeddings class
kladaFOX Aug 28, 2024
bceb385
Some corrections
kladaFOX Aug 28, 2024
22dfd6d
Added Readme
kladaFOX Aug 28, 2024
404528f
Update readme
kladaFOX Aug 28, 2024
68179c9
Added configuration option llm_provider
kladaFOX Aug 29, 2024
2230758
Added empty line to the EOF
kladaFOX Aug 29, 2024
7657d68
Correct spec
kladaFOX Aug 29, 2024
8e01805
Added searchable module
kladaFOX Aug 29, 2024
b7ce8c5
Updated readme
kladaFOX Aug 29, 2024
ee83bd9
Added completions class
kladaFOX Aug 30, 2024
da2578e
Added empty lines to the EOFs
kladaFOX Aug 30, 2024
cb068e5
Added empty lines to the EOFs
kladaFOX Aug 30, 2024
fd040f4
Change searchable search to be vector_search
kladaFOX Aug 30, 2024
f24ae9d
Updated readme
kladaFOX Aug 30, 2024
e37fda7
Correct completions url
kladaFOX Aug 30, 2024
e2b4ffc
Added assistant_prompt to completions
kladaFOX Aug 30, 2024
566af60
Updated readme
kladaFOX Aug 30, 2024
b04286c
Refactor searchable
kladaFOX Aug 30, 2024
253f43f
Update README.md
kladaFOX Aug 30, 2024
785cb6c
Error out searchable for non mongoid models
kladaFOX Sep 3, 2024
31f09bd
Fixed specs
kladaFOX Sep 3, 2024
0a27d38
Added prompts class
kladaFOX Sep 4, 2024
0511ee1
Changed the name of prompts param
kladaFOX Sep 5, 2024
e98dc63
Added json_format to completions class
kladaFOX Sep 9, 2024
de48335
Updated readme
kladaFOX Sep 9, 2024
e4a9fee
WIP Readme
matthewblack Sep 9, 2024
20c995b
Changed the name of prompt class method from generate to render
kladaFOX Sep 10, 2024
34a791d
Merge remote-tracking branch 'origin/feature/embeddable' into feature…
kladaFOX Sep 10, 2024
76a072b
Update Naming
matthewblack Sep 12, 2024
5d02751
Changed the name of completions class method from generate to create
kladaFOX Sep 13, 2024
98bb3db
Refactor Prompt class
kladaFOX Sep 13, 2024
6493760
Clean up Readme
matthewblack Sep 13, 2024
8eedeaa
README Update
matthewblack Sep 13, 2024
ddc1030
Change the name of Embeddings class method from generate to create
kladaFOX Sep 16, 2024
fd8a3fa
Bump version
kladaFOX Sep 16, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@ jobs:
ruby-version: 3.3.4
bundler-cache: true

# Uncomment and use the following steps for running tests
# - name: Build and test with rspec
# env:
# RUBYOPT: -W:no-deprecated
# run: bundle exec rspec spec
- name: Install dependencies
run: bundle install

- name: Build and test with rspec
env:
RUBYOPT: -W:no-deprecated
run: bundle exec rspec spec
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ jobs:
chmod 0600 $HOME/.gem/credentials
printf -- "---\n:github: Bearer ${GITHUB_TOKEN}\n" > $HOME/.gem/credentials
gem build *.gemspec
gem push *.gem --key github --host https://rubygems.pkg.github.com/${REPO_OWNER}
gem push *.gem --key github --host https://rubygems.pkg.github.com/${REPO_OWNER}
8 changes: 7 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# frozen_string_literal: true

source "https://rubygems.org"
source 'https://rubygems.org'

gemspec

group :development, :test do
gem 'rspec-rails'
gem 'webmock'
gem 'pry'
end
132 changes: 129 additions & 3 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,18 +1,144 @@
PATH
remote: .
specs:
spectre (0.0.1)
spectre (1.0.0)

GEM
remote: https://rubygems.org/
specs:
actionpack (7.1.4)
actionview (= 7.1.4)
activesupport (= 7.1.4)
nokogiri (>= 1.8.5)
racc
rack (>= 2.2.4)
rack-session (>= 1.0.1)
rack-test (>= 0.6.3)
rails-dom-testing (~> 2.2)
rails-html-sanitizer (~> 1.6)
actionview (7.1.4)
activesupport (= 7.1.4)
builder (~> 3.1)
erubi (~> 1.11)
rails-dom-testing (~> 2.2)
rails-html-sanitizer (~> 1.6)
activesupport (7.1.4)
base64
bigdecimal
concurrent-ruby (~> 1.0, >= 1.0.2)
connection_pool (>= 2.2.5)
drb
i18n (>= 1.6, < 2)
minitest (>= 5.1)
mutex_m
tzinfo (~> 2.0)
addressable (2.8.7)
public_suffix (>= 2.0.2, < 7.0)
base64 (0.2.0)
bigdecimal (3.1.8)
builder (3.3.0)
coderay (1.1.3)
concurrent-ruby (1.3.4)
connection_pool (2.4.1)
crack (1.0.0)
bigdecimal
rexml
crass (1.0.6)
diff-lcs (1.5.1)
drb (2.2.1)
erubi (1.13.0)
hashdiff (1.1.1)
i18n (1.14.5)
concurrent-ruby (~> 1.0)
io-console (0.7.2)
irb (1.14.0)
rdoc (>= 4.0.0)
reline (>= 0.4.2)
loofah (2.22.0)
crass (~> 1.0.2)
nokogiri (>= 1.12.0)
method_source (1.1.0)
minitest (5.25.1)
mutex_m (0.2.0)
nokogiri (1.16.7-arm64-darwin)
racc (~> 1.4)
nokogiri (1.16.7-x86_64-linux)
racc (~> 1.4)
pry (0.14.2)
coderay (~> 1.1)
method_source (~> 1.0)
psych (5.1.2)
stringio
public_suffix (6.0.1)
racc (1.8.1)
rack (3.1.7)
rack-session (2.0.0)
rack (>= 3.0.0)
rack-test (2.1.0)
rack (>= 1.3)
rackup (2.1.0)
rack (>= 3)
webrick (~> 1.8)
rails-dom-testing (2.2.0)
activesupport (>= 5.0.0)
minitest
nokogiri (>= 1.6)
rails-html-sanitizer (1.6.0)
loofah (~> 2.21)
nokogiri (~> 1.14)
railties (7.1.4)
actionpack (= 7.1.4)
activesupport (= 7.1.4)
irb
rackup (>= 1.0.0)
rake (>= 12.2)
thor (~> 1.0, >= 1.2.2)
zeitwerk (~> 2.6)
rake (13.2.1)
rdoc (6.7.0)
psych (>= 4.0.0)
reline (0.5.9)
io-console (~> 0.5)
rexml (3.3.6)
strscan
rspec-core (3.13.0)
rspec-support (~> 3.13.0)
rspec-expectations (3.13.2)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.13.0)
rspec-mocks (3.13.1)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.13.0)
rspec-rails (6.1.4)
actionpack (>= 6.1)
activesupport (>= 6.1)
railties (>= 6.1)
rspec-core (~> 3.13)
rspec-expectations (~> 3.13)
rspec-mocks (~> 3.13)
rspec-support (~> 3.13)
rspec-support (3.13.1)
stringio (3.1.1)
strscan (3.1.0)
thor (1.3.1)
tzinfo (2.0.6)
concurrent-ruby (~> 1.0)
webmock (3.23.1)
addressable (>= 2.8.0)
crack (>= 0.3.2)
hashdiff (>= 0.4.0, < 2.0.0)
webrick (1.8.1)
zeitwerk (2.6.17)

PLATFORMS
arm64-darwin-23
ruby
arm64-darwin
x86_64-linux

DEPENDENCIES
pry
rspec-rails
spectre!
webmock

BUNDLED WITH
2.5.11
Loading
Loading