Skip to content

Similarity Metric Strategy #64

@luis-gasparschroeder

Description

@luis-gasparschroeder

Description

The current vCache version is not very flexible regarding the similarity metric used for the Vector Database and embedding comparison.

Impact

  • Who: Users and developer
  • What: Similarity evaluation
  • Why: Extendability

Proposed Solution

The user should be able to easily switch between different similarity metrics and add news ones. Our code should not rely on string comparisons like '.similarty == "cosine"', and instead use class and enum definitions.

Acceptance Criteria

  • Followed coding conventions
  • Implemented or updated tests
  • Embedding similarity strategy
  • Cosine similarity
  • L2 distance
  • Documentation update

Risks & Dependencies

Dependencies with the vector database implementation.

Additional Context

--

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions