1
- If
.venvexists at the repo root, activate it with:source .venv/bin/activate
- Sanity check the active interpreter with
which pythonandpython -V. - If
.venvis missing and you need one, create it withpython -m venv .venv(oruv venv .venvif preferred), then activate it.
- Install project deps (including dev/test tooling):
uv pip install -e ".[dev]"
- Add a new dependency:
uv pip install <package>
- If
uv pip install -e ".[abbrev]"fails on this environment (nmslib build), install abbrev deps with:uv pip install spacyuv pip install scispacy --no-deps
- If you update dependencies, keep
pyproject.tomlin sync with what you installed.
- With the venv active and dev deps installed:
pytest
- Tests are under
tests/perpyproject.toml.
- If you hit a roadblock and fix it, update this file with the corrected steps.
- Ask clarifying questions until you are ~95% confident in the implementation details.
- When offering choices, present them as a), b), c), d) options for quick selection.
- Use a), b), c), d) as answers/solutions, not as additional questions.