Skip to content

Commit

Permalink
Hot fix: Remove unused include argument
Browse files Browse the repository at this point in the history
  • Loading branch information
AliOsm committed Dec 13, 2023
1 parent 6bbbf37 commit b71bc28
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
chromable (0.3.1)
chromable (0.3.2)
chroma-db (>= 0.6.0)

GEM
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ Post.query(
is_query: true # `is_query` here will be passed to `Post.embed` as an option.
)

Post.first.neighbors(results: 20) # => [#<Post:0x0000ffff9e0b5f10 id: "0beb0f98, ...>, ...]
Post.first.neighbors(results: 20) # => [#<Post:0x0000ffff9e0b5f10 id: "0beb0f98...", ...>, ...]
```

Also, `chromable` provides the following methods for each model instance:
Expand Down
6 changes: 2 additions & 4 deletions lib/chromable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,7 @@ def chroma_query(text:, results: 10, where: {}, where_document: {}, **embedder_o
query_embeddings: [send(chromable_settings.embedder, text, **embedder_options)],
results: results,
where: where,
where_document: where_document,
include: include
where_document: where_document
).map(&:id))
end
end
Expand Down Expand Up @@ -96,8 +95,7 @@ def chroma_neighbors(results: 10, where: {}, where_document: {})
query_embeddings: [embedding],
results: results,
where: where,
where_document: where_document,
include: include
where_document: where_document
).map(&:id))
end

Expand Down
2 changes: 1 addition & 1 deletion lib/chromable/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module Chromable
VERSION = '0.3.1'
VERSION = '0.3.2'
end

0 comments on commit b71bc28

Please # to comment.