RuVector combines local semantic embeddings, persistent vector retrieval, graph relationships, and feedback-driven learning primitives for agent memory and typed local decisions.
Overview
RuVector is a Rust-native toolkit for fast local vector search, session-spanning agent memory, and optional graph-backed retrieval. It ships as npm packages, a Python distribution, Rust crates, and an MCP server so applications can embed storage, reopen indexes in later processes, and attach metadata to recalled evidence.
Core flows include downloading a local embedding model on first semantic use, persisting vectors under a project directory, and exposing CLI hooks for stats and re-embedding when models change. Separate packages cover browser WASM search, knowledge-graph retrieval, contrastive training helpers, typed text-to-label decisions with abstention, and portable memory artifact formats.
Documentation groups capabilities into learn-and-remember, sense-and-respond, and evaluation-oriented workflows, with examples for Node.js, Python, and Rust persistence loops. A bundled typesafe decision engine targets bounded tasks such as ticket routing using local ONNX heads rather than full LLM calls.
Hosted services are optional; the default retrieval path is local, and applications decide what to store, trust, expire, and promote from recorded outcomes.
Key features
- Persistent local vector storage
- Semantic embedding model support
- Graph and knowledge retrieval packages
- MCP server for agent tooling
- Typed local decision heads
- Browser WASM vector search
- Contrastive and SONA learning hooks
- Cross-language SDKs and CLI
Use cases
- Project-scoped agent memory
- Local semantic search in apps
- MCP clients querying stored context
- Ticket routing without full LLM calls
- Browser-side vector insert and query