Skip to content

Better rag - #447

Merged
ianardee merged 2 commits into
mainfrom
better-rag
Oct 12, 2026
Merged

ianardee merged 2 commits into
mainfrom
better-rag

Conversation

@ianardee

@ianardee ianardee commented Oct 9, 2026

Copy link
Copy Markdown
Collaborator

Description

  • 🐛 fix polling logic
  • ♻️ various improvements to RAG methods

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.

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

Poll-count regressions and several unintended public API compatibility breaks remain unresolved.

7 open findings
What changed in this PR

Improves polling behavior, centralizes client logging/throttling, and generalizes V2 RAG document handling.

Changes:

  • Adds shared client polling and logging infrastructure.
  • Refactors RAG annotation construction and product routing.
  • Reorganizes and updates unit/integration tests.
File Description
.editorconfig Removes trailing blank line.
src/​Mindee/​ClientOptions/​BaseClient.cs Adds shared logging and polling throttling.
src/​Mindee/​ClientOptions/​BasePollingOptions.cs Removes retry-delay helper.
src/​Mindee/​Exceptions/​MindeeInputException.cs Clarifies documentation.
src/​Mindee/​MindeeLogger.cs Marks logger as V1 legacy infrastructure.
src/​Mindee/​V1/​Client.cs Adopts BaseClient and revises polling.
src/​Mindee/​V1/​Parsing/​Standard/​DateField.cs Corrects structured logging placeholder.
src/​Mindee/​V2/​Client.cs Adopts shared logging and polling logic.
src/​Mindee/​V2/​ClientOptions/​BaseAnnotationParameters.cs Improves constructor documentation.
src/​Mindee/​V2/​ClientOptions/​BaseRagDocumentUploadParameters.cs Improves constructor documentation.
src/​Mindee/​V2/​Http/​HttpApiV2.cs Updates API documentation and naming.
src/​Mindee/​V2/​Http/​MindeeApiV2.cs Generalizes RAG routes by product slug.
src/​Mindee/​V2/​Product/​Extraction/​RagDocuments/​AnnotatedDynamicField.cs Adds type-specific constructors.
src/​Mindee/​V2/​Product/​Extraction/​RagDocuments/​AnnotatedDynamicFieldJsonConverter.cs Uses the new constructors.
src/​Mindee/​V2/​Product/​Extraction/​RagDocuments/​AnnotatedListField.cs Requires list items during construction.
src/​Mindee/​V2/​Product/​Extraction/​RagDocuments/​AnnotatedObjectField.cs Requires nested fields during construction.
src/​Mindee/​V2/​Product/​Extraction/​RagDocuments/​ExtractionRagAnnotationResponse.cs Adds extraction product metadata.
src/​Mindee/​V2/​Product/​Extraction/​RagDocuments/​Params/​RagDocumentUploadParameters.cs Removes unused imports.
src/​Mindee/​V2/​Product/​Extraction/​RagDocuments/​RagAnnotation.cs Adds annotation constructors.
tests/​Mindee.IntegrationTests/​V2/​Product/​Extraction/​RagDocumentsTest.cs Simplifies model identifier naming.
tests/​Mindee.UnitTests/​ClientOptions/​BaseClientTest.cs Tests shared polling throttling.
tests/​Mindee.UnitTests/​V1/​AsyncPollingOptionsTest.cs Removes obsolete delay assertions.
tests/​Mindee.UnitTests/​V2/​ClientOptions/​PollingOptionsTest.cs Removes obsolete delay assertions.
tests/​Mindee.UnitTests/​V2/​Product/​ClassificationTest.cs Renames response fixture helper.
tests/​Mindee.UnitTests/​V2/​Product/​CropTest.cs Renames response fixture helper.
tests/​Mindee.UnitTests/​V2/​Product/​Extraction/​ExtractionParametersTest.cs Reorganizes parameter tests.
tests/​Mindee.UnitTests/​V2/​Product/​Extraction/​ExtractionResponseTest.cs Separates response tests and renames helper.
tests/​Mindee.UnitTests/​V2/​Product/​Extraction/​RagDocumentsTest.cs Verifies serialized annotation structure.
tests/​Mindee.UnitTests/​V2/​Product/​OcrTest.cs Renames response fixture helper.
tests/​Mindee.UnitTests/​V2/​Product/​SplitTest.cs Renames response fixture helper.

🧠 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 src/Mindee/ClientOptions/BasePollingOptions.cs
Comment thread src/Mindee/V1/Client.cs Outdated
Comment thread src/Mindee/V2/Client.cs Outdated
Comment thread src/Mindee/V2/Http/MindeeApiV2.cs
Comment thread src/Mindee/V2/Product/Extraction/RagDocuments/AnnotatedListField.cs
@ianardee
ianardee merged commit ecad972 into main Oct 12, 2026
2 checks passed
@ianardee
ianardee deleted the better-rag branch October 12, 2026 09:11
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