Repository navigation
Contributing
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 passTests need no keys or network. Any change to the LLM layer, concurrency or startup should come with a test (Testing).
-
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.examplefor 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.
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.
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.
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.
Documentation last verified against the code on 2026-11-05. Evaluation figures are historical, see Evaluation. Educational tool, not medical advice.
Use it
How it works
- Architecture
- Retrieval Pipeline
- LLM Layer
- Prompts and Lessons
- Grounding Verification
- Knowledge Base
- Data and Logging
Quality
Develop