#AttributeError: module 'numpy' has no attribute '_no_nep50_warning'

5 messages ยท Page 1 of 1 (latest)

noble fulcrum
#

Trying to build embeddings following this tutorial: https://platform.openai.com/docs/tutorials/web-qa-embeddings

Stuck on the step Turning the embeddings into a NumPy array

import numpy as np
from openai.embeddings_utils import distances_from_embeddings
df=pd.read_csv('processed/embeddings.csv', index_col=0)
df['embeddings'] = df['embeddings'].apply(eval).apply(np.array)
df.head()

This script fails while importing distances_from_embeddings with error:
AttributeError: module 'numpy' has no attribute '_no_nep50_warning'

Please help!

flat escarp
#

Try downgrading numpy to version 1.23.5

noble fulcrum
#

Resolved with Kernel restart

noble fulcrum