Skip to content

RichDocument construction should be better documented and more robust #273

@nrfulton

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.

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