Tip Of AI
Discover what you can do with AI
FacTool is a tool-augmented framework designed for detecting factual errors in texts that are generated by large language models like ChatGPT. It includes the source code and plugin configuration for this purpose. FacTool supports four tasks: knowledge-based QA, code generation, mathematical reasoning, and scientific literature review. For knowledge-based QA, FacTool is capable of detecting factual errors in this type of question answering. It can also identify execution errors in code generation and calculation errors in mathematical reasoning. Additionally, FacTool has the ability to detect hallucinated scientific literatures in scientific literature reviews. The repository provides a factuality leaderboard that displays the factual accuracy of different chatbots evaluated using FacTool. The leaderboard shows the weighted claim-level accuracy and response-level accuracy for various large language models such as GPT-4, ChatGPT, Claude-v1, Bard, and Vicuna-13B. Installation of FacTool can be done either as a general user by running "pip install factool" or as a developer by cloning the GitHub repository and running "pip install -e .". The repository also provides detailed usage instructions for each task, including knowledge-based QA, code, math, and scientific literature review. Moreover, there is a plugin configuration for ChatGPT integration with FacTool. The repository offers a demo, videos, and citation information for further reference.