Skip to content

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.

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