openai / web-crawl-q-and-a-example

Learn how to crawl your website and build a Q/A bot with the OpenAI API
https://platform.openai.com/docs/tutorials/web-qa-embeddings
271 stars 181 forks source link

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

Open ideaguy3d opened 6 months ago

ideaguy3d commented 6 months ago

https://github.com/openai/web-crawl-q-and-a-example/blob/84c887fdf36fb2101516e9c5db2c6d6db0d1c5b9/web-qa.py#L302

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

kolsan commented 5 months ago

the same here

ideaguy3d commented 3 months ago

Have you figured out a fix @kolsan ?

kolsan commented 3 months ago

Not yet

Aveek05 commented 1 month ago

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