Skip to content

Graph TextDocument.external_metadata stays empty after add+cognify #4903

Description

@denzilsmarty

Probe 2026-09-03: POST /api/v1/add with external_metadata JSON array yields Data.externalMetadata={} and graph TextDocument.properties.external_metadata="{}" after cognify (fresh add). data_ingestion_info[].data_id correctly equals data listing id and TextDocument.id. Related #3386 is wipe-on-re-ingest; this is empty on first add. Is persistence expected? We work around via cognee_data_id map.

Activity

  1. csy20 commented on Sep 8, 2026

    @csy20
    Contributor

    I'll take this.

    The add API already pairs external_metadata onto DataItems, but after a fresh add+cognify both Data.external_metadata and the graph TextDocument.properties.external_metadata come back as {}. #3386 was wipe-on-re-ingest; this is the first-add path.

    I'll trace ingest → classify_documents → graph write, persist the caller-supplied dict on first add, and add a regression test for that path.

  2. ArmagedonFlamer commented on Sep 21, 2026

    @ArmagedonFlamer
    Contributor

    Thanks for flagging this - it's been seen and noted. We'll keep you updated.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions