wolverine-ai 2.9.0 → 2.9.1
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/README.md +6 -5
- package/package.json +1 -1
- package/src/brain/brain.js +1 -1
package/README.md
CHANGED
|
@@ -358,11 +358,12 @@ High-performance vector database that grows without slowing down:
|
|
|
358
358
|
|
|
359
359
|
**Search performance** (scales gracefully):
|
|
360
360
|
|
|
361
|
-
| Entries | Semantic Search | Keyword (BM25) |
|
|
362
|
-
|
|
363
|
-
| 100 | 0.2ms | 0.005ms |
|
|
364
|
-
| 1,000 | 0.4ms | 0.01ms |
|
|
365
|
-
| 10,000 | 4.4ms | 0.1ms |
|
|
361
|
+
| Entries | Semantic Search | Keyword (BM25) | Clusters |
|
|
362
|
+
|---------|----------------|----------------|----------|
|
|
363
|
+
| 100 | 0.2ms | 0.005ms | 10 |
|
|
364
|
+
| 1,000 | 0.4ms | 0.01ms | 32 |
|
|
365
|
+
| 10,000 | 4.4ms | 0.1ms | 100 |
|
|
366
|
+
| 50,000 | 23.7ms | 0.5ms | 224 |
|
|
366
367
|
|
|
367
368
|
**4 optimization techniques:**
|
|
368
369
|
1. **Pre-normalized vectors** — cosine similarity = dot product (no sqrt per query)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wolverine-ai",
|
|
3
|
-
"version": "2.9.
|
|
3
|
+
"version": "2.9.1",
|
|
4
4
|
"description": "Self-healing Node.js server framework powered by AI. Catches crashes, diagnoses errors, generates fixes, verifies, and restarts — automatically.",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"bin": {
|
package/src/brain/brain.js
CHANGED
|
@@ -54,7 +54,7 @@ const SEED_DOCS = [
|
|
|
54
54
|
metadata: { topic: "perf-monitoring" },
|
|
55
55
|
},
|
|
56
56
|
{
|
|
57
|
-
text: "Wolverine brain: high-performance vector database for long-term memory. 4 search optimizations: (1) Pre-normalized vectors — cosine similarity = dot product (no sqrt), 7x faster. (2) IVF index —
|
|
57
|
+
text: "Wolverine brain: high-performance vector database for long-term memory. 4 search optimizations: (1) Pre-normalized vectors — cosine similarity = dot product (no sqrt), 7x faster. (2) IVF index — k-means++ clustering into √N buckets (10 at 100 entries, 100 at 10K, 224 at 50K), search probes nearest 20% of clusters. (3) BM25 keyword search — inverted index with TF-IDF scoring, O(query_tokens) not O(N). (4) Binary persistence — Float32Array buffers, 10x faster load. Benchmarks: 100=0.2ms, 1K=0.4ms, 5K=2ms, 10K=4.4ms, 50K=23.7ms (was 160ms brute force). Stores: function maps, errors, fixes, learnings, seed docs. New seeds merged on framework update without erasing existing memories.",
|
|
58
58
|
metadata: { topic: "brain" },
|
|
59
59
|
},
|
|
60
60
|
{
|