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

I was working through the tutorial and it breaks at this line #10

Open
ideaguy3d opened this issue Mar 18, 2024 · 4 comments
Open

I was working through the tutorial and it breaks at this line #10

ideaguy3d opened this issue Mar 18, 2024 · 4 comments

Comments

@ideaguy3d
Copy link

df['embeddings'] = df.text.apply(lambda x: openai.Embedding.create(input=x, engine='text-embedding-ada-002')['data'][0]['embedding'])

... the parameter engine is wrong and the returned object is traversed incorrectly.

@kolsan
Copy link

kolsan commented Apr 28, 2024

the same here

@ideaguy3d
Copy link
Author

ideaguy3d commented Jun 12, 2024

Have you figured out a fix @kolsan ?

@kolsan
Copy link

kolsan commented Jun 12, 2024

Not yet

@Aveek05
Copy link

Aveek05 commented Aug 26, 2024

use model instead --> client.embeddings.create(input=question, model='text-embedding-ada-002')['data'][0]['embedding']

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants