I was able to find the module in version 0.28 of openai (current version is 1.1, I think). I downloaded the module and will simply incorporate into my code but this is very odd why OpenAI thinks distance calcs are not needed for sorting and selecting the most relevant content vectors. Strange.
Thanks – I’m running into this as well and it’s screwing me over as I’m not as dialed in as a coder as most users of these modules. We only encountered the problem because my co-worker upgraded OpenAI modules on the computer and found we can no longer call cosine_similarity or Get_embedding – at this point I am not upgrading until I understand this breakdown. Can you give me a sense of how you “downloaded the module from version 0.28” but still ensured you could call it in Python? I’m a quick study, but a bit more of a novice using Python. Thanks!