Skip to content

Feature/cluster representative images#42

Open
NetZissou wants to merge 4 commits into
mainfrom
feature/cluster-representative-images
Open

Feature/cluster representative images#42
NetZissou wants to merge 4 commits into
mainfrom
feature/cluster-representative-images

Conversation

@NetZissou

Copy link
Copy Markdown
Collaborator

The embed_explore app already shows representative images per cluster; the precalculated app didn't. This adds that capability to precalculated and factors the logic into shared components so both apps render representatives through one patch.

Representative Images panel per KMeans run in the precalculated app: the members closest to each cluster centroid (computed on the full-dimensional embeddings). A selector picks which KMeans (k=N) run to view (multi-run aware).

Images are fetched from each record's URL column; unreachable/broken images are skipped and the next-closest candidate is shown.

The pkg now declares requests lib explicitly, previously only transitive.

Single-sources the package version to pyproject.toml version. And shared.__version__ reads it via importlib.metadata, and the image fetch User-Agent reports it emb-explorer/1.0.0 (+https://github.com/Imageomics/emb-explorer)

Closes #39

NetZissou and others added 4 commits June 15, 2026 15:53
Surfaces the members closest to each cluster centroid as a
representative-image panel across both apps. This feature already
exisits in the embed&explore app, now it's made available on the
precalculated embeddings app.

Adds a shared compute/render core and a reusable, thread-sfae
image-fetching layer.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…sentative-images

# Conflicts:
#	apps/precalculated/app.py
#	shared/components/summary.py
[project].version (static, 1.0.0) is now the sole source of truth.

Drop the dynamic [tool.hatch.version], and read __version__ from
installed metadata via `importlib.metadata`.

Also remove [tool.hatch.metadata] allow-direct-references, obsolete now that the hpc-inference git dependency is gone.
@NetZissou NetZissou self-assigned this Jun 16, 2026
@NetZissou NetZissou added the enhancement New feature or request label Jun 16, 2026
@NetZissou NetZissou requested a review from egrace479 June 16, 2026 12:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add per-cluster representative images to the precalculated app

1 participant