chromable 0.3.1 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/chromable/version.rb +1 -1
- data/lib/chromable.rb +2 -4
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 27a945b9d1998457000926a7b02a95651e7093792d456d3c87de7d2c0afe64e8
|
|
4
|
+
data.tar.gz: 4608b17041ae86a4fbebb80c95433c5527373b7b53440a505aafb25ad32daeb8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 36ecd1c084d1b9fa9272974009075fae3286de90a8939b14da614f0a5aa68146b555a207b52c0ae7ddba57769f9f7d894433168c6dec4761fa826a24db7c236e
|
|
7
|
+
data.tar.gz: 8800c6c0971741ea9e6bc29d1bff504795e233fe41ce7d6ca0a9553d9c838e021732e614527440cc7907e07e18d32b74518646f4d2ac802470db51a174df5f8d
|
data/README.md
CHANGED
|
@@ -73,7 +73,7 @@ Post.query(
|
|
|
73
73
|
is_query: true # `is_query` here will be passed to `Post.embed` as an option.
|
|
74
74
|
)
|
|
75
75
|
|
|
76
|
-
Post.first.neighbors(results: 20) # => [#<Post:0x0000ffff9e0b5f10 id: "0beb0f98, ...>, ...]
|
|
76
|
+
Post.first.neighbors(results: 20) # => [#<Post:0x0000ffff9e0b5f10 id: "0beb0f98...", ...>, ...]
|
|
77
77
|
```
|
|
78
78
|
|
|
79
79
|
Also, `chromable` provides the following methods for each model instance:
|
data/lib/chromable/version.rb
CHANGED
data/lib/chromable.rb
CHANGED
|
@@ -56,8 +56,7 @@ module Chromable
|
|
|
56
56
|
query_embeddings: [send(chromable_settings.embedder, text, **embedder_options)],
|
|
57
57
|
results: results,
|
|
58
58
|
where: where,
|
|
59
|
-
where_document: where_document
|
|
60
|
-
include: include
|
|
59
|
+
where_document: where_document
|
|
61
60
|
).map(&:id))
|
|
62
61
|
end
|
|
63
62
|
end
|
|
@@ -96,8 +95,7 @@ module Chromable
|
|
|
96
95
|
query_embeddings: [embedding],
|
|
97
96
|
results: results,
|
|
98
97
|
where: where,
|
|
99
|
-
where_document: where_document
|
|
100
|
-
include: include
|
|
98
|
+
where_document: where_document
|
|
101
99
|
).map(&:id))
|
|
102
100
|
end
|
|
103
101
|
|