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.
The biggest feature of this release is full support for Pydantic v2! We are continuing to support Pydantic v1 at the same time.
If you use Pydantic v2, you will need to adapt your DocArray code to the new Pydantic API. Check out their migration guide here.
Pydantic v2 has its core written in Rust and provides significant performance improvements to DocArray: JSON serialization is 240% faster and validation of BaseDoc and DocList with non-native types like TorchTensor is 20% faster.
A BaseDoc by default includes an id field. This can be problematic if you want to build an API that requires a model without this ID field. Therefore, we now provide a BaseDocWithoutId which is, as its name suggests, is BaseDoc without the ID field.
Please use this Document with caution, BaseDoc is still the base class to use unless you specifically need to remove the ID.
鈿狅笍BaseDocWithoutId is not compatible with DocIndex or any feature requiring a vector database. This is because DocIndex needs the id field to store and retrieve documents.
"severals Documentation improvements" -> "seven documentation improvements"
"We are continuing our support for Pydantic v1" -> "We are continuing to support Pydantic v1"
"provides sizable performance improvements for DocArray" -> "provides significant performance improvements to DocArray"
"not compatible with DocIndex and any feature requiring a vector database" -> "not compatible with DocIndex or any feature requiring a vector database"
"Jina AI Cloud will be discontinued" -> "Jina AI Cloud is being discontinued"
"DocList can be typed using a BaseDoc using the following syntax" -> "DocList can be typed from BaseDoc using the following syntax"
"In this release we fix an bug where it was possible to precise the type of a DocList multiple times" -> "In this release, we have fixed a bug that allowed users to specify the type of a DocList multiple times"
"We fixed error as well where passing a wrong type to the square bracket (example DocList[doc()]) would silently fail" -> "We also fixed a bug that caused a silent failure when users passed DocList the wrong type, for example DocList[doc()]."
"We fixed a small bug where the port of the Milvus client was not set correctly" -> "We fixed a small bug that incorrectly set the port of the Milvus client."
The biggest feature of this release is full support for Pydantic v2! We are continuing to support Pydantic v1 at the same time.
If you use Pydantic v2, you will need to adapt your DocArray code to the new Pydantic API. Check out their migration guide here.
Pydantic v2 has its core written in Rust and provides significant performance improvements to DocArray: JSON serialization is 240% faster and validation of BaseDoc and DocList with non-native types like TorchTensor is 20% faster.
A BaseDoc by default includes an id field. This can be problematic if you want to build an API that requires a model without this ID field. Therefore, we now provide a BaseDocWithoutId which is, as its name suggests, is BaseDoc without the ID field.
Please use this Document with caution, BaseDoc is still the base class to use unless you specifically need to remove the ID.
鈿狅笍BaseDocWithoutId is not compatible with DocIndex or any feature requiring a vector database. This is because DocIndex needs the id field to store and retrieve documents.
Activity
scott-martens commentedon Oct 2, 2023
Duplicating my comment in Slack:
"severals Documentation improvements" -> "seven documentation improvements"
"We are continuing our support for Pydantic v1" -> "We are continuing to support Pydantic v1"
"provides sizable performance improvements for DocArray" -> "provides significant performance improvements to DocArray"
"not compatible with DocIndex and any feature requiring a vector database" -> "not compatible with DocIndex or any feature requiring a vector database"
"Jina AI Cloud will be discontinued" -> "Jina AI Cloud is being discontinued"
"DocList can be typed using a BaseDoc using the following syntax" -> "DocList can be typed from BaseDoc using the following syntax"
"In this release we fix an bug where it was possible to precise the type of a DocList multiple times" -> "In this release, we have fixed a bug that allowed users to specify the type of a DocList multiple times"
"We fixed error as well where passing a wrong type to the square bracket (example DocList[doc()]) would silently fail" -> "We also fixed a bug that caused a silent failure when users passed DocList the wrong type, for example DocList[doc()]."
"We fixed a small bug where the port of the Milvus client was not set correctly" -> "We fixed a small bug that incorrectly set the port of the Milvus client."
scott-martens commentedon Oct 2, 2023
Release Note
(0.39.1)This release contains 4 new features, 8 bug fixes, and 7 documentation improvements.
馃啎 Features
Support for Pydantic v2 馃殌 (#1652)
The biggest feature of this release is full support for Pydantic v2! We are continuing to support Pydantic v1 at the same time.
If you use Pydantic v2, you will need to adapt your DocArray code to the new Pydantic API. Check out their migration guide here.
Pydantic v2 has its core written in Rust and provides significant performance improvements to DocArray: JSON serialization is 240% faster and validation of BaseDoc and DocList with non-native types like
TorchTensoris 20% faster.Add BaseDocWithoutId (#1803)
A
BaseDocby default includes anidfield. This can be problematic if you want to build an API that requires a model without this ID field. Therefore, we now provide aBaseDocWithoutIdwhich is, as its name suggests, is BaseDoc without the ID field.Please use this Document with caution, BaseDoc is still the base class to use unless you specifically need to remove the ID.
BaseDocWithoutIdis not compatible withDocIndexor any feature requiring a vector database. This is because DocIndex needs the id field to store and retrieve documents.馃挘 Breaking change
Remove Jina AI cloud push/pull (#1791)
Jina AI Cloud is being discontinued. Therefore, we are removing the
push/pullfeature related to Jina AI cloud.馃悶 Bug Fixes
Fix DocList subscription error
DocListcan be typed from BaseDoc using the following syntaxDocList[MyDoc]().In this release, we have fixed a bug that allowed users to specify the type of a
DocListmultiple timesDoing
DocList[MyDoc1][MyDoc2]won't work anymore (#1800)We also fixed a bug that caused a silent failure when users passed
DocListthe wrong type, for exampleDocList[doc()]. (#1794)Milvus connection parameter missing (#1802)
We fixed a small bug that incorrectly set the port of the Milvus client.
馃摋 Documentation Improvements
馃 Contributors
We would like to thank all contributors to this release: