Skip to content

Add: Find all instances preview endpoint - #2830

Draft
iunir wants to merge 1 commit into
iunir-assisted-labeling-interactive-endpointfrom
iunir-assisted-labeling-instances-endpoint
Draft

iunir wants to merge 1 commit into
iunir-assisted-labeling-interactive-endpointfrom
iunir-assisted-labeling-instances-endpoint

Conversation

@iunir

@iunir iunir commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

What has changed and why?

Part 9 of 20. This stack replaces the assisted labeling prototype (PR 2752) with small PRs. Each PR adds one part.

  • Adds POST /api/annotate/instances for find all instances. It returns all previews for a text prompt or boxes and saves nothing.
  • It uses the same async pattern and thread pool as smart select. The shared provider and image lookup is one helper now.

How has it been tested?

  • Service tests: text prompt with a limit, boxes.
  • Route tests: 200, 422 for an empty prompt without boxes, 422 for max_instances above 32.

Did you update CHANGELOG.md?

  • Yes
  • Not needed (internal change)

@coderabbitai

coderabbitai Bot commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 58 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 4 included reviews currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: Repository: lightly-ai/lightly-studio/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 022f05e0-0d1f-498e-a852-5fdc3e447e17
📥 Commits

Reviewing files that changed from the base of the PR and between e272b60 and 51347b1.

📒 Files selected for processing: 6
  • lightly_studio/src/lightly_studio/api/routes/api/annotate.py
  • lightly_studio/src/lightly_studio/models/assisted_labeling.py
  • lightly_studio/src/lightly_studio/services/assisted_labeling_service/__init__.py
  • lightly_studio/src/lightly_studio/services/assisted_labeling_service/create_instances_preview.py
  • lightly_studio/tests/api/routes/api/test_annotate.py
  • lightly_studio/tests/services/assisted_labeling_service/test_create_instances_preview.py
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@iunir
iunir added this pull request to stack #2842 October 16, 2026 17:03

This branch has not been deployed

No deployments
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.

1 participant