Skip to content

Add configurable field extraction with rules-first and optional LLM f… - #50

Open
pjargo wants to merge 1 commit into
tommyGPT2S:mainfrom
pjargo:feature/field-extraction
Open

Add configurable field extraction with rules-first and optional LLM f…#50
pjargo wants to merge 1 commit into
tommyGPT2S:mainfrom
pjargo:feature/field-extraction

Conversation

@pjargo

@pjargo pjargo commented Jul 10, 2026

Copy link
Copy Markdown

…allback

New docex/extraction module: fields are declared as label phrases plus a type (money, date, text) in a dict or YAML config; a rules engine finds and type-validates values (same line, then next line), flags conflicting values instead of guessing, and an optional caller-provided llm_fn resolves only the fields the rules miss. Every stored value carries its source and the exact label text that identified it, and documents with missing or conflicting fields are flagged needs_review for metadata search. Includes a default CRE invoice field set, unit and integration tests, and an example.

…allback

New docex/extraction module: fields are declared as label phrases plus a
type (money, date, text) in a dict or YAML config; a rules engine finds and
type-validates values (same line, then next line), flags conflicting values
instead of guessing, and an optional caller-provided llm_fn resolves only
the fields the rules miss. Every stored value carries its source and the
exact label text that identified it, and documents with missing or
conflicting fields are flagged needs_review for metadata search. Includes a
default CRE invoice field set, unit and integration tests, and an example.

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant