GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Class-typed fields are required when inserting a new document · Issue #1851 · docarray/docarray
This repository was archived by the owner on Sep 9, 2026. It is now read-only.
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 #1851Copy link Copy link Open DescriptionInitial Checks
DescriptionI have this dataclass: class QuoteFile(BaseDoc): quote_file_id: int = None extracted_data: Optional[ExtractedDocumentData] = None When indexing a new document, I have finally forked
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 CodeNo response Python, DocArray & OS VersionAffected ComponentsActivity
MetadataMetadataAssigneesLabelsNo labels TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |