Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

From the text_to_sql example: [0]

My question: "Which waiter got second most total money from tips? create a jpeg with a bar chart of the total tips for each waiter."

Step 0 included a correct sql query. Step 1 included python code with matplotlib, which failed because matplotlib was not in the allowed imports. The system then pivoted to another python script which printed a bar plot with ## characters.

Final answer: The waiter with the second most total tips is Corey Johnson

Bar Chart of Total Tips for Each Waiter:

Michael Watts ################################################## (5.67)

Corey Johnson ########## (1.2)

Margaret James ######## (1.0)

[0] - https://github.com/huggingface/smolagents/blob/main/docs/sou...



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: