Skip to content

update not working when NdArray as attribute #1627

Description

@JoanFM

Initial Checks

  • I have read and followed the docs and still think this is a bug

Description

update method fails to update a Document with NdArray

Example Code

from docarray import DocList, BaseDoc

from docarray.typing import NdArray

import random
import string

import numpy as np

class MyDoc(BaseDoc):
    text: str
    embedding: NdArray[128]

MyDoc(id='0', text='', embedding=np.random.rand(128)).update(MyDoc(id='0', text='', embedding=np.random.rand(128)))

Python, Pydantic & OS Version

0.33.0

Affected Components

Metadata

Metadata

Assignees

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