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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5e27300aa817d9ab3589fc8758fef720db08ffb80e8c2fc77ec98e8031d30586
|
|
| MD5 |
9ec602b4aa8315eed84f6ddff546f0e4
|
|
| BLAKE2b-256 |
a934963269257f095ee1ee47395653cef940e8913b6d0e9e3285089dab7d2eea
|
Provenance
The following attestation bundles were made for routir-0.0.1b10.tar.gz:
Publisher:
publish-release.yml on hltcoe/routir
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
routir-0.0.1b10.tar.gz -
Subject digest:
5e27300aa817d9ab3589fc8758fef720db08ffb80e8c2fc77ec98e8031d30586 - Sigstore transparency entry: 625961055
- Sigstore integration time:
-
Permalink:
hltcoe/routir@def342d10263cfdca1a1cb5eaec77fdeb961978c -
Branch / Tag:
refs/tags/0.0.1b10 - Owner: https://github.com/hltcoe
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-release.yml@def342d10263cfdca1a1cb5eaec77fdeb961978c -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
858e09737511538d6bd3068a60dce55cccbf75c9d73df3c393691086e3ef4311
|
|
| MD5 |
d4eaf5118b46e8aab4fb559451a1afa2
|
|
| BLAKE2b-256 |
b26b49363bd6cbd5a97e098f11207de6d64684f247f99fd63d7aacc975287800
|
Provenance
The following attestation bundles were made for routir-0.0.1b10-py3-none-any.whl:
Publisher:
publish-release.yml on hltcoe/routir
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
routir-0.0.1b10-py3-none-any.whl -
Subject digest:
858e09737511538d6bd3068a60dce55cccbf75c9d73df3c393691086e3ef4311 - Sigstore transparency entry: 625961118
- Sigstore integration time:
-
Permalink:
hltcoe/routir@def342d10263cfdca1a1cb5eaec77fdeb961978c -
Branch / Tag:
refs/tags/0.0.1b10 - Owner: https://github.com/hltcoe
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-release.yml@def342d10263cfdca1a1cb5eaec77fdeb961978c -
Trigger Event:
push
-
Statement type: