(a) Disjointness guard (knowledge/expert.py): a LIST ingest whose members
don't overlap the entities the parent's evidence names is refused; the
gather continues to the next article. Run-08's 'flow of Po/Adige/Tiber'
answered by the Amazon from a world-wide table can no longer happen.
(b) Fan-out planner (floop/machine.py): a 'for each' subquestion over a list
row expands deterministically into N entity questions + one join.
Top-N bound respected ('those three' over 22 rows -> top 3 by table
order, logged). The join is a deterministic sum over the entity rows
(verified=True: computation is its own proof), partial sums named.
Entity rows are tagged fan_group in provenance so the join finds them.
Also: LIST ingest keeps TABLE ORDER (ranked tables rank; alphabetical sort
destroyed the ranking) — dict.fromkeys dedup.
Budget: 40 -> 80 (a 3-entity fan-out needs ~3x a scalar question).
Verified live (cold KG, 2 runs): list ingest in table order, slice top-3,
fan-out -> 3 entity questions + join, Po answered with verbatim quote
(1,460 m3/s). 28/28 tests (fan-out expansion+join, top-N slice, guard).
33 lines
1.2 KiB
YAML
33 lines
1.2 KiB
YAML
# floop draft config — see README.md
|
|
lm:
|
|
# provider selected by FLOOP_LM env var (local | ollama-cloud), default below
|
|
default: local
|
|
local:
|
|
base_url: http://127.0.0.1:11435/v1 # silent ollama
|
|
# model: qwen3.8:27b
|
|
model: qwen3.8-27b-uc-64k:latest
|
|
max_tokens: 4096
|
|
temperature: 0.0
|
|
ollama-cloud:
|
|
base_url: https://ollama.com/v1
|
|
model: glm-5.3-flash
|
|
max_tokens: 4096
|
|
temperature: 0.0
|
|
api_key_env: OLLAMA_API_KEY
|
|
|
|
budget:
|
|
max_llm_calls: 80 # per FLOOP run (children get a slice; fan-outs multiply
|
|
# entity questions — a 3-river fan needs ~3x a scalar)
|
|
min_child_budget: 6
|
|
max_depth: 2 # recursion cap (PIPELINE.md §8.4)
|
|
max_retries: 3 # bounded self-refinement on unparseable LLM output
|
|
missing_extensions: 1 # how many times "what is still missing?" may reopen questions per run
|
|
|
|
knowledge:
|
|
enabled: true # real KG pipeline for the knowledge expert; false -> baseline LLM
|
|
kb_path: knowledge_store/kg.sqlite
|
|
max_articles: 3 # per knowledge call
|
|
max_search_results: 4 # candidates considered
|
|
max_chunks_extracted: 6 # per call (lexical gate decides which)
|
|
chunk_chars_target: 32000
|
|
chunk_chars_cap: 48000 |