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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 37ea3d1f5f6e4988731e3c3dd5854ede2fb0211a5dbde18fe70d09a713b12a1c
4
- data.tar.gz: ac7b05dc9364e1984d35ccbfc2b7604d8ec9dc76f0f8c1a33f21ba489deed8f4
3
+ metadata.gz: 3abc738d8975839b873bc5e07bb95305d455a9ac1eec94c432415b713411f20b
4
+ data.tar.gz: b9c36794c33316378752dd816fb517714c6d8186062562a778d3c8539ba7d79a
5
5
  SHA512:
6
- metadata.gz: dcd02d4ff94ed472713de26e781cfbf963136eb07da1a9a195c4482c585e1b8ab19875583118f33669b10005bf08f607c09af040b3f53bbed896fb6d19fcf9e4
7
- data.tar.gz: 990ea77bf9fdf859354d5532d0a1acefec6576b1d322efb41b27a43aa06b1f0fa2dea81825d0ca3631969bfd0aaf1323091defddc7ed951557370095ab7d209b
6
+ metadata.gz: ce05bfcdebce333fd6b5abefca703850d3a6d6a50c3c1589bf675e91ae24b424f2e43e6bc0270ad4ea8a520f5be9d636c5e8a5a66deae2c0183adae6cbc517aa
7
+ data.tar.gz: 6cc9b08b6e0f9e8ea23f306c0c460dc2557e4ee5113ef26300b517608485ea528fcb9254d51f395c37b557bf1728051c2c3dd8a20a25b5bd4826832a4ff30bf8
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## 1.0.1 (2024-08-27)
2
+
3
+ - Added support for `Supabase/gte-small` to `Model`
4
+ - Fixed error with downloads
5
+
1
6
  ## 1.0.0 (2024-08-26)
2
7
 
3
8
  - Replaced task classes with `pipeline` method
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
@@ -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")
@@ -1,3 +1,3 @@
1
1
  module Informers
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
data/lib/informers.rb CHANGED
@@ -19,6 +19,7 @@ require_relative "informers/env"
19
19
  require_relative "informers/model"
20
20
  require_relative "informers/models"
21
21
  require_relative "informers/tokenizers"
22
+ require_relative "informers/version"
22
23
  require_relative "informers/pipelines"
23
24
 
24
25
  module Informers
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.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-26 00:00:00.000000000 Z
11
+ date: 2024-08-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: onnxruntime