* local question answering over analysis notebooks with LightRAG, Neo4j, Qdrant and Ollama * RAGAS evaluation with a generator x judge comparison matrix, fully local * docs in README and OKF
2.9 KiB
2.9 KiB
Knowledge — read before you code
This project keeps an agent-first wiki at OKF/
(open-knowledge-format). Before extending or modifying askme:
- Read
OKF/index.md, then the pages it flags for your task — at minimumSUMMARY.md;ARCHITECTURE.mdbefore structural work. - Use the canonical vocabulary from
OKF/CONTEXT.md(not written yet) in code, tests, and commit messages. Don't coin synonyms. - Non-trivial changes start from a blueprint in
OKF/blueprints/— write one (blueprint skill) before implementing; cite its number in the commit. - Learned something that contradicts the wiki? Update the wiki in the
same change (supersede, don't delete) or append to
OKF/learnings/(the matching theme page).
Behavioral guardrails
- State assumptions explicitly; name the simpler approach you are rejecting; surface tradeoffs. Push back when warranted — if something is unclear, stop and ask rather than guess.
- Do exactly what the task requires, nothing more. No speculative abstractions, no drive-by refactors.
- A green test suite is a claim, not a proof — verify against the blueprint's stated check before calling work done.
Simplicity & rigor
- Think before coding — when multiple interpretations exist, present them; don't pick silently.
- Three sieves before a line stays: real (not speculative — no error handling for impossible scenarios, no unrequested flexibility or configurability), good (nameably better for the next reader), minimal (leanest form — stdlib/existing code before new). Burden is on keeping, not cutting. Exceptions that always pass good: input validation, error handling that prevents data loss, security, accessibility, explicitly requested behaviour.
- Surgical changes — match existing style; notice unrelated dead code and mention it, don't delete it; clean up only your own mess (remove orphans your change created, not pre-existing dead code); every changed line should trace to the request.
- Goal-driven execution — turn the task into a verifiable check before starting: "add validation" → "write tests for invalid inputs, then make them pass"; "fix the bug" → "write a test that reproduces it, then make it pass". For multi-step work, state a brief plan, each step naming its own verify. Strong success criteria let you loop independently; weak ones ("make it work") need constant clarification.
Repo conventions — askme
- Python, managed by
uv(pyproject.toml). - Tests:
tests/test_<source_file>.py, one test file per source file;just test(uv run --extra dev --extra eval pytest tests/) must pass before committing. - VCS: Jujutsu — commit with
jj describe/jj commit, notgit commit. - Commit style:
<type>(<scope>): <this change will...>with* bulletsub-changes. - Task runner:
just— model config (LLM, embedding, eval models) lives in justfile variables.