informers 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/README.md +12 -1
- data/lib/informers/model.rb +1 -1
- data/lib/informers/version.rb +1 -1
- data/lib/informers.rb +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3abc738d8975839b873bc5e07bb95305d455a9ac1eec94c432415b713411f20b
|
4
|
+
data.tar.gz: b9c36794c33316378752dd816fb517714c6d8186062562a778d3c8539ba7d79a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ce05bfcdebce333fd6b5abefca703850d3a6d6a50c3c1589bf675e91ae24b424f2e43e6bc0270ad4ea8a520f5be9d636c5e8a5a66deae2c0183adae6cbc517aa
|
7
|
+
data.tar.gz: 6cc9b08b6e0f9e8ea23f306c0c460dc2557e4ee5113ef26300b517608485ea528fcb9254d51f395c37b557bf1728051c2c3dd8a20a25b5bd4826832a4ff30bf8
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
:fire: Fast [transformer](https://github.com/xenova/transformers.js) inference for Ruby
|
4
4
|
|
5
|
-
For non-ONNX models, check out [Transformers.rb](https://github.com/ankane/transformers-ruby)
|
5
|
+
For non-ONNX models, check out [Transformers.rb](https://github.com/ankane/transformers-ruby) :slightly_smiling_face:
|
6
6
|
|
7
7
|
[![Build Status](https://github.com/ankane/informers/actions/workflows/build.yml/badge.svg)](https://github.com/ankane/informers/actions)
|
8
8
|
|
@@ -72,6 +72,17 @@ model = Informers::Model.new("mixedbread-ai/mxbai-embed-large-v1")
|
|
72
72
|
embeddings = model.embed(docs)
|
73
73
|
```
|
74
74
|
|
75
|
+
### Supabase/gte-small
|
76
|
+
|
77
|
+
[Docs](https://huggingface.co/Supabase/gte-small)
|
78
|
+
|
79
|
+
```ruby
|
80
|
+
sentences = ["That is a happy person", "That is a very happy person"]
|
81
|
+
|
82
|
+
model = Informers::Model.new("Supabase/gte-small")
|
83
|
+
embeddings = model.embed(sentences)
|
84
|
+
```
|
85
|
+
|
75
86
|
## Pipelines
|
76
87
|
|
77
88
|
Named-entity recognition
|
data/lib/informers/model.rb
CHANGED
@@ -17,7 +17,7 @@ module Informers
|
|
17
17
|
case @model_id
|
18
18
|
when "sentence-transformers/all-MiniLM-L6-v2"
|
19
19
|
output = @model.(texts)
|
20
|
-
when "Xenova/all-MiniLM-L6-v2", "Xenova/multi-qa-MiniLM-L6-cos-v1"
|
20
|
+
when "Xenova/all-MiniLM-L6-v2", "Xenova/multi-qa-MiniLM-L6-cos-v1", "Supabase/gte-small"
|
21
21
|
output = @model.(texts, pooling: "mean", normalize: true)
|
22
22
|
when "mixedbread-ai/mxbai-embed-large-v1"
|
23
23
|
output = @model.(texts, pooling: "cls")
|
data/lib/informers/version.rb
CHANGED
data/lib/informers.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: informers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Kane
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-08-
|
11
|
+
date: 2024-08-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: onnxruntime
|