tacigomess / TalkData

Repository of the final project for Le Wagon's Data Science course! This project was developed to showcase the skills acquired throughout the course, with a special focus on Generative AI.
1 stars 0 forks source link

Remove duplicated functions and check for choices #26

Closed tacigomess closed 2 months ago

tacigomess commented 2 months ago

There were duplicated functions that python was complaining, as well as check if we have a choices when return an answer. If not, we just return we could not process the question.

love-data commented 2 months ago

It's working better :tada:

  1. prompt :white_check_mark:
  2. prompt graph displayed (too tiny -> frontend change needed ) but interpretation not possible
  3. prompt :white_check_mark:

I've tried multiple times but it persists while the two other prompts work. I also checked the log file but can't see anything from it. Seems to be working all fine on the surface. So according to the new code through the latest commit https://github.com/tacigomess/TalkData/commit/5ed61677b30b23ca5e04c23915d5398eeb66e719 there's no "choices" keyword in the json_response. Btw when pretending to be just a user not knowing the code base I tried to interact by asking: "why can't you interpret this" and it gave me the weird response in the screenshot. I'll add it as a bug to be resolved. Screenshot 2024-06-26 102812 Screenshot 2024-06-26 103235 Screenshot 2024-06-26 103739 Screenshot 2024-06-26 104019 Screenshot 2024-06-26 104933