You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 9, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Sep 9, 2026. It is now read-only.
Access documents by id will throw an error when setting the BaseDoc field type to "Dict" #1690
Traceback (most recent call last):
File "/mnt/d/github/vector-search/Examples/issue_access_by_id.py", line 27, in<module>
doc = db['0'] # get doc by id
File "/home/kunyuan/miniconda3/envs/py10/lib/python3.10/site-packages/docarray/index/abstract.py", line 365, in __getitem__
if issubclass(type_, AnyDocArray) and isinstance(doc_sequence[0], Dict):
File "/home/kunyuan/miniconda3/envs/py10/lib/python3.10/abc.py", line 123, in __subclasscheck__
return _abc_subclasscheck(cls, subclass)
TypeError: issubclass() arg 1 must be a class
After a preliminary investigation, it was found that everything works fine if the data type of the metadata field is not a Dict.
Activity