Skip to content

umbrella(kb): one canonical structured document from every source — section-aware vectors, structure-built graph, source provenance and history #18851

Open
0 of 6 issues completed

Description

@mrveiss

Goal

Every source (file servers, web pages, databases, cloud drives, wikis, trackers, chat, audio) reaches the KB as one canonical structured document. Vector chunking and graph extraction consume that one model, and every chunk carries where it came from and which revision of the source it is. Files on file servers change, so the source history must survive re-ingest. (Owner, 2026-10-18.)

Canonical model, as ruled on #18826 (option a): ExtractedDocument extended with sections. Document → Section (heading path, level, page/time span) → Block (paragraph | list | table(header, rows) | code | quote). Markdown is a rendering of it, never the stored source of truth.

Where it stands today (code sweep of main, 2026-10-18)

Tasks

Related, not children: #17210 (document-to-document lineage DAG), #18079 (fact versioning not fed), #17538 (retention and liveness), #14485, #18142, #17588, #17209 (clause-aware chunking), #13246 (chunk size never measured).

Chat uploads (owner, 2026-10-18)

Chat file uploads go into a separate chats bucket, not the main KB (owner: "probably"). Tracked as #18889 under the intake umbrella #17527, with its granularity and lifetime questions open there.

Implementation order

  1. fix(web_fetch): store crawled pages as document + structure in AutoBot's canonical format — no foreign CSS/scripts/JSON-LD/chrome #18826 (model extension), bug(kb): connectors store every document as ONE vector — connector ingest bypasses chunking #18852, bug(kb): Nextcloud connector stores PDF/DOCX/ODT bytes as UTF-8 garbage text #18853, feat(kb): source revision provenance and history on every chunk — content-hash change detection, superseded revisions kept, as-of retrieval #18854 (independent)
  2. fix(document): extract_docx keeps only paragraph text, so heading level is lost and tables are appended away from the heading that introduced them #17985, feat(kb): connector and audio producers emit the canonical structured document — Notion, Confluence, Jira, gdrive, onedrive, upload, audio #18855, refactor(kb): one section-aware chunker for every ingest path — three structure-blind chunkers, short sections silently dropped #18856
  3. feat(kb): build the graph from document structure — section/chunk edges, table triples, per-section extraction; Graph-RAG entity link never written #18857

Activity

  1. added
    needs-structureMissing goal milestone, matching phase label or native parent (#19522)
    on Nov 3, 2026
  2. github-actions commented on Nov 3, 2026

    @github-actions
    Contributor

    needs-structure: this issue is missing:

    • a goal milestone M<n> - ...: none is set
    • a phase:M<n>.<k> label whose <n> matches the goal milestone: found none

    The label clears on the next issue event once all three are present (#19522).

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

    area: document-ingestWave 5 · cluster K — Document ingest & OCRbackendenhancementNew feature or requestneeds-structureMissing goal milestone, matching phase label or native parent (#19522)priority: high

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions