News for hackers. Stuff that matters.
Re:Show HN: Similarity Search Engine for Equities by wharfjumper on Saturday June 03, 2023 @08:57PM (#36181992)
How is the similarity score calculated? Nike and Google have about the same similarity score relative to Apple.
Re:Show HN: Similarity Search Engine for Equities by ggordbegli on Saturday June 03, 2023 @09:12PM (#36182067)
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...