Installation¶
Requirements¶
- Python 3.8 or higher
- pip package manager
Basic Installation¶
Install Vajra BM25 with zero dependencies:
Optional Dependencies¶
Vajra offers several optional feature sets:
Optimized Performance¶
For production workloads with NumPy and SciPy optimizations:
This enables:
- Sparse matrix operations (6-8x memory reduction)
- Vectorized scoring (10-50x speedup)
- Numba JIT compilation (if installed separately)
PDF Support¶
To index and search PDF documents:
Index Persistence¶
To save and load indexes:
Interactive CLI¶
For the rich command-line interface:
Everything¶
Install all optional dependencies:
Development Installation¶
To contribute to Vajra:
Verifying Installation¶
Optional: Numba¶
For additional JIT compilation speedup, install Numba separately:
Vajra will automatically detect and use Numba if available.