Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release Note #1842

Closed
JoanFM opened this issue Dec 22, 2023 · 0 comments
Closed

Release Note #1842

JoanFM opened this issue Dec 22, 2023 · 0 comments

Comments

@JoanFM
Copy link
Member

JoanFM commented Dec 22, 2023

Release Note

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:

@JoanFM JoanFM closed this as completed Dec 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant