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.
Class-typed fields are required when inserting a new document #1851
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.
changed the title [-]Typed fields are required when inserting a new document[/-][+]Class-typed fields are required when inserting a new document[/+]on Feb 8, 2024
Activity
[-]Typed fields are required when inserting a new document[/-][+]Class-typed fields are required when inserting a new document[/+]JoanFM commentedon Feb 8, 2024
Hey @oytuntez ,
Can you please provide a code snippet of the code that showcases the problem, this turns out to be extremely helpful
JoanFM commentedon Feb 8, 2024
Thanks a lot, we are looking forward the PRs from you.
ai-naymul commentedon May 4, 2024
Hi @oytuntez,
Do you have a reproducible code to find out the main problem, that would be great to solve it asap ;)
Looking forward