ankane / neighbor

Nearest neighbor search for Rails
MIT License
589 stars 14 forks source link

Update OpenAI quickstart to use Cosine like their documentation #5

Closed dimroc closed 1 year ago

dimroc commented 1 year ago

In the OpenAI section in README, inner_product is used. Let's use cosine instead: https://platform.openai.com/docs/guides/embeddings/limitations-risks

ankane commented 1 year ago

Hi @dimroc, thanks for the suggestion, but inner product will be equivalent and slightly faster, so I'd like to keep it for now.