8000 V2: rich display of `Document` and `DocumentArray` · Issue #1025 · docarray/docarray · GitHub
[go: up one dir, main page]

Skip to content

V2: rich display of Document and DocumentArray #1025

@anna-charlotte

Description

@anna-charlotte

Document:

  • doc.display_schema() to display the Document's schema
  • doc.display() to display the Document instance
    • key, value (including type and shape)
    • maybe display shorter id: 2184b5 ... instead of 2184b53f977f566d72f72a6e706edb00
    • if eg. list of 200 elements is part of the Document, don't show all 200 elements, keep max size of such display manageable.

DocumentArray:

  • schema and length
  • redundant fields for v2:
    • Homogenous Documents
    • Common Attributes, instead show the schema
    • Multimodal dataclass

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0