@ruvector/node 0.1.23 → 0.1.25
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 +19 -0
- package/dist/gnn.js.map +1 -0
- package/dist/index.d.ts +41 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +88 -0
- package/dist/index.js.map +1 -0
- package/package.json +8 -8
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,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @ruvector/node/gnn - GNN-specific exports
|
|
4
|
+
*
|
|
5
|
+
* Import GNN capabilities directly:
|
|
6
|
+
* ```typescript
|
|
7
|
+
* import { RuvectorLayer, TensorCompress } from '@ruvector/node/gnn';
|
|
8
|
+
* ```
|
|
9
|
+
*/
|
|
10
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
+
exports.init = exports.getCompressionLevel = exports.hierarchicalForward = exports.differentiableSearch = exports.TensorCompress = exports.RuvectorLayer = void 0;
|
|
12
|
+
var gnn_1 = require("@ruvector/gnn");
|
|
13
|
+
Object.defineProperty(exports, "RuvectorLayer", { enumerable: true, get: function () { return gnn_1.RuvectorLayer; } });
|
|
14
|
+
Object.defineProperty(exports, "TensorCompress", { enumerable: true, get: function () { return gnn_1.TensorCompress; } });
|
|
15
|
+
Object.defineProperty(exports, "differentiableSearch", { enumerable: true, get: function () { return gnn_1.differentiableSearch; } });
|
|
16
|
+
Object.defineProperty(exports, "hierarchicalForward", { enumerable: true, get: function () { return gnn_1.hierarchicalForward; } });
|
|
17
|
+
Object.defineProperty(exports, "getCompressionLevel", { enumerable: true, get: function () { return gnn_1.getCompressionLevel; } });
|
|
18
|
+
Object.defineProperty(exports, "init", { enumerable: true, get: function () { return gnn_1.init; } });
|
|
19
|
+
//# 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,qCASuB;AARrB,oGAAA,aAAa,OAAA;AACb,qGAAA,cAAc,OAAA;AACd,2GAAA,oBAAoB,OAAA;AACpB,0GAAA,mBAAmB,OAAA;AACnB,0GAAA,mBAAmB,OAAA;AACnB,2FAAA,IAAI,OAAA"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
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, type VectorEntry, type SearchQuery, type SearchResult as CoreSearchResult, } 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
|
+
RuvectorLayer: typeof gnn.RuvectorLayer;
|
|
34
|
+
TensorCompress: typeof gnn.TensorCompress;
|
|
35
|
+
differentiableSearch: typeof gnn.differentiableSearch;
|
|
36
|
+
hierarchicalForward: typeof gnn.hierarchicalForward;
|
|
37
|
+
getCompressionLevel: typeof gnn.getCompressionLevel;
|
|
38
|
+
initGnn: typeof gnn.init;
|
|
39
|
+
};
|
|
40
|
+
export default _default;
|
|
41
|
+
//# 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,KAAK,WAAW,EAChB,KAAK,WAAW,EAChB,KAAK,YAAY,IAAI,gBAAgB,GACtC,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,wBAWE"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @ruvector/node - Unified Ruvector Package
|
|
4
|
+
*
|
|
5
|
+
* High-performance Rust vector database with GNN capabilities for Node.js.
|
|
6
|
+
* This package re-exports both @ruvector/core and @ruvector/gnn for convenience.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```typescript
|
|
10
|
+
* import {
|
|
11
|
+
* // Core vector database
|
|
12
|
+
* VectorDB,
|
|
13
|
+
* CollectionManager,
|
|
14
|
+
* DistanceMetric,
|
|
15
|
+
* // GNN capabilities
|
|
16
|
+
* RuvectorLayer,
|
|
17
|
+
* TensorCompress,
|
|
18
|
+
* differentiableSearch
|
|
19
|
+
* } from '@ruvector/node';
|
|
20
|
+
*
|
|
21
|
+
* // Create vector database
|
|
22
|
+
* const db = new VectorDB({ dimensions: 384 });
|
|
23
|
+
*
|
|
24
|
+
* // Create GNN layer
|
|
25
|
+
* const layer = new RuvectorLayer(384, 256, 4, 0.1);
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
29
|
+
if (k2 === undefined) k2 = k;
|
|
30
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
31
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
32
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
33
|
+
}
|
|
34
|
+
Object.defineProperty(o, k2, desc);
|
|
35
|
+
}) : (function(o, m, k, k2) {
|
|
36
|
+
if (k2 === undefined) k2 = k;
|
|
37
|
+
o[k2] = m[k];
|
|
38
|
+
}));
|
|
39
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
40
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
41
|
+
}) : function(o, v) {
|
|
42
|
+
o["default"] = v;
|
|
43
|
+
});
|
|
44
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
45
|
+
var ownKeys = function(o) {
|
|
46
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
47
|
+
var ar = [];
|
|
48
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
49
|
+
return ar;
|
|
50
|
+
};
|
|
51
|
+
return ownKeys(o);
|
|
52
|
+
};
|
|
53
|
+
return function (mod) {
|
|
54
|
+
if (mod && mod.__esModule) return mod;
|
|
55
|
+
var result = {};
|
|
56
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
57
|
+
__setModuleDefault(result, mod);
|
|
58
|
+
return result;
|
|
59
|
+
};
|
|
60
|
+
})();
|
|
61
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
62
|
+
exports.initGnn = exports.getCompressionLevel = exports.hierarchicalForward = exports.differentiableSearch = exports.TensorCompress = exports.RuvectorLayer = exports.VectorDB = void 0;
|
|
63
|
+
// Re-export from @ruvector/core (packages/core — simple WASM-free wrapper)
|
|
64
|
+
var core_1 = require("@ruvector/core");
|
|
65
|
+
Object.defineProperty(exports, "VectorDB", { enumerable: true, get: function () { return core_1.VectorDB; } });
|
|
66
|
+
// Re-export everything from @ruvector/gnn
|
|
67
|
+
var gnn_1 = require("@ruvector/gnn");
|
|
68
|
+
Object.defineProperty(exports, "RuvectorLayer", { enumerable: true, get: function () { return gnn_1.RuvectorLayer; } });
|
|
69
|
+
Object.defineProperty(exports, "TensorCompress", { enumerable: true, get: function () { return gnn_1.TensorCompress; } });
|
|
70
|
+
Object.defineProperty(exports, "differentiableSearch", { enumerable: true, get: function () { return gnn_1.differentiableSearch; } });
|
|
71
|
+
Object.defineProperty(exports, "hierarchicalForward", { enumerable: true, get: function () { return gnn_1.hierarchicalForward; } });
|
|
72
|
+
Object.defineProperty(exports, "getCompressionLevel", { enumerable: true, get: function () { return gnn_1.getCompressionLevel; } });
|
|
73
|
+
Object.defineProperty(exports, "initGnn", { enumerable: true, get: function () { return gnn_1.init; } });
|
|
74
|
+
// Convenience default export
|
|
75
|
+
const core = __importStar(require("@ruvector/core"));
|
|
76
|
+
const gnn = __importStar(require("@ruvector/gnn"));
|
|
77
|
+
exports.default = {
|
|
78
|
+
// Core exports
|
|
79
|
+
VectorDB: core.VectorDB,
|
|
80
|
+
// GNN exports
|
|
81
|
+
RuvectorLayer: gnn.RuvectorLayer,
|
|
82
|
+
TensorCompress: gnn.TensorCompress,
|
|
83
|
+
differentiableSearch: gnn.differentiableSearch,
|
|
84
|
+
hierarchicalForward: gnn.hierarchicalForward,
|
|
85
|
+
getCompressionLevel: gnn.getCompressionLevel,
|
|
86
|
+
initGnn: gnn.init
|
|
87
|
+
};
|
|
88
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,2EAA2E;AAC3E,uCAKwB;AAJtB,gGAAA,QAAQ,OAAA;AAMV,0CAA0C;AAC1C,qCASuB;AARrB,oGAAA,aAAa,OAAA;AACb,qGAAA,cAAc,OAAA;AACd,2GAAA,oBAAoB,OAAA;AACpB,0GAAA,mBAAmB,OAAA;AACnB,0GAAA,mBAAmB,OAAA;AACnB,8FAAA,IAAI,OAAW;AAKjB,6BAA6B;AAC7B,qDAAuC;AACvC,mDAAqC;AAErC,kBAAe;IACb,eAAe;IACf,QAAQ,EAAE,IAAI,CAAC,QAAQ;IAEvB,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,28 +1,28 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ruvector/node",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.25",
|
|
4
4
|
"description": "Unified Ruvector package - High-performance vector database with GNN capabilities for Node.js",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
|
-
"module": "./dist/index.mjs",
|
|
7
6
|
"types": "./dist/index.d.ts",
|
|
8
7
|
"exports": {
|
|
9
8
|
".": {
|
|
10
|
-
"
|
|
9
|
+
"types": "./dist/index.d.ts",
|
|
11
10
|
"require": "./dist/index.js",
|
|
12
|
-
"
|
|
11
|
+
"import": "./dist/index.js",
|
|
12
|
+
"default": "./dist/index.js"
|
|
13
13
|
},
|
|
14
14
|
"./gnn": {
|
|
15
|
-
"
|
|
15
|
+
"types": "./dist/gnn.d.ts",
|
|
16
16
|
"require": "./dist/gnn.js",
|
|
17
|
-
"
|
|
17
|
+
"import": "./dist/gnn.js",
|
|
18
|
+
"default": "./dist/gnn.js"
|
|
18
19
|
}
|
|
19
20
|
},
|
|
20
21
|
"engines": {
|
|
21
22
|
"node": ">= 18"
|
|
22
23
|
},
|
|
23
24
|
"scripts": {
|
|
24
|
-
"build": "npm run build:
|
|
25
|
-
"build:esm": "tsc --project tsconfig.esm.json",
|
|
25
|
+
"build": "npm run build:cjs",
|
|
26
26
|
"build:cjs": "tsc --project tsconfig.cjs.json",
|
|
27
27
|
"prepublishOnly": "npm run build",
|
|
28
28
|
"test": "node --test",
|