ruvector 0.1.95 → 0.1.97
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 +91 -1
- package/bin/cli.js +255 -783
- package/bin/mcp-server.js +381 -450
- package/dist/core/index.d.ts +1 -2
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/index.js +2 -4
- package/dist/core/onnx-embedder.d.ts +0 -84
- package/dist/core/onnx-embedder.d.ts.map +1 -1
- package/dist/core/onnx-embedder.js +12 -167
- package/dist/core/rvf-wrapper.d.ts +86 -0
- package/dist/core/rvf-wrapper.d.ts.map +1 -0
- package/dist/core/rvf-wrapper.js +102 -0
- package/dist/index.d.ts +8 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +61 -28
- package/package.json +5 -3
package/README.md
CHANGED
|
@@ -60,7 +60,7 @@ RuVector includes an MCP server for Claude Code with 30+ tools:
|
|
|
60
60
|
|
|
61
61
|
```bash
|
|
62
62
|
# Add to Claude Code
|
|
63
|
-
claude mcp add ruvector
|
|
63
|
+
claude mcp add ruvector -- npx ruvector mcp start
|
|
64
64
|
```
|
|
65
65
|
|
|
66
66
|
**Available MCP Tools:**
|
|
@@ -1940,6 +1940,9 @@ npm test
|
|
|
1940
1940
|
- **[ruvector-core](https://www.npmjs.com/package/ruvector-core)** - Core native bindings (lower-level API)
|
|
1941
1941
|
- **[ruvector-wasm](https://www.npmjs.com/package/ruvector-wasm)** - WebAssembly implementation for browsers
|
|
1942
1942
|
- **[ruvector-cli](https://www.npmjs.com/package/ruvector-cli)** - Standalone CLI tools
|
|
1943
|
+
- **[@ruvector/rvf](https://www.npmjs.com/package/@ruvector/rvf)** - RVF cognitive container SDK
|
|
1944
|
+
- **[@ruvector/rvf-wasm](https://www.npmjs.com/package/@ruvector/rvf-wasm)** - RVF WASM build for browsers, Deno, and edge
|
|
1945
|
+
- **[rvlite](https://www.npmjs.com/package/rvlite)** - Lightweight vector database with SQL, SPARQL, and Cypher
|
|
1943
1946
|
|
|
1944
1947
|
### Platform-Specific Packages (auto-installed)
|
|
1945
1948
|
|
|
@@ -1949,6 +1952,93 @@ npm test
|
|
|
1949
1952
|
- **[ruvector-core-darwin-arm64](https://www.npmjs.com/package/ruvector-core-darwin-arm64)**
|
|
1950
1953
|
- **[ruvector-core-win32-x64-msvc](https://www.npmjs.com/package/ruvector-core-win32-x64-msvc)**
|
|
1951
1954
|
|
|
1955
|
+
---
|
|
1956
|
+
|
|
1957
|
+
## RVF Cognitive Containers
|
|
1958
|
+
|
|
1959
|
+
Ruvector integrates with [RVF (RuVector Format)](https://github.com/ruvnet/ruvector/tree/main/crates/rvf) — a universal binary substrate that stores vectors, models, graphs, compute kernels, and attestation in a single `.rvf` file.
|
|
1960
|
+
|
|
1961
|
+
### Enable RVF Backend
|
|
1962
|
+
|
|
1963
|
+
```bash
|
|
1964
|
+
# Install the optional RVF package
|
|
1965
|
+
npm install @ruvector/rvf
|
|
1966
|
+
|
|
1967
|
+
# Set backend via environment variable
|
|
1968
|
+
export RUVECTOR_BACKEND=rvf
|
|
1969
|
+
|
|
1970
|
+
# Or detect automatically (native -> rvf -> wasm fallback)
|
|
1971
|
+
npx ruvector info
|
|
1972
|
+
```
|
|
1973
|
+
|
|
1974
|
+
```typescript
|
|
1975
|
+
import { getImplementationType, isRvf } from 'ruvector';
|
|
1976
|
+
|
|
1977
|
+
console.log(getImplementationType()); // 'native' | 'rvf' | 'wasm'
|
|
1978
|
+
console.log(isRvf()); // true if RVF backend is active
|
|
1979
|
+
```
|
|
1980
|
+
|
|
1981
|
+
### RVF CLI Commands
|
|
1982
|
+
|
|
1983
|
+
8 RVF-specific subcommands are available through the ruvector CLI:
|
|
1984
|
+
|
|
1985
|
+
```bash
|
|
1986
|
+
# Create an RVF store
|
|
1987
|
+
npx ruvector rvf create mydb.rvf -d 384 --metric cosine
|
|
1988
|
+
|
|
1989
|
+
# Ingest vectors from JSON
|
|
1990
|
+
npx ruvector rvf ingest mydb.rvf --input vectors.json --format json
|
|
1991
|
+
|
|
1992
|
+
# Query nearest neighbors
|
|
1993
|
+
npx ruvector rvf query mydb.rvf --vector "[0.1,0.2,...]" --k 10
|
|
1994
|
+
|
|
1995
|
+
# File status and segment listing
|
|
1996
|
+
npx ruvector rvf status mydb.rvf
|
|
1997
|
+
npx ruvector rvf segments mydb.rvf
|
|
1998
|
+
|
|
1999
|
+
# COW branching — derive a child file
|
|
2000
|
+
npx ruvector rvf derive mydb.rvf --output child.rvf
|
|
2001
|
+
|
|
2002
|
+
# Compact and reclaim space
|
|
2003
|
+
npx ruvector rvf compact mydb.rvf
|
|
2004
|
+
|
|
2005
|
+
# Export to JSON
|
|
2006
|
+
npx ruvector rvf export mydb.rvf --output dump.json
|
|
2007
|
+
```
|
|
2008
|
+
|
|
2009
|
+
### RVF Platform Support
|
|
2010
|
+
|
|
2011
|
+
| Platform | Runtime | Backend |
|
|
2012
|
+
|----------|---------|---------|
|
|
2013
|
+
| Linux x86_64 / aarch64 | Node.js 18+ | Native (N-API) |
|
|
2014
|
+
| macOS x86_64 / arm64 | Node.js 18+ | Native (N-API) |
|
|
2015
|
+
| Windows x86_64 | Node.js 18+ | Native (N-API) |
|
|
2016
|
+
| Any | Deno | WASM (`@ruvector/rvf-wasm`) |
|
|
2017
|
+
| Any | Browser | WASM (`@ruvector/rvf-wasm`) |
|
|
2018
|
+
| Any | Cloudflare Workers | WASM (`@ruvector/rvf-wasm`) |
|
|
2019
|
+
|
|
2020
|
+
### Download Example .rvf Files
|
|
2021
|
+
|
|
2022
|
+
45 pre-built example files are available (~11 MB total):
|
|
2023
|
+
|
|
2024
|
+
```bash
|
|
2025
|
+
# Download a specific example
|
|
2026
|
+
curl -LO https://raw.githubusercontent.com/ruvnet/ruvector/main/examples/rvf/output/basic_store.rvf
|
|
2027
|
+
|
|
2028
|
+
# Popular examples:
|
|
2029
|
+
# basic_store.rvf (152 KB) — 1,000 vectors, dim 128
|
|
2030
|
+
# semantic_search.rvf (755 KB) — Semantic search with HNSW
|
|
2031
|
+
# rag_pipeline.rvf (303 KB) — RAG pipeline embeddings
|
|
2032
|
+
# agent_memory.rvf (32 KB) — AI agent memory store
|
|
2033
|
+
# self_booting.rvf (31 KB) — Self-booting with kernel
|
|
2034
|
+
# progressive_index.rvf (2.5 MB) — Large-scale HNSW index
|
|
2035
|
+
|
|
2036
|
+
# Generate all examples locally
|
|
2037
|
+
cd crates/rvf && cargo run --example generate_all
|
|
2038
|
+
```
|
|
2039
|
+
|
|
2040
|
+
Full catalog: [examples/rvf/output/](https://github.com/ruvnet/ruvector/tree/main/examples/rvf/output)
|
|
2041
|
+
|
|
1952
2042
|
## 🐛 Troubleshooting
|
|
1953
2043
|
|
|
1954
2044
|
### Native Module Not Loading
|