Squashed 'vendor/ruvector/' content from commit b64c2172
git-subtree-dir: vendor/ruvector git-subtree-split: b64c21726f2bb37286d9ee36a7869fef60cc6900
This commit is contained in:
53
npm/core/platforms/darwin-arm64/README.md
Normal file
53
npm/core/platforms/darwin-arm64/README.md
Normal file
@@ -0,0 +1,53 @@
|
||||
# @ruvector/core-darwin-arm64
|
||||
|
||||
Native macOS ARM64 bindings for @ruvector/core.
|
||||
|
||||
This package contains the native Node.js addon for macOS (Apple Silicon) systems.
|
||||
|
||||
## Installation
|
||||
|
||||
This package is automatically installed as an optional dependency of `@ruvector/core` when running on macOS ARM64 systems.
|
||||
|
||||
```bash
|
||||
npm install @ruvector/core
|
||||
```
|
||||
|
||||
## Direct Installation
|
||||
|
||||
You can also install this package directly:
|
||||
|
||||
```bash
|
||||
npm install @ruvector/core-darwin-arm64
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
```javascript
|
||||
const { VectorDb } = require('@ruvector/core-darwin-arm64');
|
||||
|
||||
const db = new VectorDb({
|
||||
dimensions: 128,
|
||||
storagePath: './vectors.db'
|
||||
});
|
||||
|
||||
// Insert vectors
|
||||
await db.insert({
|
||||
id: 'vec1',
|
||||
vector: new Float32Array([...])
|
||||
});
|
||||
|
||||
// Search
|
||||
const results = await db.search({
|
||||
vector: new Float32Array([...]),
|
||||
k: 10
|
||||
});
|
||||
```
|
||||
|
||||
## Requirements
|
||||
|
||||
- Node.js >= 18
|
||||
- macOS (Apple Silicon - M1, M2, M3, etc.)
|
||||
|
||||
## License
|
||||
|
||||
MIT
|
||||
14
npm/core/platforms/darwin-arm64/index.js
Normal file
14
npm/core/platforms/darwin-arm64/index.js
Normal file
@@ -0,0 +1,14 @@
|
||||
const { join } = require('path');
|
||||
|
||||
let nativeBinding;
|
||||
try {
|
||||
nativeBinding = require('./ruvector.node');
|
||||
} catch (error) {
|
||||
throw new Error(
|
||||
'Failed to load native binding for darwin-arm64. ' +
|
||||
'This package may have been installed incorrectly. ' +
|
||||
'Error: ' + error.message
|
||||
);
|
||||
}
|
||||
|
||||
module.exports = nativeBinding;
|
||||
60
npm/core/platforms/darwin-arm64/package.json
Normal file
60
npm/core/platforms/darwin-arm64/package.json
Normal file
@@ -0,0 +1,60 @@
|
||||
{
|
||||
"name": "ruvector-core-darwin-arm64",
|
||||
"version": "0.1.25",
|
||||
"description": "macOS ARM64 (Apple Silicon M1/M2/M3) native binding for ruvector-core - High-performance vector database with HNSW indexing built in Rust",
|
||||
"main": "index.js",
|
||||
"type": "commonjs",
|
||||
"os": [
|
||||
"darwin"
|
||||
],
|
||||
"cpu": [
|
||||
"arm64"
|
||||
],
|
||||
"author": "ruv.io Team <info@ruv.io> (https://ruv.io)",
|
||||
"homepage": "https://ruv.io",
|
||||
"engines": {
|
||||
"node": ">= 18"
|
||||
},
|
||||
"files": [
|
||||
"index.js",
|
||||
"ruvector.node",
|
||||
"*.node",
|
||||
"README.md"
|
||||
],
|
||||
"keywords": [
|
||||
"ruvector",
|
||||
"vector-database",
|
||||
"vector-search",
|
||||
"similarity-search",
|
||||
"semantic-search",
|
||||
"hnsw",
|
||||
"native",
|
||||
"napi",
|
||||
"rust",
|
||||
"macos",
|
||||
"darwin",
|
||||
"arm64",
|
||||
"apple-silicon",
|
||||
"m1",
|
||||
"m2",
|
||||
"m3",
|
||||
"ai",
|
||||
"machine-learning",
|
||||
"embedding-database",
|
||||
"simd",
|
||||
"performance",
|
||||
"ruv"
|
||||
],
|
||||
"license": "MIT",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/ruvnet/ruvector.git",
|
||||
"directory": "npm/core/platforms/darwin-arm64"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/ruvnet/ruvector/issues"
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
}
|
||||
}
|
||||
BIN
npm/core/platforms/darwin-arm64/ruvector.node
Executable file
BIN
npm/core/platforms/darwin-arm64/ruvector.node
Executable file
Binary file not shown.
Reference in New Issue
Block a user