Skip to content

Bug: Equality of DocVec #1638

@JohannesMessner

Description

@JohannesMessner

Equality between instances of DocVec does not seem to work properly:

from docarray import BaseDoc, DocList


class CustomDocument(BaseDoc):
    image: str


da = DocList[CustomDocument](
    [CustomDocument(image='hi') for _ in range(10)]
).to_doc_vec()

da2 = DocList[CustomDocument](
    [CustomDocument(image='hi') for _ in range(10)]
).to_doc_vec()

print(da == da2)
False

Metadata

Metadata

Assignees

Labels

good-first-issueSuitable as your first contribution to DocArray!type/bugSomething isn't working

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions