"""Add the project src/ directory to sys.path so notebooks in this folder can import all project modules (ingest, embedder, evaluation.*, etc.) directly. When the package is installed (uv sync), src/ is already on sys.path via the editable install — this file is a no-op in that case and is a safety net for environments where only the raw source tree is present. Usage — first cell of every notebook: import path_setup # noqa: F401 """ import sys from pathlib import Path _src = Path(__file__).parent.parent / "src" if str(_src) not in sys.path: sys.path.insert(0, str(_src))