Skip to content

Add IndexFlatIPPanorama#4787

Closed
aknayar wants to merge 6 commits intofacebookresearch:mainfrom
aknayar:flat-ip-pano
Closed

Add IndexFlatIPPanorama#4787
aknayar wants to merge 6 commits intofacebookresearch:mainfrom
aknayar:flat-ip-pano

Conversation

@aknayar
Copy link
Contributor

@aknayar aknayar commented Jan 31, 2026

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.

@meta-cla meta-cla bot added the CLA Signed label Jan 31, 2026
@@ -0,0 +1,695 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just renamed test_flat_l2_panorama and added iteration over metric types.

}

// IndexFlatIPPanorama
if (match("FlatIPPanorama([0-9]+)(_[0-9]+)?")) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ideally I would replace this and FlatL2Panorama with just FlatPanorama (similar to how is done for IndexFlat), but I think that would break backward compatibility for those using index_factory("FlatL2Panorama...").

@meta-codesync
Copy link
Contributor

meta-codesync bot commented Feb 2, 2026

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

@meta-codesync meta-codesync bot closed this in cddb5c3 Feb 4, 2026
@meta-codesync
Copy link
Contributor

meta-codesync bot commented Feb 4, 2026

@alibeklfc merged this pull request in cddb5c3.

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.

2 participants