This example shows querying a PDF using llama index framework and running LLM on Nebius AI Studio

Run the code

rag_pdf_query.ipynb

First Option

Open with Google Colab (no setup required)

Second Option

Run locally using uv (prefered):
uv  sync
Run notebook:
uv run --with jupyter jupyter lab rag_pdf_query.ipynb
Or run locally using pip:
pip install -r requirements.txt
jupyter lab  rag_pdf_query.ipynb

Dev Notes

How the uv project was created:
uv init .
uv add -r requirements.txt
uv add --dev ipykernel   # for jupyter kernel
uv sync

# create a kernel to use uv env within vscode
source  .venv/bin/activate
uv run python -m ipykernel install --user --name=$(basename $(pwd)) --display-name "$(basename $(pwd))"