jina-ai / jina-hub

An open-registry for hosting Jina executors via container images
Apache License 2.0
104 stars 49 forks source link

faiss indexer test fails #329

Closed YueLiu1415926 closed 4 years ago

YueLiu1415926 commented 4 years ago

I changed the base image to jinaai/jina:devel and run docker build -t jinaai/hub.executors.indexers.vector.faiss ., the test fails showing:

______________________________ test_faiss_indexer ______________________________

>   ???

/Users/edz/Desktop/work/github/jina-hub/indexers/vector/FaissIndexer/tests/test_faissindexer.py:43:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <workspace.FaissIndexer object at 0x7fd6ae0b3410>
keys = array([[0.06676801, 0.23812774, 0.21123615, 0.32979733, 0.922037  ,
        0.96156627, 0.30798936, 0.4279964 , 0.1503...454, 0.95129275, 0.2752524 ,
        0.46963963, 0.66322994, 0.04707078, 0.9035691 , 0.59420425]],
      dtype=float32)
top_k = 4, args = (), kwargs = {}

    def query(self, keys: 'np.ndarray', top_k: int, *args, **kwargs) -> Tuple['np.ndarray', 'np.ndarray']:
>       dist, ids = self.query_handler.search(keys, top_k)
E       AttributeError: 'NoneType' object has no attribute 'search'

__init__.py:78: AttributeError

┆Issue is synchronized with this Jira Task by Unito

YueLiu1415926 commented 4 years ago

the test seems to pass in #199