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

Integrate nboost with SOLR #71

Closed JnaneshPrabhu closed 4 years ago

JnaneshPrabhu commented 4 years ago

Hi, Just came across your medium article. This sounds great. While this may not be issue just wondering if this can be used with SOLR?

eltu commented 4 years ago

Hello @JnaneshPrabhu, I tried to use Nboost with Solr and works very well. Because Nboost use json for rerank the documents, its not necessary integration with solr lib. You can try use this command for up the proxy:

nboost                                  \ 
    --uhost localhost                   \
    --uport 8983                        \
    --search_route "/solr/travel/select"   \
    --query_path url.query.q        \
    --topk_path url.query.rows          \
    --default_topk 10                   \
    --choices_path body.response.docs       \
    --cvalues_path passage_t

I created a pull request to indexing document more easy: https://github.com/koursaros-ai/nboost/pull/70

I hope that @koursaros-ai accept the pull request. =)

pertschuk commented 4 years ago

Merged! Thank you @eltu