Skip to content

Dot Product Support Similarity Metric for IndexIVFFlatPanorama#4732

Closed
AlSchlo wants to merge 14 commits intofacebookresearch:mainfrom
AlSchlo:dot-product-panorama
Closed

Dot Product Support Similarity Metric for IndexIVFFlatPanorama#4732
AlSchlo wants to merge 14 commits intofacebookresearch:mainfrom
AlSchlo:dot-product-panorama

Conversation

@AlSchlo
Copy link
Contributor

@AlSchlo AlSchlo commented Dec 19, 2025

Summary

As title, will tackle IVFFlat & HNSW in subsequent PRs.

Stacks upon this refactoring PR.
(Not necessarily dependent but makes my workflow a bit easier).

Did some refactoring to keep the code clean. Will do further test code refactoring first before supporting other indexes.

Testing Plan

Adapted existing tests to run with both distance metrics. However this proved tricky due to floating point imprecision, so I had to loose up some constraints at some places.

Note

The diffs of this PR are horrible, but that is mostly due to the fact that each Python line gets indented...
If you open each file prev-new next to each other, you will see it is very similar.

@meta-cla meta-cla bot added the CLA Signed label Dec 19, 2025
@AlSchlo AlSchlo changed the title Dot Product Support Similarity Metric for 'IndexIVFFlatPanorama' Dot Product Support Similarity Metric for IndexIVFFlatPanorama Dec 19, 2025
@AlSchlo AlSchlo force-pushed the dot-product-panorama branch from 99ff3ce to d355aa0 Compare December 19, 2025 03:45
@meta-codesync
Copy link
Contributor

meta-codesync bot commented Dec 22, 2025

@mnorris11 has imported this pull request. If you are a Meta employee, you can view this in D89670228.

@meta-codesync
Copy link
Contributor

meta-codesync bot commented Dec 30, 2025

@subhadeepkaran merged this pull request in c9bab48.

@aknayar aknayar mentioned this pull request Jan 31, 2026
meta-codesync bot pushed a commit that referenced this pull request Feb 4, 2026
Summary:
This PR builds on #4732, adding `IndexFlatIPPanorama` and updating unit tests.

Hide whitespace to see cleaner diffs.

Note: Renamed `test_flat_l2_panorama.py` -> `test_flat_panorama.py`.

Pull Request resolved: #4787

Reviewed By: subhadeepkaran

Differential Revision: D92071847

Pulled By: alibeklfc

fbshipit-source-id: 4fe0017fed4fa94f979ad5ae575627bd2182df10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants