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.1b8.tar.gz
(35.0 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.1b8-py3-none-any.whl
(44.8 kB
view details)
File details
Details for the file routir-0.0.1b8.tar.gz.
File metadata
- Download URL: routir-0.0.1b8.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b61241969da1c403b489add67f832369c690168e9ee41aff09396fe955954481
|
|
| MD5 |
678c816a5a4ad27304eaed51b846ccee
|
|
| BLAKE2b-256 |
2d45d6a114cc6bb33c5fc3f3e03dc16211bfeee4db839dabe48efd1ec4e0e3e2
|
File details
Details for the file routir-0.0.1b8-py3-none-any.whl.
File metadata
- Download URL: routir-0.0.1b8-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1e841c6b803c0c33eb527ed57252d1eefa22f9db5a9c6b30cad0a07573a238e8
|
|
| MD5 |
1cefc3889ad8500df1f165f71cba73fc
|
|
| BLAKE2b-256 |
2c7c4a5e92fbd7252797aaf19da0958c0cf4e22ab20f30df21e9fad7090bb120
|