Skip to content

feat: document engine — documents + document_chunks tables (wiki/knowledge base) #406

Closed

Description

@ajianaz

Vision

Full markdown content → SQLite (unlimited), chunked summaries → embedding (256 tokens). Search by: direct ID, semantic (chunk match → resolve to document), FTS5, graph traversal.

Schema (v9 migration)

  • documents: id, slug, title, content (TEXT unlimited), namespace, tags, metadata, version, content_type, created_at, updated_at
  • document_chunks: id, document_id (FK), chunk_index, heading, content (slice), embedding BLOB, char_start, char_end, tags (inherited)

Search paths

  1. Direct ID/slug → SQLite PK → full content
  2. Semantic → embed query → ANN chunk search → resolve to document section
  3. FTS5 → full text across all content
  4. Graph → BFS from entity → connected documents
  5. Room → group related docs → structured view

Depends on

CLI

uteke doc create/edit/list/export/get --slug title.md
uteke doc search "query"
uteke doc chunk-status --slug (show chunks, coverage)

Activity

  1. added
    enhancement
    scope:core
    type:feature
    priority:high
    epic:memory-engine
    on Jun 21, 2026
  2. added this to the v0.3.0 — Graph RAG milestone on Jun 21, 2026
  3. added 3 commits that reference this issue on Jun 21, 2026
  4. ajianaz commented on Jun 21, 2026

    @ajianaz
    CollaboratorAuthor

    Implemented in #426. Document engine with schema v11, document_chunks, auto-chunking via markdown chunker.

  5. added 2 commits that reference this issue on Jun 21, 2026
  6. added 5 commits that reference this issue on Aug 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementepic:memory-enginepriority:highscope:coretype:feature

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions