Skip to content

Contributing

PantheraNestah edited this page Nov 5, 2026 · 1 revision

Contributing

Set up

Follow Getting Started. For quick restarts while developing, set PRELOAD_MODELS=false in .env (the first request is then slow) and run with --reload.

pip install pytest
python -m pytest tests -q        # all 47 should pass

Tests need no keys or network. Any change to the LLM layer, concurrency or startup should come with a test (Testing).

Conventions

  • Commits follow Conventional Commits, as in the existing history: feat(scope): ..., fix(scope): ..., refactor(...), docs: ..., chore: .... One logical change per commit, with its tests and docs.
  • Never commit .env, the database, the vector store, API keys or interaction data. Use .env.example for new variables, with no values.
  • No formatter or linter is configured; match the surrounding style.
  • Do not block the event loop. Slow or blocking work (model calls, CPU-heavy scoring) goes through asyncio.to_thread (Architecture).
  • Add new LLM providers through app/services/llm.py (LLM Layer), not directly in the generator.

Keeping the docs true

When you change behaviour, update the page that describes it:

You changed Update
An environment variable Configuration and .env.example
An endpoint or response API Reference
A prompt or lesson format Prompts and Lessons
Retrieval constants Retrieval Pipeline
The database schema Data and Logging
Anything on the known-issues list Known Issues and Limitations

Do not put secrets, interaction data or personal information in issues, pull requests or the wiki.

Good first issues

The (fixable) items in Known Issues and Limitations are small and well understood. An end-to-end endpoint test with a stubbed pipeline would be a valuable addition.

Editing the wiki

The wiki is a separate Git repository (nutripepper-rag.wiki.git) of flat Markdown files. Link pages with [[Page Title]]. Check that every link target exists before pushing.

Clone this wiki locally