diff --git a/app/templates/documents/detail.html b/app/templates/documents/detail.html index f0dca3e..6697d75 100644 --- a/app/templates/documents/detail.html +++ b/app/templates/documents/detail.html @@ -1987,48 +1987,43 @@ document.addEventListener("DOMContentLoaded", () => { + {% set vision_fields = vision_candidate_fields or [] %} {% set vision_suggestions = vision_field_suggestions or [] %} {% if vision_suggestions %}
-

Vision Field Suggestions

+

Vision Suggested Additions

{{ vision_suggestions|length }} suggestions
-
- - - - - - - - - - - - {% for suggestion in vision_suggestions[:12] %} - - - - - - - - {% endfor %} - -
ActionFieldValueConfidenceOCR Conf.
{{ suggestion.get("action", "") }}{{ suggestion.get("target_field", "") }}{{ suggestion.get("value", "") }}{{ suggestion.get("confidence", "") }}{{ suggestion.get("ocr_confidence", "") }}
+ +
+ {% for suggestion in vision_suggestions[:8] %} +
+
+ {{ suggestion.get("target_field", "") }} · {{ suggestion.get("action", "") }} +
+
+ {{ suggestion.get("value", "") }} +
+
+ confidence {{ suggestion.get("confidence", "") }} + {% if suggestion.get("ocr_confidence") is not none %} + · OCR {{ suggestion.get("ocr_confidence", "") }} + {% endif %} +
+
+ {% endfor %}
{% endif %} {% if vision_fields %} -
-
-

Vision Candidate Fields

- {{ vision_fields|length }} candidates -
+
+ + Raw Vision Candidate Fields · {{ vision_fields|length }} candidates +
@@ -2040,7 +2035,7 @@ document.addEventListener("DOMContentLoaded", () => { - {% for field in vision_fields[:12] %} + {% for field in vision_fields[:20] %} @@ -2051,7 +2046,7 @@ document.addEventListener("DOMContentLoaded", () => {
{{ field.get("candidate_type", "") }} {{ field.get("value", "") }}
-
+ {% endif %}