Skip to main content
Memory cards transform unstructured text into structured knowledge - entity-attribute-value triples that enable O(1) lookups, fact tracking, and relationship queries. Enrichment is the process of automatically extracting these cards from your content.

What Are Memory Cards?

A memory card captures a single piece of knowledge:

Memory Card Types

Facts

Objective information that can be verified:

Preferences

Subjective choices or opinions:

Events

Time-bound occurrences:

Relationships

Connections between entities:

Profiles

Descriptive attributes:

Enrichment Engines

Memvid supports multiple extraction engines with different speed/quality/cost tradeoffs:

Rules Engine

Pattern-based extraction using regex. Fast and free but limited:
Extracts:
  • Email addresses → entity: <local>, slot: email
  • Phone numbers → entity: contact, slot: phone
  • Dates → entity: document, slot: date_mentioned
  • URLs → entity: document, slot: link

Candle Engine (Local LLM)

Runs Phi-3.5-mini locally via HuggingFace Candle:
  • First run downloads ~2.4GB model
  • No API key required
  • Good quality, runs on CPU (GPU optional)
  • Slower than API-based engines

Cloud Engines

For best quality, use cloud LLMs:

CLI Commands

Enrich: Extract Memory Cards

Output:

Memories: View Extracted Cards

Output:

State: O(1) Entity Lookup

Get the current state of any entity instantly:
Output:

Facts: Audit Fact History

Track how facts changed over time with full provenance:
Output:

Export: Standard Formats

Export facts to standard knowledge graph formats:
N-Triples output:

Schema: Predicate Management

Define and view predicate schemas:
Output:

SDK Usage

Python

Node.js


Version Relations

Memory cards track how values change over time: Example tracking:
Query the current value:
Query the history:

Deduplication

Memory cards are automatically deduplicated:
  • Same entity + slot: Keeps highest confidence value
  • Same value: Skips if already exists
  • Different sources: Tracks all sources for provenance

Incremental Enrichment

By default, enrichment only processes new frames:
Force full re-enrichment:

Performance Tuning

Parallel Workers

Batch Size

Engine Selection by Use Case


Use Cases

Personal Knowledge Management

Track facts about people, projects, and topics:

Meeting Minutes

Extract action items and decisions:

Research Papers

Build a knowledge graph from literature:

Customer Information

Track customer preferences and history:

Best Practices

1. Choose the Right Engine

Start with rules for testing, graduate to groq for production:

2. Enrich After Bulk Imports

Wait until documents are loaded before enriching:

3. Use Incremental Mode

Let Memvid track what’s been enriched:

4. Export for Integration

Use exports to integrate with other tools:

Troubleshooting

”No memory cards extracted”

  1. Check if frames have text content:
  2. Try verbose mode to see extraction:
  3. Content may be too short or unstructured

”API rate limited”

Reduce workers and increase batch size:

“Low confidence scores”

  • Try a better engine (claude > groq > rules)
  • Content may be ambiguous
  • Check source document quality

”Missing expected entities”

  1. Check if entity appears in source:
  2. Force re-enrichment:

Next Steps

Graph Search

Query entity relationships with Logic Mesh

Deduplication

How duplicate content is handled