haystack icon indicating copy to clipboard operation
haystack copied to clipboard

Wrong calculation in table_qa

Open tiwari93 opened this issue 3 years ago • 2 comments

Hi,

For below table I search "total profit for delhi?" in table qa pipeline.

Delhi is not in the table but it's calculating sum of profit for all the rows.

image

It seems to be happen for each table if the search keyword is not in the table. Please suggest how to proceed?

tiwari93 avatar Sep 14 '22 12:09 tiwari93

Hi @tiwari93 This is a bit tricky. The models that can handle aggregation don't return no-answer and the confidence scores are also not reliable (else could have filtered based on it).

Maybe some filtering could be done before running the reader (on retriever scores). But not sure how much that would help.

@bogdankostic any thoughts on this?

bglearning avatar Sep 20 '22 10:09 bglearning

@bglearning Agreed its bit tricky. Trying to build one small application for table query that can handle some thousands of row. Lets see how far I go.

Thank you.

tiwari93 avatar Sep 20 '22 11:09 tiwari93

Hey @tiwari93 I'll close this issue for now. Please open a new one if you have more questions :slightly_smiling_face:

ZanSara avatar Oct 19 '22 10:10 ZanSara