sgpt
sgpt copied to clipboard
OpenAI-GPT3 search endpoint deprecated
Hello there, the search end point(purpose) as been deprecated is there any alternative solution on this. This happens at CE-BEIR notebook. Thanks in advance.
Hey are you reffering to the crossencoder_openai.ipynb
notebook?
You can still use the OpenAI search endpoint using the workaround in this script using their completion endpoint.
Hello , Even if we try to run this script following error occurs
openai.error.InvalidRequestError: You do not have access to the search endpoint, likely because it is deprecated. Please see https://community.openai.com/t/answers-classification-search-endpoint-deprecation/18532 for more information and reach out to [email protected] if you have any questions.
- [ ] Python version - 3.9
- [ ] Open AI pip version - 0.20.0
Thanks
Yeah you probably need to remove the print(openai.Search.create(model="davinci", query=query, documents=docs))
part & the BM25 is missing I think.
It may be cheaper for you to just use the Cross-Encoder method we propose in this repo here. Or use a Bi-Encoder with embeddings.
yeah it's working fine now, Thanks for the quick response