Simple answers example using embeddings

Hi, could anyone provide a VERY simple, “Hello World” example of an answers script in python, using embeddings? I tried following the Olympics example in the cookbook, but it’s way too complicated. I just need a script that simply takes a small CSV, and answers questions about it.
Thanks

2 Likes

Are you looking to use the OpenAI API only or just a solution in general? Can you provide a small sample of your CSV?

Hi Nelson, I was able to figure it out, thanks

1 Like

can you post your solution? I am struggling as well

2 Likes

@heiko Can you post sample CSV?

gladly - I am trying around with some publicly available legal text like this

@heiko

Thanks for uploading the file, but I am having issues opening it up as a CSV.
Seems like there is something wrong with the formatting itself. Do you have a cleaned version of the dataset?

1 Like

sorry - must have been the wrong file. this one imports correctly in excel:

Thanks for taking the time

Still no luck with the file, so I created a template where you can just fill in the Questions and Answering…
See GSheet+GPT3 - Google Sheets

1 Like

Also make sure you enter the Open AI Key in the settings page

1 Like

That so cool. Thanks !

1 Like