Skip to content

Rag crud - #358

Merged
ianardee merged 5 commits into
mainfrom
rag-crud
Oct 9, 2026
Merged

ianardee merged 5 commits into
mainfrom
rag-crud

Conversation

@ianardee

@ianardee ianardee commented Oct 7, 2026

Copy link
Copy Markdown
Collaborator

Description

Types of changes

  • Docs change / refactoring / dependency upgrade
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Requires a change to the official Guide documentation.

@ianardee
ianardee force-pushed the rag-crud branch 16 times, most recently from c0a98e3 to 737505c Compare October 8, 2026 16:21
@ianardee
ianardee marked this pull request as ready for review October 8, 2026 16:28
@ianardee
ianardee requested a balanced review from Copilot October 8, 2026 16:28

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Polling, numeric round-tripping, build configuration, mutable annotation state, and API compatibility issues remain unresolved.

6 open findings
What changed in this PR

Adds CRUD support for V2 extraction RAG documents, including annotation models, HTTP operations, polling, and tests.

Changes:

  • Adds RAG document upload, retrieval, update, deletion, and polling APIs.
  • Adds annotation models, parameters, and custom deserialization.
  • Expands integration/unit tests and configures delomboked Javadocs.
File Description
src/​test/​java/​com/​mindee/​v2/​product/​SplitTest.java Renames test display label.
src/​test/​java/​com/​mindee/​v2/​product/​OcrTest.java Renames test display label.
src/​test/​java/​com/​mindee/​v2/​product/​extraction/​RagDocumentsTest.java Tests RAG parameters and responses.
src/​test/​java/​com/​mindee/​v2/​product/​extraction/​RagDocumentsIT.java Tests the RAG CRUD lifecycle.
src/​test/​java/​com/​mindee/​v2/​product/​extraction/​ExtractionResponseTest.java Reorganizes extraction response tests.
src/​test/​java/​com/​mindee/​v2/​product/​extraction/​ExtractionParametersTest.java Adds extraction parameter tests.
src/​test/​java/​com/​mindee/​v2/​product/​CropTest.java Renames test display label.
src/​test/​java/​com/​mindee/​v2/​product/​ClassificationTest.java Updates naming and local inference.
src/​test/​java/​com/​mindee/​v2/​MindeeClientTest.java Extends the fake V2 API for RAG.
src/​test/​java/​com/​mindee/​v2/​MindeeClientIT.java Refines integration-test naming.
src/​main/​java/​com/​mindee/​v2/​product/​extraction/​ragdocuments/​RagAnnotation.java Models an annotation payload.
src/​main/​java/​com/​mindee/​v2/​product/​extraction/​ragdocuments/​params/​RagDocumentUploadParameters.java Adds extraction RAG upload parameters.
src/​main/​java/​com/​mindee/​v2/​product/​extraction/​ragdocuments/​params/​RagDocumentAnnotationParameters.java Adds annotation update parameters.
src/​main/​java/​com/​mindee/​v2/​product/​extraction/​ragdocuments/​ExtractionRagAnnotationResponse.java Models extraction RAG responses.
src/​main/​java/​com/​mindee/​v2/​product/​extraction/​ragdocuments/​DynamicAnnotationFieldDeserializer.java Deserializes dynamic annotation fields.
src/​main/​java/​com/​mindee/​v2/​product/​extraction/​ragdocuments/​AnnotatedSimpleFieldDeserializer.java Deserializes simple annotation fields.
src/​main/​java/​com/​mindee/​v2/​product/​extraction/​ragdocuments/​AnnotatedSimpleField.java Models simple annotated values.
src/​main/​java/​com/​mindee/​v2/​product/​extraction/​ragdocuments/​AnnotatedObjectField.java Models annotated objects.
src/​main/​java/​com/​mindee/​v2/​product/​extraction/​ragdocuments/​AnnotatedListField.java Models annotated lists.
src/​main/​java/​com/​mindee/​v2/​product/​extraction/​ragdocuments/​AnnotatedFields.java Provides typed field lookup helpers.
src/​main/​java/​com/​mindee/​v2/​product/​extraction/​ragdocuments/​AnnotatedDynamicField.java Wraps dynamically typed annotations.
src/​main/​java/​com/​mindee/​v2/​product/​extraction/​ragdocuments/​AnnotatedBaseField.java Defines shared annotation configuration.
src/​main/​java/​com/​mindee/​v2/​product/​extraction/​params/​ExtractionParameters.java Revises builder documentation.
src/​main/​java/​com/​mindee/​v2/​parsing/​inference/​field/​InferenceFields.java Improves Javadoc links.
src/​main/​java/​com/​mindee/​v2/​parsing/​BaseRagAnnotationResponse.java Defines common RAG response properties.
src/​main/​java/​com/​mindee/​v2/​MindeeClient.java Exposes RAG CRUD and polling operations.
src/​main/​java/​com/​mindee/​v2/​http/​MindeeHttpApiV2.java Implements RAG HTTP endpoints.
src/​main/​java/​com/​mindee/​v2/​http/​MindeeApiV2.java Extends the V2 API abstraction.
src/​main/​java/​com/​mindee/​v2/​clientoptions/​BaseSearchParameters.java Narrows generated accessors.
src/​main/​java/​com/​mindee/​v2/​clientoptions/​BaseRagDocumentUploadParameters.java Defines common upload parameters.
src/​main/​java/​com/​mindee/​v2/​clientoptions/​BaseProductParameters.java Adds constructor documentation.
src/​main/​java/​com/​mindee/​v2/​clientoptions/​BaseAnnotationParameters.java Defines common annotation parameters.
src/​main/​java/​com/​mindee/​exceptions/​MindeeInputException.java Adds an invalid-input exception.
pom.xml Adds delombok and Javadoc configuration.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread pom.xml
Comment thread src/main/java/com/mindee/v2/http/MindeeApiV2.java
Comment thread src/main/java/com/mindee/v2/MindeeClient.java
Comment thread src/main/java/com/mindee/v2/MindeeClient.java Outdated
@ianardee
ianardee force-pushed the rag-crud branch 2 times, most recently from 179d60a to 3953ace Compare October 8, 2026 17:08
@ianardee
ianardee requested a balanced review from Copilot October 8, 2026 17:08

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment thread src/main/java/com/mindee/v2/MindeeClient.java
Comment thread src/main/java/com/mindee/v2/clientoptions/BaseSearchParameters.java Outdated
Comment thread src/main/java/com/mindee/v2/http/MindeeApiV2.java Outdated
Comment thread src/main/java/com/mindee/v2/http/MindeeApiV2.java Outdated
Comment thread src/main/java/com/mindee/v2/clientoptions/BaseRagDocumentUploadParameters.java Outdated
Comment thread src/main/java/com/mindee/v2/MindeeClient.java
Comment thread src/main/java/com/mindee/v2/MindeeClient.java
Comment thread src/main/java/com/mindee/v2/MindeeClient.java
Co-authored-by: sebastianMindee <130448732+sebastianMindee@users.noreply.github.com>
ianardee and others added 3 commits October 9, 2026 10:58
…dParameters.java

Co-authored-by: sebastianMindee <130448732+sebastianMindee@users.noreply.github.com>
Co-authored-by: sebastianMindee <130448732+sebastianMindee@users.noreply.github.com>
@ianardee
ianardee merged commit e1c4957 into main Oct 9, 2026
14 checks passed
@ianardee
ianardee deleted the rag-crud branch October 9, 2026 14:00
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.

3 participants