[BUG] LexC Document Type Classification Failure - Clear Document Headers Not Recognized

Resolved 💬 2 comments Opened Sep 21, 2025 by JLiotta-25 Closed Sep 21, 2025

Bug Description

LexC fails to identify document types even when explicitly stated in document headers.

Reproduction

Process document with clear header "CONSULTING AGREEMENT"

Expected: document_type: "contract" or "consulting_agreement"
Actual: document_type: "unknown"

Impact

  • Document classification pipeline broken
  • Semantic analysis starts with wrong document type
  • Legal analysis may miss document-specific rules

Test Case

Document: SchromM_Services Agreement_20190829.docx
Header: "CONSULTING AGREEMENT" (all caps, clearly visible)
Result: Type marked as "unknown"

Priority: High - Core document classification functionality

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗