Skip to main content
This guide walks you through creating your first memory, adding documents, and searching. You’ll be up and running in under 5 minutes.

Prerequisites

Install the CLI using one of these methods:
Verify your installation:

Step 1: Create Your First Memory

Create a new .mv2 memory file:
Output:
Check the memory info:
You’ll see the initial state: 0 documents, 1 GB capacity.

Step 2: Add Documents

Add Text Content

Add some text directly:

Add Files

Add documents from your filesystem:

Add with Metadata

Organize your content with tracks and tags:

Step 3: Search Your Memory

Output:

Search Modes

Combines keyword and semantic search for best results:

JSON Output

Get results in JSON format for scripting:

Step 4: Ask Questions

Use AI to synthesize answers from your documents:

Step 5: Browse Timeline

View documents chronologically:

Step 6: Verify Integrity

Ensure your memory file is healthy:
This checks checksums, index integrity, and confirms the file is self-contained with no auxiliary files.

Next Steps

You’ve created your first memory, added documents, and run searches. Here’s what to explore next:

CLI Reference

Complete reference for all CLI commands

Python SDK

Build applications with the Python SDK

Node.js SDK

Build applications with the Node.js SDK

Concepts

Understand how Memvid works

Complete Example

Here’s a complete workflow for building a documentation knowledge base:
Your documentation is now searchable with both keywords and natural language queries!

Using with SDKs

Python

Node.js