koursaros-ai / nboost

NBoost is a scalable, search-api-boosting platform for deploying transformer models to improve the relevance of search results on different platforms (i.e. Elasticsearch)
Apache License 2.0
675 stars 69 forks source link

Dependencie missing: numpy #13

Closed marcoaleixo closed 4 years ago

marcoaleixo commented 4 years ago

I'm trying to run a container using docker-compose configured like:

 nboost_mrturing:
    container_name: nboost_mrturing
    image: koursaros/nboost:latest-alpine
    environment:
      - uhost=elasticsearch-master
      - uport=9200
    ports:
      - 9090:8000

But the container returns an error:

nboost_mrturing         |   File "/usr/local/lib/python3.7/site-packages/nboost/model/bert_model/__init__.py", line 3, in <module>
nboost_mrturing         |     import numpy as np
nboost_mrturing         | ModuleNotFoundError: No module named 'numpy'

Am I missing something?

pertschuk commented 4 years ago

Hi - Use the koursaros/nboost:latest-tf image, which includes numpy+tensorflow deps.

The default alpine image doesn't have any of the heavy ML dependencies, we just use it for testing, updating the readme to make that clear. Thanks for the feedback!