Installation Guide
This guide will help you set up Ollama PDF RAG on your system.
Prerequisites
Before installing Ollama PDF RAG, ensure you have:
- Python 3.9 or higher installed
- pip (Python package installer)
- git installed
- Ollama installed on your system
Installing Ollama
- Visit Ollama's website to download and install the application
- After installation, pull the required models:
Installing Ollama PDF RAG
-
Clone the repository:
-
Create and activate a virtual environment:
-
Install dependencies:
Verifying Installation
- Start Ollama in the background
- Run the application:
- Open your browser to
http://localhost:8501
Troubleshooting
Common Issues
ONNX DLL Error
If you see this error:
DLL load failed while importing onnx_copy2py_export: a dynamic link Library (DLL) initialization routine failed.
Try these solutions:
- Install Microsoft Visual C++ Redistributable:
- Download both x64 and x86 versions from Microsoft's website
-
Restart your computer
-
Or reinstall ONNX Runtime:
CPU-Only Systems
For systems without a GPU:
-
Install CPU version of ONNX Runtime:
-
Adjust chunk size if needed:
- Reduce to 500-1000 for memory issues
- Increase overlap for better context
Next Steps
- Follow the Quick Start Guide to begin using the application
- Read the User Guide for detailed usage instructions
- Check out the Contributing Guide if you want to help develop the project