Skip to main content

A simple and fast search service for hosting state-of-the-art retrieval models.

Project description

ROUTIR: A Simple and Fast Search Service for Hosting State-of-the-Art Retrieval Models.

python -m routir.serve config.json

Faiss Indexing

python -m routir.utils.faiss_indexing \
./encoded_vectors/ ./faiss_index.PQ2048x4fs.IP/ \
--index_string "PQ2048x4fs" --use_gpu --sampling_rate 0.25

Extension Examples

PyTerrier

python ./examples/pyterrier_extension.py # to build the index
routir ./examples/pyterrier_example_config.json --port 8000 # serve it at port 8000
import requests
requests.post("http://localhost:8000/search", json={"service": "pyterrier-cord", "query": "my test query", "limit": 15}).json()

Pyserini

python ./examples/pyserini_extension.py # to build the index
routir ./examples/pyserini_example_config.json --port 8000 # serve it at port 8000
import requests
requests.post("http://localhost:8000/search", json={"service": "pyserinibm25-neuclir-zho-dt", "query": "my test query", "limit": 15}).json()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

routir-0.0.1b7.tar.gz (35.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

routir-0.0.1b7-py3-none-any.whl (44.8 kB view details)

Uploaded Python 3

File details

Details for the file routir-0.0.1b7.tar.gz.

File metadata

  • Download URL: routir-0.0.1b7.tar.gz
  • Upload date:
  • Size: 35.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.21

File hashes

Hashes for routir-0.0.1b7.tar.gz
Algorithm Hash digest
SHA256 cdf8ff40d2229fe5334968891750c36e995428096096b06e0568d46b829b1d4d
MD5 caf2009f03373898c5fc8a559825f090
BLAKE2b-256 a5a4c2db1bb203803ff1a357c9e7526a973da5d1f99ff60f03da41c6947e5d52

See more details on using hashes here.

File details

Details for the file routir-0.0.1b7-py3-none-any.whl.

File metadata

  • Download URL: routir-0.0.1b7-py3-none-any.whl
  • Upload date:
  • Size: 44.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.21

File hashes

Hashes for routir-0.0.1b7-py3-none-any.whl
Algorithm Hash digest
SHA256 f85a371f492bc162dcce0e1d6d161a0ade12ba0cc4499c393fe9935ffbe912f5
MD5 4c5dc48bc5b50513c4571f47a53a8f06
BLAKE2b-256 21d7e0158084f725c9aa4747d519632de6f44f19e1a732090261c1968d0bf955

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page