@kedem/okdb 3.1.4 → 3.1.6

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.
package/CHANGELOG.md CHANGED
@@ -4,6 +4,26 @@ All notable changes to `@kedem/okdb` are documented here. Format loosely follows
4
4
  [Keep a Changelog](https://keepachangelog.com/en/1.0.0/); versions follow [SemVer](https://semver.org/).
5
5
  Dates are release dates.
6
6
 
7
+ ## [3.1.6] - 2026-11-03
8
+
9
+ ### Fixed
10
+
11
+ - **A JS embedder's `Float32Array` vectors reach the core in one copy.** Every vector an embedder returned was turned into a
12
+ plain array and read back one number at a time (~0.2 ms for a 2560-dimension vector). A `Float32Array` is now handed over
13
+ as its bytes. Plain number arrays, a `Float64Array` or any other array-like are converted as before. Stored vectors, search
14
+ results and what happens to a wrong-length vector are unchanged. (As before, a vector holding `NaN` or a non-number is
15
+ stored, with `NaN` in it.)
16
+
17
+ ## [3.1.5] - 2026-11-03
18
+
19
+ ### Fixed
20
+
21
+ - **Writing an embedding vector no longer re-checks every byte of it against the type's field list.** A document stored as a
22
+ Buffer (an embeddings `vec:` row) records one `number` field per byte index, as JS `Object.keys(buffer)` does: ~10,000 for a
23
+ 2560-dimension vector. Every such write walked that whole list again even when it could add nothing. A Buffer no longer than
24
+ the byte indexes already recorded now skips the check; the field schema is unchanged. Re-embedding at 2560 dimensions with a
25
+ zero-cost embedder: ~0.92 -> ~0.48 ms CPU per document (256 dimensions: ~0.23 -> ~0.19).
26
+
7
27
  ## [3.1.4] - 2026-11-03
8
28
 
9
29
  ### Fixed