Skip to content

Images Like This#4554

Draft
ellenmuller wants to merge 21 commits intomainfrom
em-image-to-image-similarity
Draft

Images Like This#4554
ellenmuller wants to merge 21 commits intomainfrom
em-image-to-image-similarity

Conversation

@ellenmuller
Copy link
Contributor

@ellenmuller ellenmuller commented Nov 5, 2025

What does this change?

This PR adds a 'More Like This' feature to the Grid, enabling users to find
visually and semantically similar images from within the image library.

It builds on the existing semantic search functionality by introducing:

  • s3vectors.searchByImage — a new method that queries S3 vector storage using
    an image as the search input
  • embedder.imageToImageSearch — a higher-level wrapper called from Media API

In Media API, requests are checked for the similar: <image id> query type to
qualify them as similarity searches. This query is automatically populated when
the user clicks 'More Like This' on any image.

⚠️ Known issue: The 'Use AI Search' toggle behaves unexpectedly when
switching between search modes. This will be addressed before merge.

How should a reviewer test this change?

  1. Navigate to the Grid and open any image
  2. Click the 'More Like This' button
  3. Verify that a set of visually similar images is returned
  4. Try switching between similarity search and regular search modes — note the
    known issue with the 'Use AI Search' toggle (see above)

How can success be measured?

  • Clicking 'More Like This' consistently returns visually relevant results
  • No regressions in existing semantic search behaviour

Tested? Documented?

  • locally by committer
  • locally by Guardian reviewer
  • on the Guardian's TEST environment
  • relevant documentation added or amended (if needed)

@ellenmuller ellenmuller force-pushed the em-image-to-image-similarity branch from 5b1fa88 to 07e715b Compare November 5, 2025 11:14
@github-actions
Copy link

github-actions bot commented Nov 5, 2025

@ellenmuller ellenmuller added the feature Departmental tracking: work on a new feature label Dec 9, 2025
@ellenmuller ellenmuller changed the title Em image to image similarity Images Like This Mar 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature Departmental tracking: work on a new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants