← CookbookView source on GitHub ↗

RAG Example with LLama-Index + Nebius

Open In Colab

This example shows querying a PDF using llama index framework and running LLM on Nebius Token Factory

References and Acknowledgements

Features

Pre requisites

Run the code

rag_pdf_query.ipynb

Option-1 (Easy!): On Google Colab

No setup required.

Open In Colab

Option-2: Run locally

2A (Preferred): Using uv

Install dependencies

uv  sync

Run notebook

uv run --with jupyter jupyter lab rag_pdf_query.ipynb

2B: 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))"
Notebooks in this recipe: