Skip to content

πŸ’« Patch v0.37.1

Compare
Choose a tag to compare
@github-actions github-actions released this 22 Aug 14:10
0ad18a6

Release Note v0.37.1

This release contains 4 bug fixes and 1 Documentation improvement.

🐞 Bug Fixes

Relax the schema check in update mixin (#1755)

The previous schema check in the UpdateMixin was strict and does not allow updating in cases the schema of both documents are similar but do not have the same reference.
For instance, if the schemas are dynamically generated but have the same fields and field types, the check will still evaluate to False and it would not be possible to update the documents.
This release relaxes the check and allows checking whether the fields of the schemas are similar instead.

Fix non-class type fields (#1752)

We fixed an issue where non-class type fields used in schemas with QdrantDocumentIndex result in a TypeError.
The issue has been resolved by replacing the usage of issubclass with safe_issubclass in the QdrantDocumentIndex implementation.

Fix dynamic class creation with doubly nested schemas (#1747)

The following case used to result in a KeyError:

from docarray import BaseDoc
from docarray.utils.create_dynamic_doc_class import create_base_doc_from_schema

class Nested2(BaseDoc):
    value: str

class Nested1(BaseDoc):
    nested: Nested2

class RootDoc(BaseDoc):
    nested: Nested1

new_my_doc_cls = create_base_doc_from_schema(RootDoc.schema(), 'RootDoc')

We fixed this issue by changigng create_base_doc_from_schema such that global definitions of nested schemas are propagated during recursive calls.

Fix readme test (#1746)

πŸ“— Documentation Improvements

🀟 Contributors

We would like to thank all contributors to this release:

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy