Skip to main content
You can run RAG PDF Highlighter in two ways: as a Python package installed directly into your environment, or as a self-contained Docker container. Both approaches expose the same HTTP API on port 8000 and require no external services or databases to operate.
Install the package from PyPI with pip. Python 3.10 or later is required.
pip install rag-pdf-highlighter
Dependencies installed automatically:
PackageMinimum Version
fastapi0.100
uvicorn0.20
httpx0.24
langchain-core0.1
pymupdf1.23
You do not need to install any of these separately — pip resolves and installs them as part of the rag-pdf-highlighter package.Once installed, start the API server with Uvicorn:
uvicorn rag_pdf_highlighter.main:app --host 0.0.0.0 --port 8000
To run on a different port, replace 8000 with your preferred port number.

Verify the Installation

After starting the service with either method, confirm it is running correctly by calling the health-check endpoint:
curl http://localhost:8000/
You should receive the following response:
{"status": "ok the app is running"}
If you see this response, RAG PDF Highlighter is ready to accept highlight requests. If the request fails, check that the port is not blocked by a firewall rule and that the process started without errors in your terminal output.