Download Latest Version Patch v0.40.1 source code.tar.gz (8.9 MB)
Email in envelope

Get an email when there's a new version of DocArray

Home / v0.40.0
Name Modified Size InfoDownloads / Week
Parent folder
README.md 2023-12-22 2.1 kB
Release v0.40.0 source code.tar.gz 2023-12-22 8.8 MB
Release v0.40.0 source code.zip 2023-12-22 9.1 MB
Totals: 3 Items   18.0 MB 1

Release Note (0.40.0)

Release time: 2023-12-22 12:12:15

This release contains 1 new feature, 3 bug fixes and 2 documentation improvements.

🆕 Features

Add Epsilla connector (#1835)

We have integrated Epsilla into DocArray.

Here's a simple example of how to use it:

:::python
import numpy as np
from docarray import BaseDoc
from docarray.index import EpsillaDocumentIndex
from docarray.typing import NdArray
from pydantic import Field


class MyDoc(BaseDoc):
    text: str
    embedding: NdArray[10] = Field(is_embedding=True)

docs = [MyDoc(text=f'text {i}', embedding=np.random.rand(10)) for i in range(10)]
query = np.random.rand(10)
db = EpsillaDocumentIndex[MyDoc]()
db.index(docs)
results = db.find(query, limit=10)

In this example, we create a document class with both textual and numeric data. Then, we initialize an Epsilla-backed document index and use it to index our documents. Finally, we perform a search query.

🐞 Bug Fixes

Fixed type hints error in Python 3.12 (#1840)

DocArray type-hinting is now available for Python 3.12.

Fix issue serializing and deserializing complex schemas (#1836)

There was an issue when serializing and deserializing protobuf documents with nested documents in dictionaries and other complex structures.

Fix storage issue in TorchTensor class (#1833)

There was a bug when deep-copying a TorchTensor object its dtype was not float32. This has now been fixed.

📗 Documentation Improvements

🤟 Contributors

We would like to thank all contributors to this release:

  • Tony Yang (@tonyyanga )
  • Naymul Islam (@ai-naymul )
  • Ben Shaver (@bpshaver )
  • Joan Fontanals (@@JoanFM)
  • 954 (@954-Ivory )
Source: README.md, updated 2023-12-22