Hacker News new | ask | show | jobs
by wharfjumper 1111 days ago
How is the similarity score calculated? Nike and Google have about the same similarity score relative to Apple.
1 comments

I embed descriptions using Open AI's "text-embedding-ada-002" embedding model[0]. Then I use cosign similarity to find the closest embeddings to that of the selected company[1].

[0]https://platform.openai.com/docs/guides/embeddings/embedding...

[1]https://scikit-learn.org/stable/modules/generated/sklearn.me...