Skip to content

docs: sync dewey min_theme_size documentation #488

Backlog

Description

@jflowers

What changed in dewey

unbound-force/dewey#313 adds a third field to the distill: config section (see website#481 for the first two): min_theme_size, the fewest learnings a new theme needs before distill opens a rolling PR for it.

  • Config:
    distill:
      similarity_threshold: 0.5
      tie_margin: 0.05
      min_theme_size: 1   # default; a whole number from 1 to 10000; new themes below it are deferred
  • Behavior: after grouping, a new theme (no existing compiled article) with fewer members than min_theme_size is deferred. It opens no PR, and its learnings stay uncited, so a later run's scope includes them again. There they can join an article or reach the minimum together with newer learnings. Themes that add to an existing article are never deferred. The default of 1 defers nothing, which is the behavior before this change.
  • Why: on a vault's first distill, most new themes are singletons, so every learning becomes its own PR. Setting min_theme_size: 3 keeps the first run reviewable.
  • Precedence: the same as the other distill: fields. Each field resolves on its own: the per-vault file, then the global file, then the default. A value that is not a whole number from 1 to 10000 warns and falls back to the default.
  • group_learners MCP tool:
    • The grouping field gains min_theme_size and min_theme_size_source.
    • The deprecated in_scope result gains a deferred list.
    • The run_id summary gains deferred_themes, deferred_members and min_theme_size, where grouped + deferred_members == scope_size.
  • rolling_pr MCP tool:
    • The result gains deferred_themes.
    • The run artifact lists deferred_themes and counts their learnings in scope_size.
    • When every theme is deferred, it records a no-op artifact ("every theme deferred below min_theme_size") instead of failing, and records nothing on a dry run.
  • dewey doctor: the distill grouping line shows min_theme_size=N (source).

Pages to update

  • content/docs/tutorials/dewey-provider-configuration.md: add min_theme_size to the distill: calibration section from website#481. Note that, unlike the threshold and margin, it does not depend on the embedding model.
  • content/docs/getting-started/knowledge.md: mention min_theme_size wherever the distill: section is described.
  • content/docs/projects/dewey.md: under Knowledge Lifecycle, note that small new themes can be deferred until they grow.
  • Any page that shows group_learners, rolling_pr or dewey doctor output should show the new fields.

Hold until dewey#313 merges.

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

    docs

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions