ruvector 0.1.34 → 0.1.36
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 +459 -1571
- package/bin/ruvector.js +1147 -0
- package/dist/index.d.mts +95 -0
- package/dist/index.d.ts +84 -26
- package/dist/index.js +89 -81
- package/dist/index.mjs +5 -0
- package/package.json +93 -41
- package/.claude-flow/metrics/agent-metrics.json +0 -1
- package/.claude-flow/metrics/performance.json +0 -87
- package/.claude-flow/metrics/task-metrics.json +0 -10
- package/PACKAGE_SUMMARY.md +0 -409
- package/bin/cli.js +0 -2094
- package/dist/core/agentdb-fast.d.ts +0 -149
- package/dist/core/agentdb-fast.d.ts.map +0 -1
- package/dist/core/agentdb-fast.js +0 -301
- package/dist/core/attention-fallbacks.d.ts +0 -221
- package/dist/core/attention-fallbacks.d.ts.map +0 -1
- package/dist/core/attention-fallbacks.js +0 -361
- package/dist/core/gnn-wrapper.d.ts +0 -143
- package/dist/core/gnn-wrapper.d.ts.map +0 -1
- package/dist/core/gnn-wrapper.js +0 -213
- package/dist/core/index.d.ts +0 -15
- package/dist/core/index.d.ts.map +0 -1
- package/dist/core/index.js +0 -39
- package/dist/core/sona-wrapper.d.ts +0 -215
- package/dist/core/sona-wrapper.d.ts.map +0 -1
- package/dist/core/sona-wrapper.js +0 -258
- package/dist/index.d.ts.map +0 -1
- package/dist/services/embedding-service.d.ts +0 -136
- package/dist/services/embedding-service.d.ts.map +0 -1
- package/dist/services/embedding-service.js +0 -294
- package/dist/services/index.d.ts +0 -6
- package/dist/services/index.d.ts.map +0 -1
- package/dist/services/index.js +0 -26
- package/dist/types.d.ts +0 -145
- package/dist/types.d.ts.map +0 -1
- package/dist/types.js +0 -2
- package/examples/api-usage.js +0 -211
- package/examples/cli-demo.sh +0 -85
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Vector database types compatible with both NAPI and WASM backends
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
interface Vector {
|
|
6
|
+
id: string;
|
|
7
|
+
values: number[];
|
|
8
|
+
metadata?: Record<string, any>;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
interface SearchResult {
|
|
12
|
+
id: string;
|
|
13
|
+
score: number;
|
|
14
|
+
metadata?: Record<string, any>;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
interface IndexStats {
|
|
18
|
+
vectorCount: number;
|
|
19
|
+
dimension: number;
|
|
20
|
+
indexType: string;
|
|
21
|
+
memoryUsage?: number;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
interface CreateIndexOptions {
|
|
25
|
+
dimension: number;
|
|
26
|
+
metric?: 'cosine' | 'euclidean' | 'dot';
|
|
27
|
+
indexType?: 'flat' | 'hnsw';
|
|
28
|
+
hnswConfig?: {
|
|
29
|
+
m?: number;
|
|
30
|
+
efConstruction?: number;
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
interface SearchOptions {
|
|
35
|
+
k?: number;
|
|
36
|
+
ef?: number;
|
|
37
|
+
filter?: Record<string, any>;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
interface BatchInsertOptions {
|
|
41
|
+
batchSize?: number;
|
|
42
|
+
progressCallback?: (progress: number) => void;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Backend information
|
|
47
|
+
*/
|
|
48
|
+
interface BackendInfo {
|
|
49
|
+
type: 'native' | 'wasm';
|
|
50
|
+
version: string;
|
|
51
|
+
features: string[];
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* rUvector - High-performance vector database
|
|
56
|
+
*
|
|
57
|
+
* Smart loader that tries native bindings first, falls back to WASM
|
|
58
|
+
*/
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* VectorIndex class that wraps the backend
|
|
62
|
+
*/
|
|
63
|
+
declare class VectorIndex {
|
|
64
|
+
private index;
|
|
65
|
+
constructor(options: CreateIndexOptions);
|
|
66
|
+
insert(vector: Vector): Promise<void>;
|
|
67
|
+
insertBatch(vectors: Vector[], options?: BatchInsertOptions): Promise<void>;
|
|
68
|
+
search(query: number[], options?: SearchOptions): Promise<SearchResult[]>;
|
|
69
|
+
get(id: string): Promise<Vector | null>;
|
|
70
|
+
delete(id: string): Promise<boolean>;
|
|
71
|
+
stats(): Promise<IndexStats>;
|
|
72
|
+
save(path: string): Promise<void>;
|
|
73
|
+
static load(path: string): Promise<VectorIndex>;
|
|
74
|
+
clear(): Promise<void>;
|
|
75
|
+
optimize(): Promise<void>;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Utility functions
|
|
79
|
+
*/
|
|
80
|
+
declare const Utils: {
|
|
81
|
+
cosineSimilarity(a: number[], b: number[]): number;
|
|
82
|
+
euclideanDistance(a: number[], b: number[]): number;
|
|
83
|
+
normalize(vector: number[]): number[];
|
|
84
|
+
randomVector(dimension: number): number[];
|
|
85
|
+
};
|
|
86
|
+
/**
|
|
87
|
+
* Get backend information
|
|
88
|
+
*/
|
|
89
|
+
declare function getBackendInfo(): BackendInfo;
|
|
90
|
+
/**
|
|
91
|
+
* Check if native bindings are available
|
|
92
|
+
*/
|
|
93
|
+
declare function isNativeAvailable(): boolean;
|
|
94
|
+
|
|
95
|
+
export { type BackendInfo, type BatchInsertOptions, type CreateIndexOptions, type IndexStats, type SearchOptions, type SearchResult, Utils, type Vector, VectorIndex, VectorIndex as default, getBackendInfo, isNativeAvailable };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,37 +1,95 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
* This package automatically detects and uses the best available implementation:
|
|
5
|
-
* 1. Native (Rust-based, fastest) - if available for your platform
|
|
6
|
-
* 2. WASM (WebAssembly, universal fallback) - works everywhere
|
|
7
|
-
*
|
|
8
|
-
* Also provides safe wrappers for GNN and Attention modules that handle
|
|
9
|
-
* array type conversions automatically.
|
|
2
|
+
* Vector database types compatible with both NAPI and WASM backends
|
|
10
3
|
*/
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
4
|
+
|
|
5
|
+
interface Vector {
|
|
6
|
+
id: string;
|
|
7
|
+
values: number[];
|
|
8
|
+
metadata?: Record<string, any>;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
interface SearchResult {
|
|
12
|
+
id: string;
|
|
13
|
+
score: number;
|
|
14
|
+
metadata?: Record<string, any>;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
interface IndexStats {
|
|
18
|
+
vectorCount: number;
|
|
19
|
+
dimension: number;
|
|
20
|
+
indexType: string;
|
|
21
|
+
memoryUsage?: number;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
interface CreateIndexOptions {
|
|
25
|
+
dimension: number;
|
|
26
|
+
metric?: 'cosine' | 'euclidean' | 'dot';
|
|
27
|
+
indexType?: 'flat' | 'hnsw';
|
|
28
|
+
hnswConfig?: {
|
|
29
|
+
m?: number;
|
|
30
|
+
efConstruction?: number;
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
interface SearchOptions {
|
|
35
|
+
k?: number;
|
|
36
|
+
ef?: number;
|
|
37
|
+
filter?: Record<string, any>;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
interface BatchInsertOptions {
|
|
41
|
+
batchSize?: number;
|
|
42
|
+
progressCallback?: (progress: number) => void;
|
|
43
|
+
}
|
|
44
|
+
|
|
15
45
|
/**
|
|
16
|
-
*
|
|
46
|
+
* Backend information
|
|
17
47
|
*/
|
|
18
|
-
|
|
48
|
+
interface BackendInfo {
|
|
49
|
+
type: 'native' | 'wasm';
|
|
50
|
+
version: string;
|
|
51
|
+
features: string[];
|
|
52
|
+
}
|
|
53
|
+
|
|
19
54
|
/**
|
|
20
|
-
*
|
|
55
|
+
* rUvector - High-performance vector database
|
|
56
|
+
*
|
|
57
|
+
* Smart loader that tries native bindings first, falls back to WASM
|
|
21
58
|
*/
|
|
22
|
-
|
|
59
|
+
|
|
23
60
|
/**
|
|
24
|
-
*
|
|
61
|
+
* VectorIndex class that wraps the backend
|
|
25
62
|
*/
|
|
26
|
-
|
|
63
|
+
declare class VectorIndex {
|
|
64
|
+
private index;
|
|
65
|
+
constructor(options: CreateIndexOptions);
|
|
66
|
+
insert(vector: Vector): Promise<void>;
|
|
67
|
+
insertBatch(vectors: Vector[], options?: BatchInsertOptions): Promise<void>;
|
|
68
|
+
search(query: number[], options?: SearchOptions): Promise<SearchResult[]>;
|
|
69
|
+
get(id: string): Promise<Vector | null>;
|
|
70
|
+
delete(id: string): Promise<boolean>;
|
|
71
|
+
stats(): Promise<IndexStats>;
|
|
72
|
+
save(path: string): Promise<void>;
|
|
73
|
+
static load(path: string): Promise<VectorIndex>;
|
|
74
|
+
clear(): Promise<void>;
|
|
75
|
+
optimize(): Promise<void>;
|
|
76
|
+
}
|
|
27
77
|
/**
|
|
28
|
-
*
|
|
78
|
+
* Utility functions
|
|
29
79
|
*/
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
80
|
+
declare const Utils: {
|
|
81
|
+
cosineSimilarity(a: number[], b: number[]): number;
|
|
82
|
+
euclideanDistance(a: number[], b: number[]): number;
|
|
83
|
+
normalize(vector: number[]): number[];
|
|
84
|
+
randomVector(dimension: number): number[];
|
|
33
85
|
};
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
86
|
+
/**
|
|
87
|
+
* Get backend information
|
|
88
|
+
*/
|
|
89
|
+
declare function getBackendInfo(): BackendInfo;
|
|
90
|
+
/**
|
|
91
|
+
* Check if native bindings are available
|
|
92
|
+
*/
|
|
93
|
+
declare function isNativeAvailable(): boolean;
|
|
94
|
+
|
|
95
|
+
export { type BackendInfo, type BatchInsertOptions, type CreateIndexOptions, type IndexStats, type SearchOptions, type SearchResult, Utils, type Vector, VectorIndex, VectorIndex as default, getBackendInfo, isNativeAvailable };
|
package/dist/index.js
CHANGED
|
@@ -1,90 +1,98 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
* This package automatically detects and uses the best available implementation:
|
|
6
|
-
* 1. Native (Rust-based, fastest) - if available for your platform
|
|
7
|
-
* 2. WASM (WebAssembly, universal fallback) - works everywhere
|
|
8
|
-
*
|
|
9
|
-
* Also provides safe wrappers for GNN and Attention modules that handle
|
|
10
|
-
* array type conversions automatically.
|
|
3
|
+
* rUvector - High-performance vector database
|
|
4
|
+
* Smart loader that tries native bindings first, falls back to WASM
|
|
11
5
|
*/
|
|
12
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
13
|
-
if (k2 === undefined) k2 = k;
|
|
14
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
15
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
16
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
17
|
-
}
|
|
18
|
-
Object.defineProperty(o, k2, desc);
|
|
19
|
-
}) : (function(o, m, k, k2) {
|
|
20
|
-
if (k2 === undefined) k2 = k;
|
|
21
|
-
o[k2] = m[k];
|
|
22
|
-
}));
|
|
23
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
24
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
25
|
-
};
|
|
26
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
-
exports.
|
|
28
|
-
exports.
|
|
29
|
-
exports.
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
7
|
+
exports.VectorIndex = exports.Utils = void 0;
|
|
8
|
+
exports.getBackendInfo = getBackendInfo;
|
|
9
|
+
exports.isNativeAvailable = isNativeAvailable;
|
|
10
|
+
|
|
11
|
+
let backend;
|
|
12
|
+
let backendType = 'wasm';
|
|
13
|
+
|
|
14
|
+
function loadBackend() {
|
|
15
|
+
if (backend) return backend;
|
|
16
|
+
try {
|
|
17
|
+
backend = require('@ruvector/core');
|
|
18
|
+
backendType = 'native';
|
|
19
|
+
return backend;
|
|
20
|
+
} catch (e) {
|
|
21
|
+
try {
|
|
22
|
+
backend = require('@ruvector/wasm');
|
|
23
|
+
backendType = 'wasm';
|
|
24
|
+
return backend;
|
|
25
|
+
} catch (wasmError) {
|
|
26
|
+
throw new Error('Failed to load rUvector backend. Please install @ruvector/core or @ruvector/wasm.');
|
|
45
27
|
}
|
|
28
|
+
}
|
|
46
29
|
}
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
30
|
+
|
|
31
|
+
class VectorIndex {
|
|
32
|
+
constructor(options) {
|
|
33
|
+
const backend = loadBackend();
|
|
34
|
+
this.index = new backend.VectorIndex(options);
|
|
35
|
+
}
|
|
36
|
+
async insert(vector) { return this.index.insert(vector); }
|
|
37
|
+
async insertBatch(vectors, options) {
|
|
38
|
+
if (this.index.insertBatch) return this.index.insertBatch(vectors, options);
|
|
39
|
+
const batchSize = options?.batchSize || 1000;
|
|
40
|
+
for (let i = 0; i < vectors.length; i += batchSize) {
|
|
41
|
+
const batch = vectors.slice(i, Math.min(i + batchSize, vectors.length));
|
|
42
|
+
await Promise.all(batch.map(v => this.insert(v)));
|
|
43
|
+
if (options?.progressCallback) options.progressCallback(Math.min(i + batchSize, vectors.length) / vectors.length);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
async search(query, options) { return this.index.search(query, options); }
|
|
47
|
+
async get(id) { return this.index.get(id); }
|
|
48
|
+
async delete(id) { return this.index.delete(id); }
|
|
49
|
+
async stats() { return this.index.stats(); }
|
|
50
|
+
async save(path) { return this.index.save(path); }
|
|
51
|
+
static async load(path) {
|
|
52
|
+
const backend = loadBackend();
|
|
53
|
+
const index = await backend.VectorIndex.load(path);
|
|
54
|
+
const wrapper = Object.create(VectorIndex.prototype);
|
|
55
|
+
wrapper.index = index;
|
|
56
|
+
return wrapper;
|
|
57
|
+
}
|
|
58
|
+
async clear() { return this.index.clear(); }
|
|
59
|
+
async optimize() { if (this.index.optimize) return this.index.optimize(); }
|
|
69
60
|
}
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
61
|
+
exports.VectorIndex = VectorIndex;
|
|
62
|
+
|
|
63
|
+
const Utils = {
|
|
64
|
+
cosineSimilarity(a, b) {
|
|
65
|
+
if (a.length !== b.length) throw new Error('Vectors must have the same dimension');
|
|
66
|
+
let dotProduct = 0, normA = 0, normB = 0;
|
|
67
|
+
for (let i = 0; i < a.length; i++) { dotProduct += a[i] * b[i]; normA += a[i] * a[i]; normB += b[i] * b[i]; }
|
|
68
|
+
return dotProduct / (Math.sqrt(normA) * Math.sqrt(normB));
|
|
69
|
+
},
|
|
70
|
+
euclideanDistance(a, b) {
|
|
71
|
+
if (a.length !== b.length) throw new Error('Vectors must have the same dimension');
|
|
72
|
+
let sum = 0;
|
|
73
|
+
for (let i = 0; i < a.length; i++) { const diff = a[i] - b[i]; sum += diff * diff; }
|
|
74
|
+
return Math.sqrt(sum);
|
|
75
|
+
},
|
|
76
|
+
normalize(vector) {
|
|
77
|
+
const norm = Math.sqrt(vector.reduce((sum, val) => sum + val * val, 0));
|
|
78
|
+
return vector.map(val => val / norm);
|
|
79
|
+
},
|
|
80
|
+
randomVector(dimension) {
|
|
81
|
+
const vector = new Array(dimension);
|
|
82
|
+
for (let i = 0; i < dimension; i++) vector[i] = Math.random() * 2 - 1;
|
|
83
|
+
return this.normalize(vector);
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
exports.Utils = Utils;
|
|
87
|
+
|
|
88
|
+
function getBackendInfo() {
|
|
89
|
+
loadBackend();
|
|
90
|
+
const features = backendType === 'native' ? ['SIMD', 'Multi-threading', 'Memory-mapped I/O'] : ['Browser-compatible', 'No native dependencies'];
|
|
91
|
+
return { type: backendType, version: require('../package.json').version, features };
|
|
75
92
|
}
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
function getVersion() {
|
|
80
|
-
const pkg = require('../package.json');
|
|
81
|
-
return {
|
|
82
|
-
version: pkg.version,
|
|
83
|
-
implementation: implementationType
|
|
84
|
-
};
|
|
93
|
+
|
|
94
|
+
function isNativeAvailable() {
|
|
95
|
+
try { require.resolve('@ruvector/core'); return true; } catch { return false; }
|
|
85
96
|
}
|
|
86
|
-
|
|
87
|
-
exports.
|
|
88
|
-
exports.VectorDB = implementation.VectorDb;
|
|
89
|
-
// Export everything from the implementation
|
|
90
|
-
exports.default = implementation;
|
|
97
|
+
|
|
98
|
+
exports.default = VectorIndex;
|
package/dist/index.mjs
ADDED
package/package.json
CHANGED
|
@@ -1,70 +1,122 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ruvector",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "High-performance vector database
|
|
5
|
-
"main": "dist/index.js",
|
|
6
|
-
"types": "dist/index.d.ts",
|
|
3
|
+
"version": "0.1.36",
|
|
4
|
+
"description": "High-performance vector database with Graph Neural Networks, Cypher queries, and AI agent routing. Build RAG apps, semantic search, recommendations, and agentic AI systems. Pinecone + Neo4j + PyTorch alternative.",
|
|
5
|
+
"main": "./dist/index.js",
|
|
6
|
+
"types": "./dist/index.d.ts",
|
|
7
7
|
"bin": {
|
|
8
|
-
"ruvector": "./bin/
|
|
8
|
+
"ruvector": "./bin/ruvector.js"
|
|
9
9
|
},
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"types": "./dist/index.d.ts",
|
|
13
|
+
"require": "./dist/index.js",
|
|
14
|
+
"import": "./dist/index.mjs"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"files": [
|
|
18
|
+
"dist",
|
|
19
|
+
"bin",
|
|
20
|
+
"README.md"
|
|
21
|
+
],
|
|
10
22
|
"scripts": {
|
|
11
|
-
"build": "
|
|
12
|
-
"
|
|
13
|
-
"
|
|
23
|
+
"build": "tsup src/index.ts --format cjs,esm --dts --clean",
|
|
24
|
+
"dev": "tsup src/index.ts --format cjs,esm --dts --watch",
|
|
25
|
+
"typecheck": "tsc --noEmit",
|
|
26
|
+
"prepublishOnly": "echo 'Ready to publish'"
|
|
14
27
|
},
|
|
15
28
|
"keywords": [
|
|
16
|
-
"vector",
|
|
17
|
-
"database",
|
|
18
29
|
"vector-database",
|
|
19
30
|
"vector-search",
|
|
31
|
+
"embeddings",
|
|
20
32
|
"similarity-search",
|
|
21
33
|
"semantic-search",
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
34
|
+
"rag",
|
|
35
|
+
"retrieval-augmented-generation",
|
|
36
|
+
"llm",
|
|
37
|
+
"langchain",
|
|
38
|
+
"openai",
|
|
39
|
+
"gpt",
|
|
40
|
+
"claude",
|
|
41
|
+
"anthropic",
|
|
25
42
|
"ai",
|
|
43
|
+
"artificial-intelligence",
|
|
26
44
|
"machine-learning",
|
|
27
|
-
"
|
|
45
|
+
"deep-learning",
|
|
46
|
+
"neural-network",
|
|
47
|
+
"gnn",
|
|
48
|
+
"graph-neural-network",
|
|
49
|
+
"knowledge-graph",
|
|
50
|
+
"graph-database",
|
|
51
|
+
"cypher",
|
|
52
|
+
"neo4j",
|
|
53
|
+
"hnsw",
|
|
54
|
+
"ann",
|
|
55
|
+
"approximate-nearest-neighbor",
|
|
56
|
+
"knn",
|
|
57
|
+
"cosine-similarity",
|
|
58
|
+
"recommendation-system",
|
|
59
|
+
"chatbot",
|
|
60
|
+
"conversational-ai",
|
|
61
|
+
"agentic-ai",
|
|
62
|
+
"ai-agents",
|
|
63
|
+
"multi-agent",
|
|
64
|
+
"agent-routing",
|
|
65
|
+
"model-router",
|
|
66
|
+
"llm-router",
|
|
28
67
|
"rust",
|
|
68
|
+
"napi",
|
|
69
|
+
"napi-rs",
|
|
29
70
|
"wasm",
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"ewc",
|
|
40
|
-
"adaptive-learning",
|
|
41
|
-
"continual-learning"
|
|
71
|
+
"webassembly",
|
|
72
|
+
"compression",
|
|
73
|
+
"quantization",
|
|
74
|
+
"product-quantization",
|
|
75
|
+
"pinecone-alternative",
|
|
76
|
+
"chromadb-alternative",
|
|
77
|
+
"milvus-alternative",
|
|
78
|
+
"qdrant-alternative",
|
|
79
|
+
"weaviate-alternative"
|
|
42
80
|
],
|
|
43
|
-
"author":
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
"url": "https://github.com/ruvnet/ruvector/issues"
|
|
81
|
+
"author": {
|
|
82
|
+
"name": "rUv",
|
|
83
|
+
"url": "https://ruv.io"
|
|
47
84
|
},
|
|
48
85
|
"license": "MIT",
|
|
86
|
+
"homepage": "https://github.com/ruvnet/ruvector#readme",
|
|
49
87
|
"repository": {
|
|
50
88
|
"type": "git",
|
|
51
|
-
"url": "https://github.com/ruvnet/ruvector.git",
|
|
52
|
-
"directory": "npm/
|
|
89
|
+
"url": "git+https://github.com/ruvnet/ruvector.git",
|
|
90
|
+
"directory": "npm/ruvector"
|
|
91
|
+
},
|
|
92
|
+
"bugs": {
|
|
93
|
+
"url": "https://github.com/ruvnet/ruvector/issues"
|
|
94
|
+
},
|
|
95
|
+
"funding": {
|
|
96
|
+
"type": "github",
|
|
97
|
+
"url": "https://github.com/sponsors/ruvnet"
|
|
53
98
|
},
|
|
54
99
|
"dependencies": {
|
|
55
|
-
"@ruvector/core": "^0.1.25",
|
|
56
|
-
"@ruvector/attention": "^0.1.3",
|
|
57
|
-
"@ruvector/gnn": "^0.1.22",
|
|
58
|
-
"@ruvector/sona": "^0.1.4",
|
|
59
|
-
"chalk": "^4.1.2",
|
|
60
100
|
"commander": "^11.1.0",
|
|
61
|
-
"
|
|
101
|
+
"chalk": "^4.1.2",
|
|
102
|
+
"ora": "^5.4.1",
|
|
103
|
+
"cli-table3": "^0.6.3",
|
|
104
|
+
"inquirer": "^8.2.6"
|
|
105
|
+
},
|
|
106
|
+
"optionalDependencies": {
|
|
107
|
+
"@ruvector/core": "^0.1.1",
|
|
108
|
+
"@ruvector/graph-node": "^0.1.0",
|
|
109
|
+
"@ruvector/graph-wasm": "^0.1.0",
|
|
110
|
+
"@ruvector/gnn-node": "^0.1.0",
|
|
111
|
+
"@ruvector/gnn-wasm": "^0.1.0"
|
|
62
112
|
},
|
|
63
113
|
"devDependencies": {
|
|
64
|
-
"@types/node": "^20.10.
|
|
65
|
-
"
|
|
114
|
+
"@types/node": "^20.10.0",
|
|
115
|
+
"@types/inquirer": "^8.2.10",
|
|
116
|
+
"typescript": "^5.3.3",
|
|
117
|
+
"tsup": "^8.0.0"
|
|
66
118
|
},
|
|
67
119
|
"engines": {
|
|
68
|
-
"node": ">=
|
|
120
|
+
"node": ">=16.0.0"
|
|
69
121
|
}
|
|
70
122
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{}
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"startTime": 1765249648027,
|
|
3
|
-
"sessionId": "session-1765249648027",
|
|
4
|
-
"lastActivity": 1765249648027,
|
|
5
|
-
"sessionDuration": 0,
|
|
6
|
-
"totalTasks": 1,
|
|
7
|
-
"successfulTasks": 1,
|
|
8
|
-
"failedTasks": 0,
|
|
9
|
-
"totalAgents": 0,
|
|
10
|
-
"activeAgents": 0,
|
|
11
|
-
"neuralEvents": 0,
|
|
12
|
-
"memoryMode": {
|
|
13
|
-
"reasoningbankOperations": 0,
|
|
14
|
-
"basicOperations": 0,
|
|
15
|
-
"autoModeSelections": 0,
|
|
16
|
-
"modeOverrides": 0,
|
|
17
|
-
"currentMode": "auto"
|
|
18
|
-
},
|
|
19
|
-
"operations": {
|
|
20
|
-
"store": {
|
|
21
|
-
"count": 0,
|
|
22
|
-
"totalDuration": 0,
|
|
23
|
-
"errors": 0
|
|
24
|
-
},
|
|
25
|
-
"retrieve": {
|
|
26
|
-
"count": 0,
|
|
27
|
-
"totalDuration": 0,
|
|
28
|
-
"errors": 0
|
|
29
|
-
},
|
|
30
|
-
"query": {
|
|
31
|
-
"count": 0,
|
|
32
|
-
"totalDuration": 0,
|
|
33
|
-
"errors": 0
|
|
34
|
-
},
|
|
35
|
-
"list": {
|
|
36
|
-
"count": 0,
|
|
37
|
-
"totalDuration": 0,
|
|
38
|
-
"errors": 0
|
|
39
|
-
},
|
|
40
|
-
"delete": {
|
|
41
|
-
"count": 0,
|
|
42
|
-
"totalDuration": 0,
|
|
43
|
-
"errors": 0
|
|
44
|
-
},
|
|
45
|
-
"search": {
|
|
46
|
-
"count": 0,
|
|
47
|
-
"totalDuration": 0,
|
|
48
|
-
"errors": 0
|
|
49
|
-
},
|
|
50
|
-
"init": {
|
|
51
|
-
"count": 0,
|
|
52
|
-
"totalDuration": 0,
|
|
53
|
-
"errors": 0
|
|
54
|
-
}
|
|
55
|
-
},
|
|
56
|
-
"performance": {
|
|
57
|
-
"avgOperationDuration": 0,
|
|
58
|
-
"minOperationDuration": null,
|
|
59
|
-
"maxOperationDuration": null,
|
|
60
|
-
"slowOperations": 0,
|
|
61
|
-
"fastOperations": 0,
|
|
62
|
-
"totalOperationTime": 0
|
|
63
|
-
},
|
|
64
|
-
"storage": {
|
|
65
|
-
"totalEntries": 0,
|
|
66
|
-
"reasoningbankEntries": 0,
|
|
67
|
-
"basicEntries": 0,
|
|
68
|
-
"databaseSize": 0,
|
|
69
|
-
"lastBackup": null,
|
|
70
|
-
"growthRate": 0
|
|
71
|
-
},
|
|
72
|
-
"errors": {
|
|
73
|
-
"total": 0,
|
|
74
|
-
"byType": {},
|
|
75
|
-
"byOperation": {},
|
|
76
|
-
"recent": []
|
|
77
|
-
},
|
|
78
|
-
"reasoningbank": {
|
|
79
|
-
"semanticSearches": 0,
|
|
80
|
-
"sqlFallbacks": 0,
|
|
81
|
-
"embeddingGenerated": 0,
|
|
82
|
-
"consolidations": 0,
|
|
83
|
-
"avgQueryTime": 0,
|
|
84
|
-
"cacheHits": 0,
|
|
85
|
-
"cacheMisses": 0
|
|
86
|
-
}
|
|
87
|
-
}
|