pyserini-indexer
Helper application for building index files that uses pyserini
Prerequisites
- python 3.9 (pytorch + faiss are only working under this version unfortunaly ☹️ )
- if you would want to create/search using learnable Sparse indexes (UNICOIL), you would need CUDA support (pyserini requires here CUDA for backend 😞)
Indexing methods:
- Sparse:
- BM25 - traditional not-learnable indexing technique
- UNICOIL - uses LuceneImpact underneath
- Dense:
- MINILM_V2 - smallest model available
- ANCE
- TCT_COLBERT - biggest (0.5 gb) and provides best results
Backend support
By default all indexing methods use CPU. If you would want to change this behaviour, set environment variable USE_GPU to some value.
Example usage
- Create BM25 sparse index directory
python pyserini-indexer BM25 index_input -o tests/indexes/bm25
- Create dense index directory
python pyserini-indexer MINILM_V2 index_input -o tests/indexes/minilm_v2
Metadata
Release files for pyserini-indexer 0.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pyserini_indexer-0.3.1.tar.gz | 4.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyserini_indexer-0.3.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.1 kB
Release files / pyserini_indexer-0.3.1.tar.gz
| Download URL | pyserini_indexer-0.3.1.tar.gz |
|---|---|
| Size | 4.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
34b9c1338739ed85319e1092e79827f8fb323cb03aaf26e388f5b0b93c008f45
|
|
BLAKE2b-256 checksum How to use checksums |
d8639e1b33849a8f2ce71b7d0231c8f1bcb1dcbb0a4d6848926dd58143c13341
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
pdm/2.6.1 CPython/3.10.10
|
Release files / pyserini_indexer-0.3.1-py3-none-any.whl
| Download URL | pyserini_indexer-0.3.1-py3-none-any.whl |
|---|---|
| Size | 7.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
27f822541daca0f06199210d4b340e6ee54115807c5e8a9e97fee89535549735
|
|
BLAKE2b-256 checksum How to use checksums |
1f44c3bd93827927538b2bb4b2631423eb375affe79f54b22469ce76e25fc68f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
pdm/2.6.1 CPython/3.10.10
|