knowledge: rename ExtractSignature.stop -> stop_table (his review)
The field's purpose was unclear from its name; stop_table says what it stops. Renamed across the signature, its desc/docstring, the caller (raw.stop_table), the wiki.py legacy note, and the test fakes.
This commit is contained in:
@@ -988,7 +988,7 @@ class KnowledgeExpert:
|
||||
charge_llm()
|
||||
heading = f"== Tables == (table {frag['table_idx']}, part {frag['part']}/{frag['of']})"
|
||||
raw = self.extract(question=question, heading=heading, text=text)
|
||||
if raw.stop:
|
||||
if raw.stop_table:
|
||||
stopped.add(frag["table_idx"])
|
||||
self._log(f"extractor STOP_TABLE: table {frag['table_idx']} "
|
||||
f"({frag['caption'][:40]!r}) not relevant — "
|
||||
|
||||
Reference in New Issue
Block a user