Detailed installation instructions for the Research Rubrics codebase.
- Python 3.8 or higher
- 4 GB RAM
- 2 GB disk space (for code and dependencies)
- Internet connection (for API calls)
- Python 3.10+
- 8 GB RAM (for processing large batches)
- 10 GB disk space (for datasets and results)
- Stable internet connection
# Clone the repository
git clone <repository-url>
cd researchrubrics
# Install using pip
pip install -r requirements.txt
# Verify installation
python -c "import pandas, litellm, tqdm; print('Installation successful!')"# Create conda environment
conda create -n researchrubrics python=3.10
conda activate researchrubrics
# Install dependencies
pip install -r requirements.txt# Create virtual environment
python -m venv venv
# Activate virtual environment
# On Unix/macOS:
source venv/bin/activate
# On Windows:
.\venv\Scripts\activate
# Install dependencies
pip install -r requirements.txtFor contributors who want to modify the code:
# Clone repository
git clone <repository-url>
cd researchrubrics
# Install in editable mode with dev dependencies
pip install -e .
pip install pytest pytest-asyncioData manipulation and analysis
pip install pandasLLM API client for accessing Gemini 2.5 Pro
pip install litellmProgress bars for batch processing
pip install tqdmFor running tests
pip install pytest pytest-asyncioCreate a .env file in the project root:
# From project root
echo "LITELLM_API_KEY=your_api_key_here" > .envOr manually create .env:
nano .env
# Add: LITELLM_API_KEY=your_api_key_hereimport os
from pathlib import Path
# Load .env file
env_file = Path('.env')
if env_file.exists():
with open(env_file) as f:
for line in f:
if line.startswith('LITELLM_API_KEY='):
print('API key configured ✓')
else:
print('No .env file found - create one with LITELLM_API_KEY')The installation should create these directories automatically if they don't exist, but you can create them manually if needed:
mkdir -p data/researchrubrics
mkdir -p agent_responses
mkdir -p results
mkdir -p cache# Test evaluate module (from project root)
cd src/evaluate_rubrics
python -c "from evaluate_single_report import RubricEvaluator; print('Evaluate module OK')"
# Test metrics module
cd ../calculate_metrics
python -c "from calculate_compliance_score import calculate_compliance_score; print('Metrics module OK')"
cd ../.. # Back to project rootimport os
from pathlib import Path
# Try to load API key
env_file = Path('.env')
if not env_file.exists():
print('ERROR: .env file not found')
exit(1)
with open(env_file) as f:
for line in f:
if 'LITELLM_API_KEY=' in line:
key = line.split('=')[1].strip()
if key and key != 'your_api_key_here':
print('✓ API key configured')
else:
print('ERROR: API key not set in .env file')
break
else:
print('ERROR: LITELLM_API_KEY not found in .env file')# Install Xcode Command Line Tools (if not already installed)
xcode-select --install
# Install Homebrew (if not already installed)
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# Install Python via Homebrew (optional)
brew install python@3.10
# Follow standard installation steps
pip3 install -r requirements.txt# Update package list
sudo apt-get update
# Install Python and pip
sudo apt-get install python3.10 python3-pip python3-venv
# Install system dependencies (if needed)
sudo apt-get install build-essential
# Follow standard installation steps
pip3 install -r requirements.txt# Install Python from python.org or Microsoft Store
# Ensure pip is included in the installation
# Open PowerShell or Command Prompt
# Follow standard installation steps
pip install -r requirements.txt- Use backslashes (
\) in paths or use raw strings in Python - Ensure Python is added to PATH during installation
Solution: Install the missing package individually
pip install package-nameSolution: Use --user flag or virtual environment
pip install --user -r requirements.txtSolution: Use a fresh virtual environment
python -m venv clean_env
source clean_env/bin/activate # Unix
.\clean_env\Scripts\activate # Windows
pip install -r requirements.txtSolution: Upgrade pip
pip install --upgrade pipSolution: Update certificates or use trusted host
pip install --trusted-host pypi.org --trusted-host pypi.python.org -r requirements.txtSolution: Ensure .env is in the project root
# From project root
ls -la .env
# If missing, create it
echo "LITELLM_API_KEY=your_api_key_here" > .envNote: The evaluation scripts look for .env in the project root (researchrubrics/.env), not in the script directory.
Solution: Ensure litellm is installed with correct version
pip install --upgrade litellmTo upgrade to the latest version:
# Pull latest changes
git pull origin main
# Update dependencies
pip install --upgrade -r requirements.txt
# Clear cache if needed
rm -rf cache/*To remove the installation:
# If using pip directly
pip uninstall -r requirements.txt
# If using virtual environment, just delete it
rm -rf venv/
# or
rm -rf conda_env/After successful installation:
- Review QUICKSTART.md for usage examples
- Read README.md for comprehensive documentation
- Check DATA_FORMAT.md for data specifications
- Follow SETUP_GUIDE.md for complete setup
If you encounter installation issues:
- Check the Troubleshooting section above
- Review existing GitHub issues
- Open a new issue with:
- Your OS and Python version
- Complete error message
- Steps to reproduce
- Output of
pip list
Current version: 1.0.0
To check installed package versions:
pip list | grep -E "pandas|litellm|tqdm"This software is distributed under the MIT License. See LICENSE for details.