Skip to content

FaissKnnVectorsFormat COSINE similarity support #16064

Description

@iprithv

right now, FaissKnnVectorsFormat only supports DOT_PRODUCT and EUCLIDEAN. If we try to use COSINE, it fails at runtime with an UnsupportedOperationException. since cosine similarity is commonly used, and Lucene already supports it we should add it. also, the base test suite (BaseKnnVectorsFormatTestCase) includes cosine, so Faiss isn’t really on par with other formats like HNSW yet.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions