Oct 15, 2022
Nice example when it was written, however in 2022 OpenAI deprecated the answers endpoint. Sadly, that's the nature of progress. Look here https://beta.openai.com/docs/guides/answers
Use this approach https://github.com/openai/openai-cookbook/blob/main/examples/Question_answering_using_embeddings.ipynb