feat: text-only structuring prompt for extraction retry ladder

This commit is contained in:
2026-08-18 13:15:16 -05:00
parent 570300324f
commit 0d109fb5cd
2 changed files with 30 additions and 0 deletions
+6
View File
@@ -0,0 +1,6 @@
from backend.prompts import TEXT_STRUCTURING_SYSTEM_PROMPT, TEXT_STRUCTURING_USER_INSTRUCTION
def test_text_structuring_prompt_demands_verbatim_and_completeness():
assert "verbatim" in TEXT_STRUCTURING_USER_INSTRUCTION.lower()
assert "every" in TEXT_STRUCTURING_USER_INSTRUCTION.lower()
assert "{text_layer}" in TEXT_STRUCTURING_USER_INSTRUCTION