GAIR-NLP / factool

FacTool: Factuality Detection in Generative AI
https://ethanc111.github.io/factool_website/
Apache License 2.0
804 stars 62 forks source link

An error of google serper #25

Closed RZFan525 closed 1 year ago

RZFan525 commented 1 year ago

An error is always raised when I use factool to detect kbqa task after finishing 1k times. AttributeError: 'ClientResponseError' object has no attribute 'get'

image

I don't know whether is the problem of my SERPER_API_KEY.

EthanC111 commented 1 year ago

@RZFan525 Thank you for bringing up this issue! Does this problem occur regardless of the response provided? If so, it's probably related to the API key issue. If I remember correctly, SERPER provides 2,500 free credits.

Let me know if you have more questions!

RZFan525 commented 1 year ago

Thank you for your reply. I see my account. The reason is that I had spent all my credits.

C-YEE00 commented 10 months ago

Do you need SCRAPER_API_KEY to detect kbqa tasks?

steffichern commented 9 months ago

Hi @C-YEE00, sorry for the late response. SCRAPER_API_KEY is only used for Scientific Literature Review tasks, not the KBQA tasks. Hope that helps!