#3006·OpenViking

[Bug] VLM memory extraction copies verbatim content instead of distilling facts — 74KB skill definitions stored as single memory entries

Author: wyl1988Created Jul 4, 2026Updated Sep 30, 2026

Bug Description

When OV extracts memories from committed sessions, the VLM is supposed to distill conversation content into short, structured facts. In practice, the VLM often copies verbatim — entire skill definitions (74KB), experience reports (42KB), and empty template files (30KB) are written into memories/ as-is, without any summarization or distillation.

This was acknowledged in issues #530 and #531 (both now closed), but the underlying behavior persists in production.

Impact

  1. Embedding failures: Files exceeding the embedding model's context window (e.g., >2560 tokens with local Qwen3-Embedding-4B) fail to vectorize entirely — they become "dead memories" that exist on disk but are never searchable.

  2. Memory pollution: Skill definitions, full conversation logs, and template files dilute the memory space, making semantic search less precise for actual facts.

  3. Manual maintenance burden: We had to write a custom chunking script (ov-memory-chunker.py) to split oversized memory files, running daily via cron, just to keep the embedding pipeline functional.

Observed Files (examples)

File Size Content
skills/customs-wiki-review.md 74KB Full skill definition copied verbatim
experiences/class_note_wiki_compilation.md 42KB Complete experience report with chat logs
events/品目注释编译规范终稿确立.md 31KB Full document with no distillation
profile.md 30KB Profile template, mostly empty

Out of 1,365 memory files, 121 files are >5KB and 8 files are >9KB — far larger than what a memory entry should be.

Expected Behavior

The VLM extraction should produce short, structured memory entries (a few hundred bytes to ~2KB), distilling conversations into facts like:

  • User preferences
  • Configuration decisions
  • Operational outcomes
  • Key learnings

Not verbatim copies of entire documents.

Workaround Applied

We run ov-memory-chunker.py daily (cron at 04:00) to split files exceeding 2400 tokens. This is a workaround, not a fix — it produces semantic fragments that lose cross-file context.

Environment

  • OpenViking: latest from PyPI (0.4.5+)
  • VLM: GLM-4.7 via coding endpoint
  • Embedding: Qwen3-Embedding-4B Q6_K GGUF (local, ctx=2560)
  • ~1,365 memory files, 121 >5KB