Skip to main content
Advanced CLI commands for power users including memory enrichment, model management, entity graph traversal, and document auditing.

Enrichment

The enrich command extracts structured memory cards (Subject-Predicate-Object triplets) from frames using various extraction engines.

Synopsis

Options

Available Engines

Examples

Response

JSON Output


Memories

The memories command displays extracted memory cards from enriched frames.

Synopsis

Options

Examples

Response

JSON Output


State

Query current entity state with O(1) lookup. This is the fastest way to get an entity’s current attributes.

Synopsis

Arguments

Options

Examples

Response

JSON Output


Facts

Audit fact changes with provenance and filtering.

Synopsis

Options

Examples

Response


Export

Export facts to various formats.

Synopsis

Options

Examples

Output Formats

N-Triples (RDF):
JSON:
CSV:

Schema

Infer and manage predicate schemas.

Synopsis

Subcommands

schema infer

Infer schema from existing facts.

schema list

List known schemas.

Response


Models

The models command manages local models for enrichment, embeddings, and visual search.

Subcommands

Install Models

Available Models

List Models

Model Types

Remove and Verify Models


Follow (Logic-Mesh Traversal)

The follow command traverses the entity-relationship graph built from extracted entities.
Logic-Mesh must be enabled during ingestion with memvid put --logic-mesh to use follow commands.

Subcommands

Traverse Relationships

Traverse Options

Traverse Examples

List Entities

Entity Types

Mesh Statistics

Stats Output


Audit

The audit command generates sourced reports on specific topics from your knowledge base.

Basic Usage

Options

Examples

Output Formats

Text (default):
Markdown:
JSON:

Session Recording (Time-Travel Replay)

The session command enables recording and replaying agent sessions for debugging RAG failures and testing different search strategies.

Subcommands

Start Session

All subsequent operations (put, find, ask) will be recorded until the session is ended.

End Session

Returns a summary with action count, checkpoints, and duration.

List Sessions

Replay Session

The key feature: replay a recorded session with different parameters to understand how results change.

Replay Options

Delete Session

Use Case: Debugging RAG Failures

When a query fails to find relevant results:
  1. Start a session before ingesting data
  2. Ingest documents with different terminology
  3. Run queries that show the failure
  4. End the session
  5. Replay with adaptive retrieval to see if results improve
The replay shows how adaptive retrieval discovers documents that top-k filtering missed.

Best Practices

Enrichment Strategy

Combining Search Modes

Compliance and Audit


Environment Variables


Next Steps

Entity Extraction

Learn about Logic-Mesh and entity extraction

Visual Embeddings

Enable visual search with CLIP

Local Models

Configure local model inference

Python SDK

Use these features programmatically