Skip to content

docs: change cosine similarity to distance for hnswlib doc index#1476

Merged
anna-charlotte merged 2 commits into
mainfrom
docs-hnswlib-index-cosine
Apr 28, 2023
Merged

docs: change cosine similarity to distance for hnswlib doc index#1476
anna-charlotte merged 2 commits into
mainfrom
docs-hnswlib-index-cosine

Conversation

@anna-charlotte

@anna-charlotte anna-charlotte commented Apr 28, 2023

Copy link
Copy Markdown
Contributor

Change cosine similarity to distance in hnswlib doc index, because their 'cosine' actually refers to distance, not similarity.

Opened issue in hnswlib repo: nmslib/hnswlib#456

Signed-off-by: anna-charlotte <charlotte.gerhaher@jina.ai>
@anna-charlotte anna-charlotte linked an issue Apr 28, 2023 that may be closed by this pull request

@JoanFM JoanFM left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Can we add kind of a note highlighting this potential differences with other indexes? And also, a link or a formula to transform?

Signed-off-by: anna-charlotte <charlotte.gerhaher@jina.ai>
@github-actions

Copy link
Copy Markdown

📝 Docs are deployed on https://ft-docs-hnswlib-index-cosine--jina-docs.netlify.app 🎉

@JoanFM JoanFM marked this pull request as ready for review April 28, 2023 08:42
@anna-charlotte anna-charlotte merged commit 091b180 into main Apr 28, 2023
@anna-charlotte anna-charlotte deleted the docs-hnswlib-index-cosine branch April 28, 2023 08:57
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.

docs: hnswlib cosine distance

2 participants