Skip to content

'AnnLite' object has no attribute '_search_documents' #546

@oldguard69

Description

@oldguard69

I'm running the example tutorial "Example of .find with query vector and filter", link: (https://docarray.jina.ai/advanced/document-store/annlite/#example-of-find-with-query-vector-and-filter ), but I got an error as following:

[/usr/local/lib/python3.7/dist-packages/docarray/array/storage/annlite/find.py](https://localhost:8080/#) in _find(self, query, limit, only_id, filter, **kwargs)
     38             query = query.reshape(1, -1)
     39 
---> 40         _, match_docs = self._annlite._search_documents(
     41             query, limit=limit, filter=filter or {}, include_metadata=not only_id
     42         )

AttributeError: 'AnnLite' object has no attribute '_search_documents' 

I did a search on Google and the Issues tag but find nothing.
I tried installing DocArray with Annlite in both styles but the error still remains:
pip install docarray[annlite]
and
pip install docarray annlite

Is there anything I can do to fix this problem?

Runtime environment: Google Colab.
P.s: I've already run this example before, and there are no errors.
Thank you for your helps.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions