memvid/memvid

Memory layer for AI Agents. Replace complex RAG pipelines with a serverless, single-file memory layer. Give your agents instant retrieval and long-term memory.

View on GitHub ↗Jump to charts ↓

Summary Information

Updated 6 minutes ago
Added to GitGenius on January 14th, 2026
Created on May 27th, 2025
Open Issues & Pull Requests: 34 (+0)
GitHub issues: Enabled
Number of forks: 1,420
Total Stargazers: 16,539 (+0)
Total Subscribers: 126 (+0)

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Issue API getrepoissuespagesummary failed: 429 Rate limit exceeded. Please try again later.

Detailed Description

Memvid is a serverless memory layer for AI agents written in Rust that consolidates complex retrieval-augmented generation pipelines into a single portable file. The system packages data, embeddings, search structures, and metadata into a self-contained .mv2 capsule file, eliminating the need for traditional vector databases or server infrastructure. This approach enables AI agents to maintain persistent, long-term memory that can be carried and deployed anywhere while providing instant local retrieval without external dependencies.

The core innovation behind Memvid is its Smart Frame architecture, inspired by video encoding principles. Rather than storing video, the system organizes AI memory as an append-only sequence of immutable Smart Frames that contain content, timestamps, checksums, and metadata. Frames are grouped to enable efficient compression, indexing, and parallel reads. This design provides several critical capabilities: append-only writes that never corrupt existing data, the ability to query past memory states, timeline-style inspection of knowledge evolution, crash safety through committed immutable frames, and efficient compression using video encoding techniques adapted for memory storage.

Memvid's benchmark results demonstrate significant performance advantages. The system achieves 35 percent improvement over state-of-the-art on the LoCoMo benchmark for long-horizon conversational recall and reasoning, 76 percent improvement on multi-hop reasoning, and 56 percent improvement on temporal reasoning compared to industry averages. Latency performance reaches 0.025 milliseconds at the 50th percentile and 0.075 milliseconds at the 99th percentile, with 1,372 times higher throughput than standard vector database approaches.

The project provides SDKs across multiple languages including Node.js, Python, Rust, and a command-line interface, making it accessible to diverse development environments. The Rust implementation includes optional feature flags for full-text search with BM25 ranking, PDF text extraction, vector similarity search using HNSW, CLIP visual embeddings, Whisper audio transcription, cloud API embeddings, natural language date parsing, multi-threaded ingestion, password-based encryption, and PDF text repair. Text embedding support includes local ONNX models such as BGE-small, BGE-base, Nomic, and GTE-large, as well as OpenAI API integration for cloud-based embeddings.

Memvid targets use cases spanning long-running AI agents, enterprise knowledge bases, offline-first systems, codebase understanding, customer support agents, workflow automation, sales and marketing copilots, personal knowledge assistants, and specialized applications in medical, legal, and financial domains. The system is licensed under Apache License 2.0 and maintains comprehensive documentation at docs.memvid.com alongside a sandbox environment for testing at sandbox.memvid.com.