Initial Checks
Description
It is not easy to index and search building a basic NN search application on TextDoc or ImageDoc
Example Code
from docarray.documents import TextDoc
from docarray.index.backends.in_memory import InMemoryExactNNIndex
from docarray.index.backends.hnswlib import HnswDocumentIndex
import numpy as np
index = HnswDocumentIndex[TextDoc]() # one or the other
index = InMemoryExactNNIndex[TextDoc]() # one or the other
docs = [TextDoc(text='hey', embedding=np.random.rand(128)) for i in range(200)]
index.index(docs)
index.find_batched(docs[0:10], search_field='embedding')
Python, Pydantic & OS Version
Affected Components
Initial Checks
Description
It is not easy to index and search building a basic NN search application on TextDoc or ImageDoc
Example Code
Python, Pydantic & OS Version
Affected Components