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
674 stars 69 forks source link

Nboost versions #67

Open vchulski opened 4 years ago

vchulski commented 4 years ago

Version of nboost here at github doesn't match version from PyPI - therefore when installing with pip install nboost[pt] can't follow your guide. It fails with following trace:

curl "http://localhost:8000/travel/_search?pretty&q=passage:vegas&size=2"
E:Proxy:[pro:han:132]:
Traceback (most recent call last)
  File "/home/<username>/work/test_nboost/nboost/lib/python3.6/site-packages/flask/app.py", line 1950, in full_dispatch_request
    rv = self.dispatch_request()
  File "/home/<username>/work/test_nboost/nboost/lib/python3.6/site-packages/flask/app.py", line 1936, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/home/<username>/work/test_nboost/nboost/lib/python3.6/site-packages/nboost/proxy.py", line 126, in proxy_through
    db.insert(db_row)
  File "/home/<username>/work/test_nboost/nboost/lib/python3.6/site-packages/nboost/database.py", line 21, in insert
    cursor = self.get_cursor()
  File "/home/<username>/work/test_nboost/nboost/lib/python3.6/site-packages/nboost/database.py", line 17, in get_cursor
    conn = sqlite3.connect(str(self.db_file), isolation_level=None)
sqlite3.OperationalError: unable to open database file

which is indeed fixed here: https://github.com/koursaros-ai/nboost/commit/d77b3efcb7f56c66fd6b9d6c3c9e1c435f576647#diff-604e165591c8e5fb46cb14985099bd8d

but it's not updated on PyPI.

Moreover at your documentation page there are versions up to 0.2.2 which is far away from what this repo contains now.

kaykanloo commented 4 years ago

@koursaros-ai, If a new release on PyPI is planned, please make sure to update transformers package as well to resolves issues such as #62 and #58 . Thanks.

pertschuk commented 4 years ago

Just released to pypi