ragnar-cli 0.1.0.pre.1 → 0.1.0.pre.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 +5 -5
- data/lib/ragnar/umap_processor.rb +3 -20
- data/lib/ragnar/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b0a173feabe7b256be1fd768e9dc8cf756074db612682815616ff0032693b850
|
4
|
+
data.tar.gz: 1be44293e519e221e72b9c497ffc96f2be3bf68e416ecb0f32213c7965192c84
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f5ff7022d1764633f781f0a9f8ead81a9efbbf179815ef9232ab18ff559f99f204b6b3b020a56187988c54ed600285c116e82392fa59771805fc4418e219d492
|
7
|
+
data.tar.gz: 2e1917dc5f2da3c602864a802d3297f47d638ceccd452c05a45e4091be845c2b74b83e9bbc27b10b7d0cd81c1d9d6c5149cd9a92e13dd78d2dddb8f24fb45439
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
<img src="/docs/assets/ragnar-wide.png" alt="ragnar" height="80px">
|
2
2
|
|
3
3
|
A complete Ruby implementation of Retrieval-Augmented Generation (RAG) pipeline using native Ruby ML/NLP gems.
|
4
4
|
|
@@ -419,11 +419,11 @@ MIT License - see LICENSE file for details
|
|
419
419
|
## Acknowledgments
|
420
420
|
|
421
421
|
This project integrates several excellent Ruby gems:
|
422
|
-
- [red-candle](https://github.com/red-candle) - Ruby ML/LLM toolkit
|
423
|
-
- [lancelot](https://github.com/lancelot) - Lance database bindings
|
422
|
+
- [red-candle](https://github.com/assaydepot/red-candle) - Ruby ML/LLM toolkit
|
423
|
+
- [lancelot](https://github.com/cpetersen/lancelot) - Lance database bindings
|
424
424
|
- [clusterkit](https://github.com/cpetersen/clusterkit) - UMAP and clustering implementation
|
425
425
|
- [parsekit](https://github.com/cpetersen/parsekit) - Content extraction
|
426
|
-
- [baran](https://github.com/baran) - Text splitting utilities
|
426
|
+
- [baran](https://github.com/moeki0/baran) - Text splitting utilities
|
427
427
|
|
428
428
|
## Roadmap
|
429
429
|
|
@@ -436,4 +436,4 @@ This project integrates several excellent Ruby gems:
|
|
436
436
|
- [ ] Performance benchmarking suite
|
437
437
|
- [ ] Support for multiple embedding models simultaneously
|
438
438
|
- [ ] Query result caching
|
439
|
-
- [ ] Automatic index optimization
|
439
|
+
- [ ] Automatic index optimization
|
@@ -61,24 +61,9 @@ module Ragnar
|
|
61
61
|
puts " Neighbors: #{n_neighbors}"
|
62
62
|
puts " Min distance: #{min_dist}"
|
63
63
|
|
64
|
-
# Use the simple ClusterKit.umap method
|
65
|
-
progressbar = TTY::ProgressBar.new(
|
66
|
-
"Training UMAP [:bar] :percent",
|
67
|
-
total: 100,
|
68
|
-
bar_format: :block,
|
69
|
-
width: 30
|
70
|
-
)
|
71
|
-
|
72
|
-
# Start progress in background (ClusterKit doesn't provide callbacks)
|
73
|
-
progress_thread = Thread.new do
|
74
|
-
100.times do
|
75
|
-
sleep(0.05)
|
76
|
-
progressbar.advance
|
77
|
-
break if @training_complete
|
78
|
-
end
|
79
|
-
end
|
80
|
-
|
81
64
|
# Perform the actual training using the class-based API
|
65
|
+
puts " Training UMAP model (this may take a moment)..."
|
66
|
+
|
82
67
|
@umap_instance = ClusterKit::Dimensionality::UMAP.new(
|
83
68
|
n_components: n_components,
|
84
69
|
n_neighbors: n_neighbors
|
@@ -86,9 +71,7 @@ module Ragnar
|
|
86
71
|
|
87
72
|
@reduced_embeddings = @umap_instance.fit_transform(embedding_matrix)
|
88
73
|
|
89
|
-
|
90
|
-
progress_thread.join
|
91
|
-
progressbar.finish
|
74
|
+
puts " ✓ UMAP training complete"
|
92
75
|
|
93
76
|
# Store the parameters for saving
|
94
77
|
@model_params = {
|
data/lib/ragnar/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ragnar-cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.0.pre.
|
4
|
+
version: 0.1.0.pre.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Petersen
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-08-
|
11
|
+
date: 2025-08-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '1.
|
33
|
+
version: '1.2'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '1.
|
40
|
+
version: '1.2'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: lancelot
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|