4 ms·
How is the similarity score calculated? Nike and Google have about the same similarity score relative to Apple.
by wharfjumper 3y ago
How is the similarity score calculated? Nike and Google have about the same similarity score relative to Apple.
- ggordbegli 3y agoI 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-models https://platform.openai.com/docs/guides/embeddings/embedding... [1]https://scikit-learn.org/stable/modules/generated/sklearn.metrics.pairwise.cosine_similarity.html https://scikit-learn.org/stable/modules/generated/sklearn.me...