C1M5 How to debug decide_task_nature?

I have been getting “Error count = 5” in the decide_task_nature function’s unit test, but I do not understand what is wrong with the prompt. The outputs I’m getting for the demonstration queries after the unit test are shown below. I have no idea how “based” and “I” are being considered as labels. How do I debug this?

Query: Give me two sneakers with vibrant colors. Label Predicted: Based. Correct Label: technical Total Tokens: 153
Query: What are the most expensive clothes you have in your catalogue? Label Predicted: Based. Correct Label: technical Total Tokens: 157
Query: I have a green Dress and I like a suggestion on an accessory to match with it. Label Predicted: I. Correct Label: creative Total Tokens: 163
Query: Give me three trousers with vibrant colors you have in your catalogue. Label Predicted: Based. Correct Label: technical Total Tokens: 158
Query: Create a look for a woman walking in a park on a sunny day. It must be fresh due to hot weather. Label Predicted: I. Correct Label: creative Total Tokens: 169

hi @0rb

can you post screenshot of the test results here

hi @0rb

after reviewing your codes, i think you missed an instruction which mentions the solution need to fewer token than 150 tokens for every query. Check in the if not simplied in the query to be analysed statement there is a statement added further, add that in the else statement of query to be analysed too.

Screenshot hint of what solution include :backhand_index_pointing_down:t2:

let me know if you are still encountering error, if yes the. post screenshot of the error (probably than we might need to review your previous grade functions codes too.

Regards

DP

@0rb

you need to do the correction for fewer token than 150 where you are failing the decision task, as I already mentioned here in my previous comment.

in the code line

query to be analysed: {query} AFTER THIS STRING MENTION THE SAME STATEMENT THAT IS MENTIONED IN THE IF STATEMENT AT THE END OF THE QUERY string IN THE SAME GRADE FUNCTION CELL.

Regards

DP