@ruvector/node 0.1.17 → 0.1.22
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/dist/gnn.d.ts +10 -0
- package/dist/gnn.d.ts.map +1 -0
- package/dist/gnn.js +10 -0
- package/dist/gnn.js.map +1 -0
- package/dist/index.d.ts +47 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +51 -0
- package/dist/index.js.map +1 -0
- package/package.json +35 -53
- package/README.md +0 -1085
- package/index.d.ts +0 -345
- package/index.js +0 -321
package/dist/gnn.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @ruvector/node/gnn - GNN-specific exports
|
|
3
|
+
*
|
|
4
|
+
* Import GNN capabilities directly:
|
|
5
|
+
* ```typescript
|
|
6
|
+
* import { RuvectorLayer, TensorCompress } from '@ruvector/node/gnn';
|
|
7
|
+
* ```
|
|
8
|
+
*/
|
|
9
|
+
export { RuvectorLayer, TensorCompress, differentiableSearch, hierarchicalForward, getCompressionLevel, init, type CompressionLevelConfig, type SearchResult } from '@ruvector/gnn';
|
|
10
|
+
//# sourceMappingURL=gnn.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gnn.d.ts","sourceRoot":"","sources":["../src/gnn.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EACL,aAAa,EACb,cAAc,EACd,oBAAoB,EACpB,mBAAmB,EACnB,mBAAmB,EACnB,IAAI,EACJ,KAAK,sBAAsB,EAC3B,KAAK,YAAY,EAClB,MAAM,eAAe,CAAC"}
|
package/dist/gnn.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @ruvector/node/gnn - GNN-specific exports
|
|
3
|
+
*
|
|
4
|
+
* Import GNN capabilities directly:
|
|
5
|
+
* ```typescript
|
|
6
|
+
* import { RuvectorLayer, TensorCompress } from '@ruvector/node/gnn';
|
|
7
|
+
* ```
|
|
8
|
+
*/
|
|
9
|
+
export { RuvectorLayer, TensorCompress, differentiableSearch, hierarchicalForward, getCompressionLevel, init } from '@ruvector/gnn';
|
|
10
|
+
//# sourceMappingURL=gnn.js.map
|
package/dist/gnn.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gnn.js","sourceRoot":"","sources":["../src/gnn.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EACL,aAAa,EACb,cAAc,EACd,oBAAoB,EACpB,mBAAmB,EACnB,mBAAmB,EACnB,IAAI,EAGL,MAAM,eAAe,CAAC"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @ruvector/node - Unified Ruvector Package
|
|
3
|
+
*
|
|
4
|
+
* High-performance Rust vector database with GNN capabilities for Node.js.
|
|
5
|
+
* This package re-exports both @ruvector/core and @ruvector/gnn for convenience.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```typescript
|
|
9
|
+
* import {
|
|
10
|
+
* // Core vector database
|
|
11
|
+
* VectorDB,
|
|
12
|
+
* CollectionManager,
|
|
13
|
+
* DistanceMetric,
|
|
14
|
+
* // GNN capabilities
|
|
15
|
+
* RuvectorLayer,
|
|
16
|
+
* TensorCompress,
|
|
17
|
+
* differentiableSearch
|
|
18
|
+
* } from '@ruvector/node';
|
|
19
|
+
*
|
|
20
|
+
* // Create vector database
|
|
21
|
+
* const db = new VectorDB({ dimensions: 384 });
|
|
22
|
+
*
|
|
23
|
+
* // Create GNN layer
|
|
24
|
+
* const layer = new RuvectorLayer(384, 256, 4, 0.1);
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
export { VectorDB, CollectionManager, version, hello, getMetrics, getHealth, DistanceMetric, type DbOptions, type HnswConfig, type QuantizationConfig, type VectorEntry, type SearchQuery, type SearchResult as CoreSearchResult, type CollectionConfig, type CollectionStats, type Alias, type HealthResponse, type Filter } from '@ruvector/core';
|
|
28
|
+
export { RuvectorLayer, TensorCompress, differentiableSearch, hierarchicalForward, getCompressionLevel, init as initGnn, type CompressionLevelConfig, type SearchResult as GnnSearchResult } from '@ruvector/gnn';
|
|
29
|
+
import * as core from '@ruvector/core';
|
|
30
|
+
import * as gnn from '@ruvector/gnn';
|
|
31
|
+
declare const _default: {
|
|
32
|
+
VectorDB: typeof core.VectorDb;
|
|
33
|
+
CollectionManager: any;
|
|
34
|
+
version: any;
|
|
35
|
+
hello: any;
|
|
36
|
+
getMetrics: any;
|
|
37
|
+
getHealth: any;
|
|
38
|
+
DistanceMetric: any;
|
|
39
|
+
RuvectorLayer: typeof gnn.RuvectorLayer;
|
|
40
|
+
TensorCompress: typeof gnn.TensorCompress;
|
|
41
|
+
differentiableSearch: typeof gnn.differentiableSearch;
|
|
42
|
+
hierarchicalForward: typeof gnn.hierarchicalForward;
|
|
43
|
+
getCompressionLevel: typeof gnn.getCompressionLevel;
|
|
44
|
+
initGnn: typeof gnn.init;
|
|
45
|
+
};
|
|
46
|
+
export default _default;
|
|
47
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAGH,OAAO,EACL,QAAQ,EACR,iBAAiB,EACjB,OAAO,EACP,KAAK,EACL,UAAU,EACV,SAAS,EACT,cAAc,EACd,KAAK,SAAS,EACd,KAAK,UAAU,EACf,KAAK,kBAAkB,EACvB,KAAK,WAAW,EAChB,KAAK,WAAW,EAChB,KAAK,YAAY,IAAI,gBAAgB,EACrC,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,KAAK,KAAK,EACV,KAAK,cAAc,EACnB,KAAK,MAAM,EACZ,MAAM,gBAAgB,CAAC;AAGxB,OAAO,EACL,aAAa,EACb,cAAc,EACd,oBAAoB,EACpB,mBAAmB,EACnB,mBAAmB,EACnB,IAAI,IAAI,OAAO,EACf,KAAK,sBAAsB,EAC3B,KAAK,YAAY,IAAI,eAAe,EACrC,MAAM,eAAe,CAAC;AAGvB,OAAO,KAAK,IAAI,MAAM,gBAAgB,CAAC;AACvC,OAAO,KAAK,GAAG,MAAM,eAAe,CAAC;;;;;;;;;;;;;;;;AAErC,wBAiBE"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @ruvector/node - Unified Ruvector Package
|
|
3
|
+
*
|
|
4
|
+
* High-performance Rust vector database with GNN capabilities for Node.js.
|
|
5
|
+
* This package re-exports both @ruvector/core and @ruvector/gnn for convenience.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```typescript
|
|
9
|
+
* import {
|
|
10
|
+
* // Core vector database
|
|
11
|
+
* VectorDB,
|
|
12
|
+
* CollectionManager,
|
|
13
|
+
* DistanceMetric,
|
|
14
|
+
* // GNN capabilities
|
|
15
|
+
* RuvectorLayer,
|
|
16
|
+
* TensorCompress,
|
|
17
|
+
* differentiableSearch
|
|
18
|
+
* } from '@ruvector/node';
|
|
19
|
+
*
|
|
20
|
+
* // Create vector database
|
|
21
|
+
* const db = new VectorDB({ dimensions: 384 });
|
|
22
|
+
*
|
|
23
|
+
* // Create GNN layer
|
|
24
|
+
* const layer = new RuvectorLayer(384, 256, 4, 0.1);
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
// Re-export everything from @ruvector/core
|
|
28
|
+
export { VectorDB, CollectionManager, version, hello, getMetrics, getHealth, DistanceMetric } from '@ruvector/core';
|
|
29
|
+
// Re-export everything from @ruvector/gnn
|
|
30
|
+
export { RuvectorLayer, TensorCompress, differentiableSearch, hierarchicalForward, getCompressionLevel, init as initGnn } from '@ruvector/gnn';
|
|
31
|
+
// Convenience default export
|
|
32
|
+
import * as core from '@ruvector/core';
|
|
33
|
+
import * as gnn from '@ruvector/gnn';
|
|
34
|
+
export default {
|
|
35
|
+
// Core exports
|
|
36
|
+
VectorDB: core.VectorDB,
|
|
37
|
+
CollectionManager: core.CollectionManager,
|
|
38
|
+
version: core.version,
|
|
39
|
+
hello: core.hello,
|
|
40
|
+
getMetrics: core.getMetrics,
|
|
41
|
+
getHealth: core.getHealth,
|
|
42
|
+
DistanceMetric: core.DistanceMetric,
|
|
43
|
+
// GNN exports
|
|
44
|
+
RuvectorLayer: gnn.RuvectorLayer,
|
|
45
|
+
TensorCompress: gnn.TensorCompress,
|
|
46
|
+
differentiableSearch: gnn.differentiableSearch,
|
|
47
|
+
hierarchicalForward: gnn.hierarchicalForward,
|
|
48
|
+
getCompressionLevel: gnn.getCompressionLevel,
|
|
49
|
+
initGnn: gnn.init
|
|
50
|
+
};
|
|
51
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH,2CAA2C;AAC3C,OAAO,EACL,QAAQ,EACR,iBAAiB,EACjB,OAAO,EACP,KAAK,EACL,UAAU,EACV,SAAS,EACT,cAAc,EAYf,MAAM,gBAAgB,CAAC;AAExB,0CAA0C;AAC1C,OAAO,EACL,aAAa,EACb,cAAc,EACd,oBAAoB,EACpB,mBAAmB,EACnB,mBAAmB,EACnB,IAAI,IAAI,OAAO,EAGhB,MAAM,eAAe,CAAC;AAEvB,6BAA6B;AAC7B,OAAO,KAAK,IAAI,MAAM,gBAAgB,CAAC;AACvC,OAAO,KAAK,GAAG,MAAM,eAAe,CAAC;AAErC,eAAe;IACb,eAAe;IACf,QAAQ,EAAE,IAAI,CAAC,QAAQ;IACvB,iBAAiB,EAAE,IAAI,CAAC,iBAAiB;IACzC,OAAO,EAAE,IAAI,CAAC,OAAO;IACrB,KAAK,EAAE,IAAI,CAAC,KAAK;IACjB,UAAU,EAAE,IAAI,CAAC,UAAU;IAC3B,SAAS,EAAE,IAAI,CAAC,SAAS;IACzB,cAAc,EAAE,IAAI,CAAC,cAAc;IAEnC,cAAc;IACd,aAAa,EAAE,GAAG,CAAC,aAAa;IAChC,cAAc,EAAE,GAAG,CAAC,cAAc;IAClC,oBAAoB,EAAE,GAAG,CAAC,oBAAoB;IAC9C,mBAAmB,EAAE,GAAG,CAAC,mBAAmB;IAC5C,mBAAmB,EAAE,GAAG,CAAC,mBAAmB;IAC5C,OAAO,EAAE,GAAG,CAAC,IAAI;CAClB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,57 +1,43 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ruvector/node",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "High-performance
|
|
5
|
-
"main": "index.js",
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
]
|
|
3
|
+
"version": "0.1.22",
|
|
4
|
+
"description": "Unified Ruvector package - High-performance vector database with GNN capabilities for Node.js",
|
|
5
|
+
"main": "./dist/index.js",
|
|
6
|
+
"module": "./dist/index.mjs",
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"import": "./dist/index.mjs",
|
|
11
|
+
"require": "./dist/index.js",
|
|
12
|
+
"types": "./dist/index.d.ts"
|
|
13
|
+
},
|
|
14
|
+
"./gnn": {
|
|
15
|
+
"import": "./dist/gnn.mjs",
|
|
16
|
+
"require": "./dist/gnn.js",
|
|
17
|
+
"types": "./dist/gnn.d.ts"
|
|
19
18
|
}
|
|
20
19
|
},
|
|
21
20
|
"engines": {
|
|
22
21
|
"node": ">= 18"
|
|
23
22
|
},
|
|
24
23
|
"scripts": {
|
|
25
|
-
"
|
|
26
|
-
"build": "
|
|
27
|
-
"build:
|
|
28
|
-
"prepublishOnly": "
|
|
29
|
-
"test": "
|
|
30
|
-
"
|
|
31
|
-
"bench": "ava tests/benchmark.test.mjs",
|
|
32
|
-
"example:simple": "node examples/simple.mjs",
|
|
33
|
-
"example:advanced": "node examples/advanced.mjs",
|
|
34
|
-
"example:semantic": "node examples/semantic-search.mjs",
|
|
35
|
-
"version": "napi version",
|
|
36
|
-
"clean": "rm -rf *.node index.js index.d.ts npm"
|
|
24
|
+
"build": "npm run build:esm && npm run build:cjs",
|
|
25
|
+
"build:esm": "tsc --project tsconfig.esm.json",
|
|
26
|
+
"build:cjs": "tsc --project tsconfig.cjs.json",
|
|
27
|
+
"prepublishOnly": "npm run build",
|
|
28
|
+
"test": "node --test",
|
|
29
|
+
"clean": "rm -rf dist"
|
|
37
30
|
},
|
|
38
|
-
"
|
|
39
|
-
"@
|
|
40
|
-
"
|
|
31
|
+
"dependencies": {
|
|
32
|
+
"@ruvector/core": "^0.1.15",
|
|
33
|
+
"@ruvector/gnn": "^0.1.15"
|
|
41
34
|
},
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
|
|
45
|
-
],
|
|
46
|
-
"timeout": "2m",
|
|
47
|
-
"concurrency": 5,
|
|
48
|
-
"environmentVariables": {
|
|
49
|
-
"NODE_ENV": "test"
|
|
50
|
-
}
|
|
35
|
+
"devDependencies": {
|
|
36
|
+
"@types/node": "^20.19.25",
|
|
37
|
+
"typescript": "^5.9.3"
|
|
51
38
|
},
|
|
52
39
|
"files": [
|
|
53
|
-
"
|
|
54
|
-
"index.d.ts",
|
|
40
|
+
"dist",
|
|
55
41
|
"README.md",
|
|
56
42
|
"LICENSE"
|
|
57
43
|
],
|
|
@@ -61,6 +47,8 @@
|
|
|
61
47
|
"embeddings",
|
|
62
48
|
"similarity-search",
|
|
63
49
|
"hnsw",
|
|
50
|
+
"gnn",
|
|
51
|
+
"graph-neural-network",
|
|
64
52
|
"rust",
|
|
65
53
|
"napi",
|
|
66
54
|
"semantic-search",
|
|
@@ -69,24 +57,18 @@
|
|
|
69
57
|
"simd",
|
|
70
58
|
"performance"
|
|
71
59
|
],
|
|
60
|
+
"author": "rUv",
|
|
72
61
|
"license": "MIT",
|
|
73
62
|
"repository": {
|
|
74
63
|
"type": "git",
|
|
75
64
|
"url": "https://github.com/ruvnet/ruvector.git",
|
|
76
|
-
"directory": "
|
|
65
|
+
"directory": "npm/packages/node"
|
|
77
66
|
},
|
|
78
67
|
"homepage": "https://github.com/ruvnet/ruvector#readme",
|
|
79
68
|
"bugs": {
|
|
80
69
|
"url": "https://github.com/ruvnet/ruvector/issues"
|
|
81
70
|
},
|
|
82
|
-
"
|
|
83
|
-
"
|
|
84
|
-
"@ruvector/node-darwin-x64": "0.1.17",
|
|
85
|
-
"@ruvector/node-linux-x64-gnu": "0.1.17",
|
|
86
|
-
"@ruvector/node-darwin-arm64": "0.1.17",
|
|
87
|
-
"@ruvector/node-linux-arm64-gnu": "0.1.17",
|
|
88
|
-
"@ruvector/node-linux-arm64-musl": "0.1.17",
|
|
89
|
-
"@ruvector/node-win32-arm64-msvc": "0.1.17",
|
|
90
|
-
"@ruvector/node-linux-x64-musl": "0.1.17"
|
|
71
|
+
"publishConfig": {
|
|
72
|
+
"access": "public"
|
|
91
73
|
}
|
|
92
|
-
}
|
|
74
|
+
}
|