LLM-related code.
- Checkout the code.
- Create/activate your Python environment of choice.
- Install uv:
pip install uv. - Install dependencies:
uv pip install -r pyproject.toml. - Install dev dependencies:
uv pip install -r pyproject.toml --extra dev. - Run
pre-commit installto install pre-commit hooks. - Configure your editor for realtime linting:
- For VS Code:
- Set the correct Python environment for the workspace via
ctrl+shift+P>Python: Select Interpreter. - Install the Pylance and Ruff extensions.
- Set the correct Python environment for the workspace via
- For VS Code:
- Make changes.
- Verify linting passes
scripts/lint.sh. - Verify tests pass
scripts/test.sh. - Commit and push your changes.
Run pre-defined experiments to evaluate LLM-components and output detailed evaluation reports:
python evals/run_evals.py