Skip to content

v0.9.0 #41

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 2, 2025
Merged

v0.9.0 #41

merged 2 commits into from
Jul 2, 2025

Conversation

SergiiShcherbak
Copy link
Collaborator

v0.9.0

Description

New exception handling for LLM extraction methods: Added raise_exception_on_extraction_error parameter (default is True) to LLM extraction methods. Controls whether to raise an exception when LLM returns invalid data (LLMExtractionError) or when there is an error calling LLM API (LLMAPIError). When False, warnings are issued and no extracted items are returned.

Related Issues

Fixes #39

Types of change

  • New feature (non-breaking change which adds functionality)
  • Documentation update
  • Code cleanup or refactor

Checklist

  • I ran the tests, and all new and existing tests passed.

In LLM extraction methods (such as llm.extract_all(...)), new param 'raise_exception_on_extraction_error' (default True) controls whether to raise an exception when LLM returns invalid data (LLMExtractionError) or when there is an error when calling LLM API (LLMAPIError). When False, warnings are issued, and no extracted items are returned.
@SergiiShcherbak SergiiShcherbak self-assigned this Jul 2, 2025
@SergiiShcherbak SergiiShcherbak added documentation Improvements or additions to documentation enhancement New feature or request labels Jul 2, 2025
@SergiiShcherbak SergiiShcherbak merged commit 0da23a4 into main Jul 2, 2025
34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEATURE] Param to Control Exception Behaviour for JSON Errors
1 participant