🚀 Installation Guide
📋 Prerequisites
Before installing DocSense, ensure you have the following:
Python 3.10 or higher 🐍
pip (Python package installer) 📦
CUDA toolkit (optional, for GPU support) 🎮
💿 Installation Methods
🌐From PyPI
pip install docsense
💻 From Source
git clone https://github.com/yourusername/docsense.git
cd docsense
pip install -e .
🎯 GPU Support
To enable GPU acceleration:
Install CUDA toolkit (recommended version: 11.8) ⚡
Install PyTorch with CUDA support: 🔥
pip install torch --extra-index-url https://download.pytorch.org/whl/cu118
🔍 Verifying Installation
import docsense
print(docsense.__version__)
🚨 Common Issues
🔍 CUDA Not Found
If you encounter CUDA-related errors:
Verify CUDA installation
Check PyTorch CUDA compatibility
Set device to ‘cpu’ if GPU is not available
💾 Memory Issues
For large document collections:
Reduce batch size
Use CPU if GPU memory is insufficient
Consider splitting document collection