Jupyter Notebook error


I’m trying to play around with the Jupyter notebook but I’m getting this error:

NameError Traceback (most recent call last)
Cell In[7], line 11
1 prompt = f"“”
2 Your task is to generate a short summary of a product
3 review from an ecommerce site.
8 Review: {prod_review}
9 “”"
—> 11 response = get_completion(prompt)
12 print(response)

NameError: name ‘get_completion’ is not defined

How to resolve this? Thank you!

you ran the cells at the top of the notebook that include the import and the def get_completion(): , right?

Thank you for this! :slight_smile:

1 Like