Skip to content

πŸ’« Release v0.40.0

Latest
Compare
Choose a tag to compare
@github-actions github-actions released this 22 Dec 12:12
0e183ff

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:

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: