Skip to content

feat: Docling SaaS ML backend example#889

Open
micaelakaplan wants to merge 10 commits intomasterfrom
feature/docling-saas-example
Open

feat: Docling SaaS ML backend example#889
micaelakaplan wants to merge 10 commits intomasterfrom
feature/docling-saas-example

Conversation

@micaelakaplan
Copy link
Copy Markdown
Collaborator

  • Add docling example: IBM Docling SaaS via DoclingServiceClient, DoclingDocument to ReactCode regions, label-studio-sdk get_local_path for uploads, strip trailing /v1 from DOCLING_SERVICE_URL so routes are not doubled.
  • ModelResponse.update_predictions_version: handle dict predictions and fix PredictionValue/list branching.
  • api: return 400 when POST /predict body is not JSON; log task counts.
  • README: catalog row for docling example.

Made-with: Cursor

- Add docling example: IBM Docling SaaS via DoclingServiceClient, DoclingDocument
  to ReactCode regions, label-studio-sdk get_local_path for uploads, strip
  trailing /v1 from DOCLING_SERVICE_URL so routes are not doubled.
- ModelResponse.update_predictions_version: handle dict predictions and fix
  PredictionValue/list branching.
- api: return 400 when POST /predict body is not JSON; log task counts.
- README: catalog row for docling example.

Made-with: Cursor
@github-actions github-actions Bot added the feat label Apr 29, 2026
Remove unused config.json and label_mappings.json; ignore whole data/ volume tree.
Docker Compose still bind-mounts ./data/... and creates paths at runtime.

Made-with: Cursor
@micaelakaplan micaelakaplan requested a review from makseq April 29, 2026 13:57
requirements-test.txt pins pytest/pytest-cov so Docker TEST_ENV installs stay
compatible (_pytest.scope). README explains for CI/local image builds.

Made-with: Cursor
…syocr

- tests/requirements-test.txt: bump pytest/pytest-cov so anyio pytest plugin
  (_pytest.scope) loads on GitHub Actions.
- docling: unpinned pytest/pytest-cov + responses like easyocr; drop extra README note.

Made-with: Cursor
Comment thread label_studio_ml/response.py Outdated
Document meaningful sections in model.py and list supported Docling, Label Studio, server, and output environment variables in docker-compose.yml.

Made-with: Cursor
Wrap Docling ReactCode predictions in PredictionValue so ModelResponse applies model_version normally. Revert earlier core api/response changes so the PR stays focused on the Docling example.

Made-with: Cursor
Restore the global test requirements to the repo default and pin pytest/pytest-cov only in the Docling example test requirements.

Made-with: Cursor
Rewrite the smoke test without pytest fixtures and disable the unused anyio plugin locally so the example does not require pytest>=8.

Made-with: Cursor
Keep the Docling example on the repo's pytest 6 stack and pin anyio<4 so its pytest plugin does not require _pytest.scope. Remove the local pytest.ini workaround.

Made-with: Cursor
Prevent pytest 6.x CI startup from auto-loading newer anyio's pytest plugin, which imports _pytest.scope from pytest 8+.

Made-with: Cursor
@micaelakaplan micaelakaplan requested a review from a team as a code owner April 30, 2026 14:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants