feat: baseline experts + --baseline A/B mode (raw LLM)
Per Emili 2026-10-16: the draft experts are baseline experts - the LLM answers each subquestion directly from its own knowledge (no verification yet; engines replace the baseline path per expert later). ExpertSignature no longer forbids weights-based answers; source_quote now means verbatim from GIVEN evidence, empty when answering from weights. Evidence rows record source: model_weights | given_evidence. --baseline mode: the same LM answers the whole question in ONE raw call - the A/B control against the loop's many small directed calls. Also: pyproject fixed (name floop, hatchling backend, package floop/) - uv_build expected src/ layout; runner docs now uv-first; uv.lock regenerated.
This commit is contained in:
+18
-4
@@ -9,11 +9,25 @@ is the real v0.1 shape; only the formal layer is missing.
|
||||
|
||||
```bash
|
||||
cd floop/code
|
||||
.venv/bin/python run_app.py "What information do I need to plan a trip to Tokyo?" # any question
|
||||
.venv/bin/python run_app.py --verbose "..." # + "thinking" on screen, flushed
|
||||
FLOOP_LM=ollama-cloud .venv/bin/python run_app.py "..." # cloud LM instead of local
|
||||
uv run run_app.py "What information do I need to plan a trip to Tokyo?" # any question
|
||||
uv run run_app.py --verbose "..." # + "thinking" on screen, flushed
|
||||
uv run run_app.py --baseline "..." # A/B control: raw LLM, ONE call, no loop
|
||||
FLOOP_LM=ollama-cloud uv run run_app.py "..." # cloud LM instead of local
|
||||
```
|
||||
|
||||
### Baselines (Emili, 2026-10-16)
|
||||
|
||||
The draft experts are **baseline experts**: the LLM answers each small subquestion
|
||||
directly from its own knowledge — no engine, no verification yet. Each evidence row
|
||||
records the honest source: `model_weights` (answered from the LLM's own knowledge) or
|
||||
`given_evidence` (backed by a verbatim quote from the evidence it was given). When the
|
||||
real engines arrive (knowledge first), the verification path replaces the baseline path
|
||||
per expert, and every improvement becomes measurable against this baseline.
|
||||
|
||||
`--baseline` is the A/B control: the same LM answers the whole question in ONE raw
|
||||
call — no decomposition, no experts, no evidence table. Same LM, same budget unit.
|
||||
Compare: `--baseline` vs the loop's many small directed calls.
|
||||
|
||||
- **Always**: `runs/<ts>-<slug>/run.log` (gitignored), written with explicit flush —
|
||||
`tail -f runs/<latest>/run.log` from another terminal shows progress live.
|
||||
- **`--verbose`**: the **thinking stream** also prints to the screen, flushed. Thinking is
|
||||
@@ -33,7 +47,7 @@ FLOOP_LM=ollama-cloud .venv/bin/python run_app.py "..." # cloud LM instead of
|
||||
| INIT — epistemic decomposition (LLM call) | real (dspy.Predict) | `floop/dspy_modules.py` |
|
||||
| MISSING — gap decomposition on stuck goal | real (dspy) | `floop/dspy_modules.py` |
|
||||
| ROUTE — one LLM judgement over the catalogue | real (dspy) | `floop/dspy_modules.py` |
|
||||
| Expert attendants (the draft answer) | **STUB engine**: LLM call, `verified=False` | `floop/engine.py` |
|
||||
| Expert attendants (the draft answer) | **BASELINE engine**: LLM answers from its weights; `verified=False`; source recorded (`model_weights`/`given_evidence`) | `floop/engine.py` |
|
||||
| Arrival check (type check + contradiction) | **STUB**: only UNKNOWN refusal | `machine._append_checked` |
|
||||
| Prover (stop condition, derivability) | **STUB**: question stack terminal | `machine._finish` |
|
||||
| `user` expert | not wired — explicit failure row | `floop/engine.py` |
|
||||
|
||||
Reference in New Issue
Block a user