AkariAsai / self-rag

This includes the original implementation of SELF-RAG: Learning to Retrieve, Generate and Critique through self-reflection by Akari Asai, Zeqiu Wu, Yizhong Wang, Avirup Sil, and Hannaneh Hajishirzi.
https://selfrag.github.io/
MIT License
1.76k stars 162 forks source link

Requirement Confilicts #26

Closed zlwang-cs closed 9 months ago

zlwang-cs commented 9 months ago

Hi,

Thanks for the great work! I am trying to install the requirements at you showed in the repo. However, I encountered the following error: factscore 0.1.5 depends on openai<0.28.0 and >=0.27.7.

I understand it could be difficult to maintain the compatible environment given that the dependencies are updating so quickly. It would be great if you can specify a bit in the requirement.txt to make the installation more smoothly.

Thanks!

zlwang-cs commented 9 months ago

Some follow ups: it seems that many dependencies are updated after the release of the repo. I am thinking maybe it is helpful to denote the specific verison of the packages used in the project.

fate-ubw commented 9 months ago

yes I met the same problem when I install the lib. If you can specify the version of all package, this problem will be fixed.

AkariAsai commented 9 months ago

Hi, thank you so much for reporting, and your suggetions! Would you be able to list the versions you are using? @zlwang-cs @fate-ubw I will update the README accordingly! I updated the conda environment I was using for this project recently, so some packaeges may not be the same as the original code base...

zlwang-cs commented 9 months ago

@AkariAsai Hi, I list the package versions in the pull request. Let me know if the environment works. Feel free to update it to improve the compatibility.

AkariAsai commented 9 months ago

I merged the PR. Thank you so much!!