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.

routir config.json
# or using uvx
uvx routir config

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
uvx --with python-terrier 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

uvx --with pyserini 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.1b10.tar.gz (33.7 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.1b10-py3-none-any.whl (43.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: routir-0.0.1b10.tar.gz
  • Upload date:
  • Size: 33.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for routir-0.0.1b10.tar.gz
Algorithm Hash digest
SHA256 5e27300aa817d9ab3589fc8758fef720db08ffb80e8c2fc77ec98e8031d30586
MD5 9ec602b4aa8315eed84f6ddff546f0e4
BLAKE2b-256 a934963269257f095ee1ee47395653cef940e8913b6d0e9e3285089dab7d2eea

See more details on using hashes here.

Provenance

The following attestation bundles were made for routir-0.0.1b10.tar.gz:

Publisher: publish-release.yml on hltcoe/routir

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: routir-0.0.1b10-py3-none-any.whl
  • Upload date:
  • Size: 43.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for routir-0.0.1b10-py3-none-any.whl
Algorithm Hash digest
SHA256 858e09737511538d6bd3068a60dce55cccbf75c9d73df3c393691086e3ef4311
MD5 d4eaf5118b46e8aab4fb559451a1afa2
BLAKE2b-256 b26b49363bd6cbd5a97e098f11207de6d64684f247f99fd63d7aacc975287800

See more details on using hashes here.

Provenance

The following attestation bundles were made for routir-0.0.1b10-py3-none-any.whl:

Publisher: publish-release.yml on hltcoe/routir

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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