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

Bug in the clustering jupyter example #110

Closed
giosilvi opened this issue Jul 11, 2022 · 3 comments
Closed

Bug in the clustering jupyter example #110

giosilvi opened this issue Jul 11, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@giosilvi
Copy link

giosilvi commented Jul 11, 2022

In the following code in the clustering notebook example, at the first cell:

df['text-similarity-babbage-001'] = df.babbage_similarity.apply(eval).apply(np.array)
matrix = np.vstack(df.babbage_similarity.values)

the second line should be the following: matrix = np.vstack(df['text-similarity-babbage-001'].values)

@ted-at-openai
Copy link
Collaborator

Thanks! I'll fix it this week.

@hallacy
Copy link
Collaborator

hallacy commented Jul 28, 2022

Hi @giosilvi, does the commit above fix your issue?

@hallacy hallacy added the bug Something isn't working label Jul 28, 2022
@giosilvi
Copy link
Author

Yes, that fixes it!

techthiyanes pushed a commit to techthiyanes/openai-python that referenced this issue Oct 2, 2023
* Hallacy/pickleable exceptions (openai#109)

* Exceptions in python are hard to pickle.  Make Exceptions pickleable

* Remove debug

* Added tests

* nit

* Change embeddings call to openai.Embedding.create (openai#110)

* Change embeddings call to openai.Embedding.create

* And update model names

* Untweak notebook

* Support encoded embeddings response (openai#111)

* Support encoded embeddings response

* Removed imports

* Add a couple of comments

* Typo

* Remove CA bundle (openai#112)

* Remove CA bundle

* Removed some references
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants