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:
2026-10-22 16:26:03 +02:00
parent 12a1ffd77f
commit c257e9fe88
4 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -48,7 +48,7 @@ class ExtractSignature(dspy.Signature):
copied exactly (at least 10 characters). Only facts the text states;
no inference.
If the text is a fragment of a larger TABLE whose caption/headers show
its subject is wrong for the question, set stop=True with no facts.
its subject is wrong for the question, set stop_table=True with no facts.
Do NOT stop for text that is merely hard — only when the table's
subject is wrong."""
question: str = dspy.InputField()
@@ -56,7 +56,7 @@ class ExtractSignature(dspy.Signature):
text: str = dspy.InputField()
facts: list[Fact] = dspy.OutputField(
desc="the extracted facts; empty list if none")
stop: bool = dspy.OutputField(
stop_table: bool = dspy.OutputField(
desc="True when this table fragment's subject is wrong for the question")