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
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
routir-0.0.1b9.tar.gz
(33.7 kB
view details)
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
routir-0.0.1b9-py3-none-any.whl
(43.6 kB
view details)
File details
Details for the file routir-0.0.1b9.tar.gz.
File metadata
- Download URL: routir-0.0.1b9.tar.gz
- Upload date:
- Size: 33.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.21
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
34babf60aff1048ffef47696ad20754478ec507a6faafe557053fe5c9e0007f4
|
|
| MD5 |
57396bf1381651591f6ce73ffdb36709
|
|
| BLAKE2b-256 |
9b287532501dea61dc165abc6ac9a71a8c08d3137040191459abe2d32d78ee6b
|
File details
Details for the file routir-0.0.1b9-py3-none-any.whl.
File metadata
- Download URL: routir-0.0.1b9-py3-none-any.whl
- Upload date:
- Size: 43.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.21
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4cd1ca8d2db9b95249bd80aae20e86ba15ebc400516fad10e9ad515745c96ed3
|
|
| MD5 |
0d6981b73a0aec220db695bb0c632a58
|
|
| BLAKE2b-256 |
e890227cb84fec0ad6b7b9c34082125f6735a21cb01afb7b7f8180afeb113b37
|