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
When indexing a new document, extracted_data is always required no matter what I do (type it with Optional etc). This is especially caused by BaseDocIndex._get_values_by_column().
I have finally forked docarray, will send a PR for various minor fixes like this one:
You can see my changes here, the highlighted line returns None when the field object is optional and not given for a new document during indexing.
The text was updated successfully, but these errors were encountered:
oytuntez
changed the title
Typed fields are required when inserting a new document
Class-typed fields are required when inserting a new document
Feb 8, 2024
Initial Checks
Description
I have this dataclass:
When indexing a new document,
extracted_data
is always required no matter what I do (type it withOptional
etc). This is especially caused byBaseDocIndex._get_values_by_column()
.I have finally forked
docarray
, will send a PR for various minor fixes like this one:You can see my changes here, the highlighted line returns None when the field object is optional and not given for a new document during indexing.
Example Code
No response
Python, DocArray & OS Version
Affected Components
The text was updated successfully, but these errors were encountered: