memvid-core
Core library for Memvid v2 - a crash-safe, deterministic, single-file AI memory system.
Features
- Single-file format - Everything in one portable
.mv2file with embedded WAL - Hybrid search - BM25 lexical + HNSW vector search
- Crash-safe - Automatic recovery from failures
- Deterministic - Same inputs produce identical outputs
- Time-indexed - Chronological document navigation
Installation
[]
= "2.0.1"
Quick Start
use ;
Feature Flags
| Feature | Default | Description |
|---|---|---|
lex |
Yes | Tantivy-based lexical search (BM25) |
vec |
No | HNSW vector search with ONNX embeddings |
temporal_track |
No | Natural language time queries |
parallel_segments |
No | Multi-threaded ingestion |
pdfium |
No | PDF rendering with Pdfium |
Enable features in your Cargo.toml:
[]
= { = "2.0.1", = ["lex", "vec", "parallel_segments"] }
Logging
memvid-core uses the log and tracing crates. Set up a subscriber in your application:
// Using env_logger
from_env.init;
// Or using tracing
fmt
.with_env_filter
.init;
Recommended log levels:
error- Production (critical failures only)warn- Production with warningsinfo- Developmentdebug/trace- Debugging
Documentation
License
Licensed under either of:
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.