emb-server 0.1.0 → 0.1.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 +53 -0
- data/bin/emb +2 -8
- data/lib/emb-server/emb-binary-arm64-darwin +0 -0
- data/lib/emb-server/emb-binary-x86_64-linux +0 -0
- data/lib/emb-server/version.rb +1 -1
- metadata +5 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ff7b2a9d7d1e59cf4dcc963bc09769d6fe36a2522561c2f4da5c66fde2c2fc87
|
|
4
|
+
data.tar.gz: 649c21f21d247d7fcfd47483040966b0ad2da32fbae773624f2dbc1aad69541e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e80f9021cab744c7a9b818785e1eb05ed064721c22e44185771f44b91607f84007602d4416cdfde1831deb748fe01211b53e9043d734f0182ef823df89785557
|
|
7
|
+
data.tar.gz: ae07377aec65b99b027fa0f61cb87518664961cd3d0c06005cf6dcbd12ff64a4cc1546efc15fd89a7887be9e7f79ea605db6d24ff4879e03c11dae3b13a54699
|
data/README.md
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# emb-server
|
|
2
|
+
|
|
3
|
+
[](https://rubygems.org/gems/emb-server)
|
|
4
|
+
|
|
5
|
+
Precompiled [emb](https://github.com/elcuervo/emb) server binary distributed as a Ruby gem. Runs a Redis-compatible embedding server with ONNX Runtime inference.
|
|
6
|
+
|
|
7
|
+
## Installation
|
|
8
|
+
|
|
9
|
+
Add to your Gemfile:
|
|
10
|
+
|
|
11
|
+
```ruby
|
|
12
|
+
gem "emb-server"
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
Or install globally:
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
gem install emb-server
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## Platform support
|
|
22
|
+
|
|
23
|
+
| Platform | Status |
|
|
24
|
+
|----------|--------|
|
|
25
|
+
| macOS (Apple Silicon) | ✓ |
|
|
26
|
+
| Linux (x86_64) | ✓ |
|
|
27
|
+
| Linux (aarch64) | ✓ |
|
|
28
|
+
|
|
29
|
+
The gem ships a precompiled binary for each platform. See `bin/emb` for platform detection logic.
|
|
30
|
+
|
|
31
|
+
## Usage
|
|
32
|
+
|
|
33
|
+
### Quick start
|
|
34
|
+
|
|
35
|
+
Auto-download a model from HuggingFace and start the server:
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
emb -model-repo Xenova/all-MiniLM-L6-v2
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
### With a config file
|
|
42
|
+
|
|
43
|
+
```bash
|
|
44
|
+
emb -config config.yaml
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
### Options
|
|
48
|
+
|
|
49
|
+
All [emb server options](https://github.com/elcuervo/emb#configuration) are available as CLI flags.
|
|
50
|
+
|
|
51
|
+
## Companion client
|
|
52
|
+
|
|
53
|
+
Use the [`emb`](https://rubygems.org/gems/emb) Ruby gem to interact with the server from Ruby code—auto-decodes float32 responses, provides proxy and multi-model support.
|
data/bin/emb
CHANGED
|
@@ -19,13 +19,7 @@ unless File.exist?(binary)
|
|
|
19
19
|
exit 1
|
|
20
20
|
end
|
|
21
21
|
|
|
22
|
-
|
|
23
|
-
ort_lib =
|
|
24
|
-
|
|
25
|
-
unless ort_lib
|
|
26
|
-
$stderr.puts "ERROR: could not find onnxruntime shared library"
|
|
27
|
-
$stderr.puts "Checked: #{onnx_spec.gem_dir}/lib/onnxruntime.{dylib,so,bundle}"
|
|
28
|
-
exit 1
|
|
29
|
-
end
|
|
22
|
+
require "onnxruntime"
|
|
23
|
+
ort_lib = OnnxRuntime.ffi_lib.first
|
|
30
24
|
|
|
31
25
|
exec binary, "-ort-lib", ort_lib, *ARGV
|
|
Binary file
|
|
Binary file
|
data/lib/emb-server/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: emb-server
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- elcuervo
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-07-
|
|
11
|
+
date: 2026-07-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: onnxruntime
|
|
@@ -16,14 +16,14 @@ dependencies:
|
|
|
16
16
|
requirements:
|
|
17
17
|
- - "~>"
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: '0.
|
|
19
|
+
version: '0.11'
|
|
20
20
|
type: :runtime
|
|
21
21
|
prerelease: false
|
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
23
|
requirements:
|
|
24
24
|
- - "~>"
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
|
-
version: '0.
|
|
26
|
+
version: '0.11'
|
|
27
27
|
description: Precompiled emb server binary.
|
|
28
28
|
email:
|
|
29
29
|
- elcuervo@elcuervo.net
|
|
@@ -32,6 +32,7 @@ executables:
|
|
|
32
32
|
extensions: []
|
|
33
33
|
extra_rdoc_files: []
|
|
34
34
|
files:
|
|
35
|
+
- README.md
|
|
35
36
|
- bin/emb
|
|
36
37
|
- lib/emb-server/emb-binary-aarch64-linux
|
|
37
38
|
- lib/emb-server/emb-binary-arm64-darwin
|