paper-qa icon indicating copy to clipboard operation
paper-qa copied to clipboard

key_filter argument

Open haegi-d opened this issue 2 years ago • 1 comments

When using the key_filter argument in docs.query() I do still get answers from more sources than just from the documents with the specified keys. What could be the issue here?

haegi-d avatar May 30 '23 13:05 haegi-d

Are you setting key_filter=True and you're finding that some of the sources have keys that are not present in the answer.key_filter?

Can you print out answer.key_filter and [c.key for c in answer.contexts] to confirm there is disagreement? Thanks!

whitead avatar Jun 04 '23 01:06 whitead