Skip to content

RichDocument construction should be better documented and more robust #273

Closed

Description

@nrfulton
  • The constructor silently fails when a string or path is passed instead of a DoclingDocument instance. We should assert that type check because users will mostly not be using mypy.
  • The limitations of of from_document_file are surprising.
  • The RichDocument docstring for the class and initializer are unhelpful for figuring out how to use the class.

Activity

  1. added
    enhancement
    area/component
    on May 20, 2026
  2. added
    p2
    on Jun 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

area/componentenhancementp2

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions