Skip to content

Graceful handling of chunks with no extractable entities #301

@aksg87

Description

@aksg87

When processing documents in chunks, some chunks may contain no entities of interest. Local models (e.g., Gemma3) often respond with polite refusal messages instead of valid JSON, causing the entire extraction job to fail even if other chunks succeeded.

From #132 (@thekitchenscientist):

If the chunks ends up not containing any of the entities of interest, the LLM sends a polite refusal message (as trained to do). This is not valid JSON and lx.extract rejects the whole job even if the rest of the chunks were valid.

Related: #132

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions