Repository navigation
✨ pass text context to chained model - #367
Merged
Merged
Conversation
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues were identified for the optional extraction text context changes.
No open issues 🎉
What changed in this PR
This PR lets the Java SDK’s classification, crop, and split products pass optional text context to a chained extraction model, while preserving existing constructors.
Changes:
- Adds shared parameter and builder support for
extraction_text_context. - Adds tests verifying that context is included when provided and omitted when unset.
- Updates contributor guidance and removes trailing whitespace from Javadoc comments.
| File | Description |
|---|---|
src/test/java/com/mindee/v2/product/SplitTest.java |
Tests split parameters with and without extraction context. |
src/test/java/com/mindee/v2/product/CropTest.java |
Tests crop parameters with and without extraction context. |
src/test/java/com/mindee/v2/product/ClassificationTest.java |
Tests classification parameters with and without extraction context. |
src/main/java/com/mindee/v2/product/split/params/SplitParameters.java |
Adds extraction context through shared parameters and builder support. |
src/main/java/com/mindee/v2/product/extraction/ragdocuments/AnnotatedSimpleField.java |
Removes trailing whitespace from Javadoc. |
src/main/java/com/mindee/v2/product/extraction/ragdocuments/AnnotatedObjectField.java |
Removes trailing whitespace from Javadoc. |
src/main/java/com/mindee/v2/product/extraction/ragdocuments/AnnotatedListField.java |
Removes trailing whitespace from Javadoc. |
src/main/java/com/mindee/v2/product/extraction/ragdocuments/AnnotatedDynamicField.java |
Removes trailing whitespace from Javadoc. |
src/main/java/com/mindee/v2/product/crop/params/CropParameters.java |
Adds extraction context through shared parameters and builder support. |
src/main/java/com/mindee/v2/product/classification/params/ClassificationParameters.java |
Adds extraction context through shared parameters and builder support. |
src/main/java/com/mindee/v2/clientoptions/BaseClassificationProductParameters.java |
Defines shared context storage, builder setter, and request serialization. |
AGENTS.md |
Adds code-conversion, linting, and builder-based testing guidance. |
Review effort: Balanced
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Types of changes