Web Crawler Tutorial Doesn't Tell Me How to Solve Issues

The Web Crawler tutorial works for me except I keep getting this error and there’s no documentation about how to fix it. Any advice?

AuthenticationError Traceback (most recent call last)
Cell In[36], line 3
1 import openai
----> 3 df[‘embeddings’] = df.text.apply(lambda x: openai.Embedding.create(input=x, engine=‘text-embedding-ada-002’)[‘data’][0][‘embedding’])
4 df.to_csv(‘processed/embeddings.csv’)
5 df.head()

Have you setup your API key detail in your environment?

1 Like