FActScore icon indicating copy to clipboard operation
FActScore copied to clipboard

problem using the factscorer function with LLaMa

Open samuel-LP opened this issue 1 year ago • 1 comments

Good morning,

I was trying to use the factscorer function.

With this code : Screenshot 2024-01-14 at 15 55 19

I received this message error : Screenshot 2024-01-14 at 15 58 43

If I remove the openai_key=None in factscore = FactScorer(model_name="retrieval+llama", data_dir="/kaggle/working/"), I have this error : AssertionError: Please place your OpenAI APT Key in api.key.

I would like to know if I need to have an OpenAI key for using FactScore even if my model is LLaMa as you can see on the first picture.

Thank you!

samuel-LP avatar Jan 14 '24 15:01 samuel-LP

Hi @samuel-LP, the OpenAI key is needed for the atomic fact generation step (which uses davinci-003 in both workflows).

martiansideofthemoon avatar Feb 07 '24 12:02 martiansideofthemoon