Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenAI-GPT3 search endpoint deprecated #5

Open
rajarajanvakil opened this issue Jun 28, 2022 · 4 comments
Open

OpenAI-GPT3 search endpoint deprecated #5

rajarajanvakil opened this issue Jun 28, 2022 · 4 comments

Comments

@rajarajanvakil
Copy link

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.

@Muennighoff
Copy link
Owner

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.

@GouthamVicky
Copy link

GouthamVicky commented Jun 28, 2022

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 deprecation@openai.com if you have any questions.

  • Python version - 3.9
  • Open AI pip version - 0.20.0

Thanks

@Muennighoff
Copy link
Owner

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.

@GouthamVicky
Copy link

yeah it's working fine now, Thanks for the quick response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants