Skip to main content
This guide provides detailed installation instructions for setting up the Obstetrics RAG Benchmark on your local machine.

Prerequisites

Before installing, ensure your system meets these requirements:

System Requirements

  • Operating System: Linux, macOS, or Windows with WSL2
  • Python: Version 3.8 or higher
  • Git: For repository cloning
  • Internet Connection: Required for API calls and package installation

API Requirements

You’ll need an OpenAI API key to run evaluations. The benchmark uses:
  • text-embedding-3-small for creating document embeddings
  • GPT-4o (default) or other OpenAI models for answer generation
Get your API key from OpenAI Platform.

Installation steps

Troubleshooting

Common issues and solutions

Problem: Dependencies not installed or wrong Python environment.Solution:
Problem: Invalid or missing OpenAI API key.Solution:
  1. Verify your API key is correct in .env:
  2. Ensure no extra spaces or quotes around the key
  3. Verify your OpenAI account has credits: platform.openai.com/account/billing
Problem: Vector database not initialized or corrupted.Solution:
  1. Delete existing database:
  2. Recreate embeddings:
Problem: Missing source data files.Solution: Ensure you cloned the complete repository:
If missing, re-clone the repository or check that Git LFS files downloaded correctly.
Problem: Using Python version below 3.8.Solution:
  1. Install Python 3.8+ from python.org
  2. Create virtual environment with correct version:
Problem: Exceeding OpenAI API rate limits.Solution:
  • Tier 1 accounts have lower rate limits
  • Wait a few minutes between evaluation runs
  • Consider upgrading your OpenAI account tier
  • For comprehensive evaluations, use --debug flag to see detailed progress

Upgrading

To upgrade to the latest version:

Uninstallation

To completely remove the project:

Next steps

Quickstart Guide

Run your first evaluation in 5 minutes

RAG Architectures

Learn about the different RAG strategies

Evaluation Guide

Understanding RAGAS metrics and results

API Reference

Explore the Python API for custom workflows

Getting help

If you encounter issues not covered in this guide:
  • Check the GitHub Issues
  • Review the README
  • Open a new issue with:
    • Your Python version (python --version)
    • Full error message
    • Steps to reproduce
    • Your operating system

System requirements summary

Estimated costs: Running a single RAG evaluation with 10 questions typically costs $0.05-0.15 USD depending on the model used.