Giter Site home page Giter Site logo

reranker-transformers's Introduction

Cross ranker transformers module

The inference container for Weaviate's reranker-transformers module

๐Ÿ“š Documentation

Documentation for this module can be found here.

๐Ÿ“ฆ Requirements

  1. Create a new virtual environment
python3 -m venv .venv
source .venv/bin/activate
  1. Install all module and test dependencies
pip3 install -r requirements.txt
pip3 install -r requirements-test.txt
  1. Download the model locally
MODEL_NAME=cross-encoder/ms-marco-MiniLM-L-6-v2 ./download.py
  1. Run the inference server
uvicorn app:app --host 0.0.0.0 --port 8000

๐Ÿ’ก Testing

For sanity checks that to check that all works properly you can run our smoke tests against your server

python3 smoke_tests.py

๐Ÿณ Docker support

In order to build locally a docker image one can run this command in project's root folder

LOCAL_REPO="local-reranker" MODEL_NAME="cross-encoder/ms-marco-MiniLM-L-6-v2" ./cicd/build.sh

In order to test the built docker image run this command in project's root folder

LOCAL_REPO="local-reranker" ./cicd/test.sh

๐Ÿ”— Useful Resources

reranker-transformers's People

Contributors

antas-marcin avatar cshorten avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.