eval-suite


Nameeval-suite JSON
Version 2.1.4 PyPI version JSON
download
home_pageNone
SummaryUser-friendly evaluation framework: Eval Suite & Benchmarks: UHGEval, HaluEval, HalluQA, etc.
upload_time2024-11-12 07:16:03
maintainerNone
docs_urlNone
authorNone
requires_python>=3.10
licenseApache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and (b) You must cause any modified files to carry prominent notices stating that You changed the files; and (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. END OF TERMS AND CONDITIONS APPENDIX: How to apply the Apache License to your work. To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. Copyright 2023-2024 IAAR, Shanghai Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
keywords chinese uhgeval eval_suite evaluation hallucination llm
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <h1 align="center">
    🍄 UHGEval: Benchmarking the Hallucination of Chinese Large Language Models via Unconstrained Generation
</h1>

<p align="center">
    <i>What does this repository include?</i><br>
    <b><a href="./src/eval_suite/benchs/uhgeval/">UHGEval</a></b>: An unconstrained hallucination evaluation benchmark.<br>
    <b><a href="./src/eval_suite/">Eval Suite</a></b>: A user-friendly evaluation framework for hallucination tasks.<br>
    Eval Suite supports other benchmarks, such as <a href="https://github.com/OpenMOSS/HalluQA">HalluQA</a> and <a href="https://github.com/RUCAIBox/HaluEval">HaluEval</a>.
</p>

<p align="center">
    <a href="https://aclanthology.org/2024.acl-long.288/">
        <img alt="ACL Anthology Paper" src="https://img.shields.io/badge/ACL_Anthology-Paper-red.svg?logo=data:image/svg%2bxml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjwhLS0gQ3JlYXRlZCB3aXRoIElua3NjYXBlIChodHRwOi8vd3d3Lmlua3NjYXBlLm9yZy8pIC0tPgo8c3ZnCiAgIHhtbG5zOnN2Zz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgdmVyc2lvbj0iMS4wIgogICB3aWR0aD0iNjgiCiAgIGhlaWdodD0iNDYiCiAgIGlkPSJzdmcyIj4KICA8ZGVmcwogICAgIGlkPSJkZWZzNCIgLz4KICA8cGF0aAogICAgIGQ9Ik0gNDEuOTc3NTUzLC0yLjg0MjE3MDllLTAxNCBDIDQxLjk3NzU1MywxLjc2MTc4IDQxLjk3NzU1MywxLjQ0MjExIDQxLjk3NzU1MywzLjAxNTggTCA3LjQ4NjkwNTQsMy4wMTU4IEwgMCwzLjAxNTggTCAwLDEwLjUwMDc5IEwgMCwzOC40Nzg2NyBMIDAsNDYgTCA3LjQ4NjkwNTQsNDYgTCA0OS41MDA4MDIsNDYgTCA1Ni45ODc3MDgsNDYgTCA2OCw0NiBMIDY4LDMwLjk5MzY4IEwgNTYuOTg3NzA4LDMwLjk5MzY4IEwgNTYuOTg3NzA4LDEwLjUwMDc5IEwgNTYuOTg3NzA4LDMuMDE1OCBDIDU2Ljk4NzcwOCwxLjQ0MjExIDU2Ljk4NzcwOCwxLjc2MTc4IDU2Ljk4NzcwOCwtMi44NDIxNzA5ZS0wMTQgTCA0MS45Nzc1NTMsLTIuODQyMTcwOWUtMDE0IHogTSAxNS4wMTAxNTUsMTcuOTg1NzggTCA0MS45Nzc1NTMsMTcuOTg1NzggTCA0MS45Nzc1NTMsMzAuOTkzNjggTCAxNS4wMTAxNTUsMzAuOTkzNjggTCAxNS4wMTAxNTUsMTcuOTg1NzggeiAiCiAgICAgc3R5bGU9ImZpbGw6I2VkMWMyNDtmaWxsLW9wYWNpdHk6MTtmaWxsLXJ1bGU6ZXZlbm9kZDtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MTIuODk1NDExNDk7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46bWl0ZXI7c3Ryb2tlLW1pdGVybGltaXQ6NDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLWRhc2hvZmZzZXQ6MDtzdHJva2Utb3BhY2l0eToxIgogICAgIGlkPSJyZWN0MjE3OCIgLz4KPC9zdmc+Cg==">
    </a>
    <a href="https://arxiv.org/abs/2311.15296">
        <img alt="arXiv Paper" src="https://img.shields.io/badge/arXiv-Paper-red.svg?logo=arxiv">
    </a>
    <a href="https://huggingface.co/datasets/Ki-Seki/UHGEvalDataset">
        <img alt="Hugging Face UHGEvalDataset" src="https://img.shields.io/badge/Hugging_Face-UHGEvalDataset-yellow?logo=huggingface">
    </a>
    <br>
    <a href="https://github.com/IAAR-Shanghai/UHGEval-dataset">
        <img alt="Static Badge" src="https://img.shields.io/badge/GitHub-Dataset_Creation-blue?logo=github">
    </a>
    <a href="https://badge.fury.io/py/eval-suite">
        <img src="https://badge.fury.io/py/eval-suite.svg" alt="PyPI version">
    </a>
    <a href="https://opensource.org/license/apache-2-0/">
        <img alt="Apache 2.0 License" src="https://img.shields.io/badge/Apache_2.0-License-green.svg?logo=apache">
    </a>
</p>

## Quick Start

```bash
# Install Eval Suite
conda create -n uhg python=3.10
conda activate uhg
pip install eval-suite

# Run evaluations with OpenAI Compatible API
eval_suite eval openai \
    --model_name gpt-4o \
    --api_key your_api_key \
    --base_url https://api.openai.com/v1 \
    --evaluators ExampleQAEvaluator UHGSelectiveEvaluator

# Or run evaluations with Hugging Face Transformers
eval_suite eval huggingface \
    --model_name_or_path Qwen/Qwen2-0.5B-Instruct \
    --apply_chat_template \
    --evaluators ExampleQAEvaluator UHGSelectiveEvaluator

# After evaluation, you can gather statistics of the evaluation results
eval_suite stat

# List all available evaluators
eval_suite list

# Get help
eval_suite --help
```

> [!Tip]
> - Refer to [`demo.ipynb`](demo.ipynb) for more detailed examples.
> - Run `export HF_ENDPOINT=https://hf-mirror.com` to use the Chinese mirror if you cannot connect to Hugging Face.
> - SilliconFlow provides free API keys for many models, and you can apply for one at https://siliconflow.cn/pricing.

## UHGEval

UHGEval is a large-scale benchmark designed for evaluating hallucination in professional Chinese content generation. It builds on unconstrained text generation and hallucination collection, incorporating both automatic annotation and manual review.

**UHGEvalDataset.** UHGEval contains two dataset versions. The full version includes 5,141 data items, while a concise version with 1,000 items has been created for more efficient evaluation. Below is an example in UHGEvalDataset.

<details><summary><b>Example</b></summary>

```json
{
    "id": "num_000432",
    "headLine": "(社会)江苏首次评选消费者最喜爱的百种绿色食品",
    "broadcastDate": "2015-02-11 19:46:49",
    "type": "num",
    "newsBeginning": "  新华社南京2月11日电(记者李响)“民以食为天,食以安为先”。江苏11日发布“首届消费者最喜爱的绿色食品”评选结果,老山蜂蜜等100种食品获得消费者“最喜爱的绿色食品”称号。",
    "hallucinatedContinuation": "江苏是全国绿色食品生产最发达的省份之一。",
    "generatedBy": "InternLM_20B_Chat",
    "annotations": [
        "江苏<sep>合理",
        "全国<sep>合理",
        "绿色食品生产<sep>合理",
        "发达<sep>不合理,没有事实证明江苏是全国绿色食品生产发达的省份,但可以确定的是,江苏在绿色食品生产上有积极的实践和推动",
        "省份<sep>合理",
        "之一<sep>不合理,没有具体的事实证据表明江苏是全国绿色食品生产发达的省份之一"
    ],
    "realContinuation": "61家获奖生产企业共同签署诚信公约,共建绿色食品诚信联盟。",
    "newsRemainder": "61家获奖生产企业共同签署诚信公约,共建绿色食品诚信联盟。这是江苏保障食品安全、推动绿色食品生产的重要举措。\n  此次评选由江苏省绿色食品协会等部门主办,并得到江苏省农委、省委农工办、省工商局、省地税局、省信用办、省消协等单位大力支持。评选历时4个多月,经企业报名、组委会初筛、消费者投票等层层选拔,最终出炉的百强食品榜单由消费者亲自票选得出,网络、短信、报纸及现场投票共310多万份票数,充分说明了评选结果的含金量。\n  食品安全一直是社会关注的热点。此次评选过程中,组委会工作人员走街头、进超市,邀请媒体、消费者、专家深入产地开展绿色食品基地行,除了超市选购外,还搭建“诚信购微信商城”“中国移动MO生活绿色有机馆”等线上销售平台,开创江苏绿色食品“评展销”结合新局面。评选不仅宣传了江苏绿色品牌食品,更推动了省内绿色食品市场诚信体系的建立,为江苏绿色食品走向全国搭建了权威的平台。\n  江苏省农委副主任李俊超表示,绿色食品消费是当前社会重要的消费趋势。本次评选不仅为社会培育了食品安全诚信文化,也提高了消费者对食品质量和标识的甄别能力,实现了消费者和生产企业的“双赢”。\n  与会企业表示,能够入选“首届江苏消费者最喜爱的绿色食品”是消费者的信任和支持,他们将以此荣誉作为企业发展的新起点,严把食品质量关,推介放心安全的绿色品牌食品,促进产业稳定健康发展。(完)"
}
```

</details>

**Evaluation Methods.** UHGEval offers a variety of evaluation methods, including discriminative evaluation, generative evaluation, and selective evaluation.

| Evaluator                  | Metric                             | Description                                                                          |
| -------------------------- | ---------------------------------- | ------------------------------------------------------------------------------------ |
| `UHGDiscKeywordEvaluator`  | Average Accuracy                   | Given a keyword, the LLM determines whether it contains hallucination.               |
| `UHGDiscSentenceEvaluator` | Average Accuracy                   | Given a sentence, the LLM determines whether it contains hallucination.              |
| `UHGGenerativeEvaluator`   | BLEU-4, ROUGE-L, kwPrec, BertScore | Given a continuation prompt, the LLM generates a continuation.                       |
| `UHGSelectiveEvaluator`    | Accuracy                           | Given hallucinated text and unhallucinated text, the LLM selects the realistic text. |

## Eval Suite

To facilitate evaluation, we have developed a user-friendly evaluation framework called Eval Suite. Currently, Eval Suite supports common hallucination evaluation benchmarks, allowing for comprehensive evaluation of the same LLM with just one command as shown in the [Quick Start](#quick-start) section.

| Benchmark | Evaluator                                                                                                      | More Information                                                   |
| --------- | -------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------ |
| C-Eval    | `CEvalEvaluator`                                                                                               | [src/eval_suite/benchs/ceval](src/eval_suite/benchs/ceval)         |
| ExampleQA | `ExampleQAEvaluator`                                                                                           | [src/eval_suite/benchs/exampleqa](src/eval_suite/benchs/exampleqa) |
| HalluQA   | `HalluQAMCEvaluator`                                                                                           | [src/eval_suite/benchs/halluqa](src/eval_suite/benchs/halluqa)     |
| HaluEval  | `HaluEvalDialogEvaluator`<br>`HaluEvalQAEvaluator`<br>`HaluEvalSummaEvaluator`                                 | [src/eval_suite/benchs/halueval](src/eval_suite/benchs/halueval)   |
| UHGEval   | `UHGDiscKeywordEvaluator`<br>`UHGDiscSentenceEvaluator`<br>`UHGGenerativeEvaluator`<br>`UHGSelectiveEvaluator` | [src/eval_suite/benchs/uhgeval](src/eval_suite/benchs/uhgeval)     |

## Learn More

- [Eval Suite architecture](docs/architecture.md)
- [Add new benchmarks or model loaders](docs/add-bench-or-model.md)
- [Some experiment results](docs/experiments.md)

## Citation

```bibtex
@inproceedings{liang-etal-2024-uhgeval,
    title = "{UHGE}val: Benchmarking the Hallucination of {C}hinese Large Language Models via Unconstrained Generation",
    author = "Liang, Xun  and
      Song, Shichao  and
      Niu, Simin  and
      Li, Zhiyu  and
      Xiong, Feiyu  and
      Tang, Bo  and
      Wang, Yezhaohui  and
      He, Dawei  and
      Peng, Cheng  and
      Wang, Zhonghao  and
      Deng, Haiying",
    editor = "Ku, Lun-Wei  and
      Martins, Andre  and
      Srikumar, Vivek",
    booktitle = "Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)",
    month = aug,
    year = "2024",
    address = "Bangkok, Thailand",
    publisher = "Association for Computational Linguistics",
    url = "https://aclanthology.org/2024.acl-long.288",
    doi = "10.18653/v1/2024.acl-long.288",
    pages = "5266--5293",
}
```

## TODOs

<details><summary>Click me to show all TODOs</summary>

- [ ] feat: vLLM offline inference benchmarking
- [ ] feat(benchs): add TruthfulQA benchmark
</details>

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "eval-suite",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.10",
    "maintainer_email": null,
    "keywords": "Chinese, UHGEval, eval_suite, evaluation, hallucination, llm",
    "author": null,
    "author_email": "Shichao Song <songshichao517@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/fe/b4/97e2efa625147fca2991911dc42dc5608d4fadc5c45dc9ddd2868c5ac2db/eval_suite-2.1.4.tar.gz",
    "platform": null,
    "description": "\ufeff<h1 align=\"center\">\n    \ud83c\udf44 UHGEval: Benchmarking the Hallucination of Chinese Large Language Models via Unconstrained Generation\n</h1>\n\n<p align=\"center\">\n    <i>What does this repository include?</i><br>\n    <b><a href=\"./src/eval_suite/benchs/uhgeval/\">UHGEval</a></b>: An unconstrained hallucination evaluation benchmark.<br>\n    <b><a href=\"./src/eval_suite/\">Eval Suite</a></b>: A user-friendly evaluation framework for hallucination tasks.<br>\n    Eval Suite supports other benchmarks, such as <a href=\"https://github.com/OpenMOSS/HalluQA\">HalluQA</a> and <a href=\"https://github.com/RUCAIBox/HaluEval\">HaluEval</a>.\n</p>\n\n<p align=\"center\">\n    <a href=\"https://aclanthology.org/2024.acl-long.288/\">\n        <img alt=\"ACL Anthology Paper\" src=\"https://img.shields.io/badge/ACL_Anthology-Paper-red.svg?logo=data:image/svg%2bxml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjwhLS0gQ3JlYXRlZCB3aXRoIElua3NjYXBlIChodHRwOi8vd3d3Lmlua3NjYXBlLm9yZy8pIC0tPgo8c3ZnCiAgIHhtbG5zOnN2Zz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgdmVyc2lvbj0iMS4wIgogICB3aWR0aD0iNjgiCiAgIGhlaWdodD0iNDYiCiAgIGlkPSJzdmcyIj4KICA8ZGVmcwogICAgIGlkPSJkZWZzNCIgLz4KICA8cGF0aAogICAgIGQ9Ik0gNDEuOTc3NTUzLC0yLjg0MjE3MDllLTAxNCBDIDQxLjk3NzU1MywxLjc2MTc4IDQxLjk3NzU1MywxLjQ0MjExIDQxLjk3NzU1MywzLjAxNTggTCA3LjQ4NjkwNTQsMy4wMTU4IEwgMCwzLjAxNTggTCAwLDEwLjUwMDc5IEwgMCwzOC40Nzg2NyBMIDAsNDYgTCA3LjQ4NjkwNTQsNDYgTCA0OS41MDA4MDIsNDYgTCA1Ni45ODc3MDgsNDYgTCA2OCw0NiBMIDY4LDMwLjk5MzY4IEwgNTYuOTg3NzA4LDMwLjk5MzY4IEwgNTYuOTg3NzA4LDEwLjUwMDc5IEwgNTYuOTg3NzA4LDMuMDE1OCBDIDU2Ljk4NzcwOCwxLjQ0MjExIDU2Ljk4NzcwOCwxLjc2MTc4IDU2Ljk4NzcwOCwtMi44NDIxNzA5ZS0wMTQgTCA0MS45Nzc1NTMsLTIuODQyMTcwOWUtMDE0IHogTSAxNS4wMTAxNTUsMTcuOTg1NzggTCA0MS45Nzc1NTMsMTcuOTg1NzggTCA0MS45Nzc1NTMsMzAuOTkzNjggTCAxNS4wMTAxNTUsMzAuOTkzNjggTCAxNS4wMTAxNTUsMTcuOTg1NzggeiAiCiAgICAgc3R5bGU9ImZpbGw6I2VkMWMyNDtmaWxsLW9wYWNpdHk6MTtmaWxsLXJ1bGU6ZXZlbm9kZDtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MTIuODk1NDExNDk7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46bWl0ZXI7c3Ryb2tlLW1pdGVybGltaXQ6NDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLWRhc2hvZmZzZXQ6MDtzdHJva2Utb3BhY2l0eToxIgogICAgIGlkPSJyZWN0MjE3OCIgLz4KPC9zdmc+Cg==\">\n    </a>\n    <a href=\"https://arxiv.org/abs/2311.15296\">\n        <img alt=\"arXiv Paper\" src=\"https://img.shields.io/badge/arXiv-Paper-red.svg?logo=arxiv\">\n    </a>\n    <a href=\"https://huggingface.co/datasets/Ki-Seki/UHGEvalDataset\">\n        <img alt=\"Hugging Face UHGEvalDataset\" src=\"https://img.shields.io/badge/Hugging_Face-UHGEvalDataset-yellow?logo=huggingface\">\n    </a>\n    <br>\n    <a href=\"https://github.com/IAAR-Shanghai/UHGEval-dataset\">\n        <img alt=\"Static Badge\" src=\"https://img.shields.io/badge/GitHub-Dataset_Creation-blue?logo=github\">\n    </a>\n    <a href=\"https://badge.fury.io/py/eval-suite\">\n        <img src=\"https://badge.fury.io/py/eval-suite.svg\" alt=\"PyPI version\">\n    </a>\n    <a href=\"https://opensource.org/license/apache-2-0/\">\n        <img alt=\"Apache 2.0 License\" src=\"https://img.shields.io/badge/Apache_2.0-License-green.svg?logo=apache\">\n    </a>\n</p>\n\n## Quick Start\n\n```bash\n# Install Eval Suite\nconda create -n uhg python=3.10\nconda activate uhg\npip install eval-suite\n\n# Run evaluations with OpenAI Compatible API\neval_suite eval openai \\\n    --model_name gpt-4o \\\n    --api_key your_api_key \\\n    --base_url https://api.openai.com/v1 \\\n    --evaluators ExampleQAEvaluator UHGSelectiveEvaluator\n\n# Or run evaluations with Hugging Face Transformers\neval_suite eval huggingface \\\n    --model_name_or_path Qwen/Qwen2-0.5B-Instruct \\\n    --apply_chat_template \\\n    --evaluators ExampleQAEvaluator UHGSelectiveEvaluator\n\n# After evaluation, you can gather statistics of the evaluation results\neval_suite stat\n\n# List all available evaluators\neval_suite list\n\n# Get help\neval_suite --help\n```\n\n> [!Tip]\n> - Refer to [`demo.ipynb`](demo.ipynb) for more detailed examples.\n> - Run `export HF_ENDPOINT=https://hf-mirror.com` to use the Chinese mirror if you cannot connect to Hugging Face.\n> - SilliconFlow provides free API keys for many models, and you can apply for one at https://siliconflow.cn/pricing.\n\n## UHGEval\n\nUHGEval is a large-scale benchmark designed for evaluating hallucination in professional Chinese content generation. It builds on unconstrained text generation and hallucination collection, incorporating both automatic annotation and manual review.\n\n**UHGEvalDataset.** UHGEval contains two dataset versions. The full version includes 5,141 data items, while a concise version with 1,000 items has been created for more efficient evaluation. Below is an example in UHGEvalDataset.\n\n<details><summary><b>Example</b></summary>\n\n```json\n{\n    \"id\": \"num_000432\",\n    \"headLine\": \"\uff08\u793e\u4f1a\uff09\u6c5f\u82cf\u9996\u6b21\u8bc4\u9009\u6d88\u8d39\u8005\u6700\u559c\u7231\u7684\u767e\u79cd\u7eff\u8272\u98df\u54c1\",\n    \"broadcastDate\": \"2015-02-11 19:46:49\",\n    \"type\": \"num\",\n    \"newsBeginning\": \"  \u65b0\u534e\u793e\u5357\u4eac2\u670811\u65e5\u7535\uff08\u8bb0\u8005\u674e\u54cd\uff09\u201c\u6c11\u4ee5\u98df\u4e3a\u5929\uff0c\u98df\u4ee5\u5b89\u4e3a\u5148\u201d\u3002\u6c5f\u82cf11\u65e5\u53d1\u5e03\u201c\u9996\u5c4a\u6d88\u8d39\u8005\u6700\u559c\u7231\u7684\u7eff\u8272\u98df\u54c1\u201d\u8bc4\u9009\u7ed3\u679c\uff0c\u8001\u5c71\u8702\u871c\u7b49100\u79cd\u98df\u54c1\u83b7\u5f97\u6d88\u8d39\u8005\u201c\u6700\u559c\u7231\u7684\u7eff\u8272\u98df\u54c1\u201d\u79f0\u53f7\u3002\",\n    \"hallucinatedContinuation\": \"\u6c5f\u82cf\u662f\u5168\u56fd\u7eff\u8272\u98df\u54c1\u751f\u4ea7\u6700\u53d1\u8fbe\u7684\u7701\u4efd\u4e4b\u4e00\u3002\",\n    \"generatedBy\": \"InternLM_20B_Chat\",\n    \"annotations\": [\n        \"\u6c5f\u82cf<sep>\u5408\u7406\",\n        \"\u5168\u56fd<sep>\u5408\u7406\",\n        \"\u7eff\u8272\u98df\u54c1\u751f\u4ea7<sep>\u5408\u7406\",\n        \"\u53d1\u8fbe<sep>\u4e0d\u5408\u7406\uff0c\u6ca1\u6709\u4e8b\u5b9e\u8bc1\u660e\u6c5f\u82cf\u662f\u5168\u56fd\u7eff\u8272\u98df\u54c1\u751f\u4ea7\u53d1\u8fbe\u7684\u7701\u4efd\uff0c\u4f46\u53ef\u4ee5\u786e\u5b9a\u7684\u662f\uff0c\u6c5f\u82cf\u5728\u7eff\u8272\u98df\u54c1\u751f\u4ea7\u4e0a\u6709\u79ef\u6781\u7684\u5b9e\u8df5\u548c\u63a8\u52a8\",\n        \"\u7701\u4efd<sep>\u5408\u7406\",\n        \"\u4e4b\u4e00<sep>\u4e0d\u5408\u7406\uff0c\u6ca1\u6709\u5177\u4f53\u7684\u4e8b\u5b9e\u8bc1\u636e\u8868\u660e\u6c5f\u82cf\u662f\u5168\u56fd\u7eff\u8272\u98df\u54c1\u751f\u4ea7\u53d1\u8fbe\u7684\u7701\u4efd\u4e4b\u4e00\"\n    ],\n    \"realContinuation\": \"61\u5bb6\u83b7\u5956\u751f\u4ea7\u4f01\u4e1a\u5171\u540c\u7b7e\u7f72\u8bda\u4fe1\u516c\u7ea6\uff0c\u5171\u5efa\u7eff\u8272\u98df\u54c1\u8bda\u4fe1\u8054\u76df\u3002\",\n    \"newsRemainder\": \"61\u5bb6\u83b7\u5956\u751f\u4ea7\u4f01\u4e1a\u5171\u540c\u7b7e\u7f72\u8bda\u4fe1\u516c\u7ea6\uff0c\u5171\u5efa\u7eff\u8272\u98df\u54c1\u8bda\u4fe1\u8054\u76df\u3002\u8fd9\u662f\u6c5f\u82cf\u4fdd\u969c\u98df\u54c1\u5b89\u5168\u3001\u63a8\u52a8\u7eff\u8272\u98df\u54c1\u751f\u4ea7\u7684\u91cd\u8981\u4e3e\u63aa\u3002\\n  \u6b64\u6b21\u8bc4\u9009\u7531\u6c5f\u82cf\u7701\u7eff\u8272\u98df\u54c1\u534f\u4f1a\u7b49\u90e8\u95e8\u4e3b\u529e\uff0c\u5e76\u5f97\u5230\u6c5f\u82cf\u7701\u519c\u59d4\u3001\u7701\u59d4\u519c\u5de5\u529e\u3001\u7701\u5de5\u5546\u5c40\u3001\u7701\u5730\u7a0e\u5c40\u3001\u7701\u4fe1\u7528\u529e\u3001\u7701\u6d88\u534f\u7b49\u5355\u4f4d\u5927\u529b\u652f\u6301\u3002\u8bc4\u9009\u5386\u65f64\u4e2a\u591a\u6708\uff0c\u7ecf\u4f01\u4e1a\u62a5\u540d\u3001\u7ec4\u59d4\u4f1a\u521d\u7b5b\u3001\u6d88\u8d39\u8005\u6295\u7968\u7b49\u5c42\u5c42\u9009\u62d4\uff0c\u6700\u7ec8\u51fa\u7089\u7684\u767e\u5f3a\u98df\u54c1\u699c\u5355\u7531\u6d88\u8d39\u8005\u4eb2\u81ea\u7968\u9009\u5f97\u51fa\uff0c\u7f51\u7edc\u3001\u77ed\u4fe1\u3001\u62a5\u7eb8\u53ca\u73b0\u573a\u6295\u7968\u5171310\u591a\u4e07\u4efd\u7968\u6570\uff0c\u5145\u5206\u8bf4\u660e\u4e86\u8bc4\u9009\u7ed3\u679c\u7684\u542b\u91d1\u91cf\u3002\\n  \u98df\u54c1\u5b89\u5168\u4e00\u76f4\u662f\u793e\u4f1a\u5173\u6ce8\u7684\u70ed\u70b9\u3002\u6b64\u6b21\u8bc4\u9009\u8fc7\u7a0b\u4e2d\uff0c\u7ec4\u59d4\u4f1a\u5de5\u4f5c\u4eba\u5458\u8d70\u8857\u5934\u3001\u8fdb\u8d85\u5e02\uff0c\u9080\u8bf7\u5a92\u4f53\u3001\u6d88\u8d39\u8005\u3001\u4e13\u5bb6\u6df1\u5165\u4ea7\u5730\u5f00\u5c55\u7eff\u8272\u98df\u54c1\u57fa\u5730\u884c\uff0c\u9664\u4e86\u8d85\u5e02\u9009\u8d2d\u5916\uff0c\u8fd8\u642d\u5efa\u201c\u8bda\u4fe1\u8d2d\u5fae\u4fe1\u5546\u57ce\u201d\u201c\u4e2d\u56fd\u79fb\u52a8MO\u751f\u6d3b\u7eff\u8272\u6709\u673a\u9986\u201d\u7b49\u7ebf\u4e0a\u9500\u552e\u5e73\u53f0\uff0c\u5f00\u521b\u6c5f\u82cf\u7eff\u8272\u98df\u54c1\u201c\u8bc4\u5c55\u9500\u201d\u7ed3\u5408\u65b0\u5c40\u9762\u3002\u8bc4\u9009\u4e0d\u4ec5\u5ba3\u4f20\u4e86\u6c5f\u82cf\u7eff\u8272\u54c1\u724c\u98df\u54c1\uff0c\u66f4\u63a8\u52a8\u4e86\u7701\u5185\u7eff\u8272\u98df\u54c1\u5e02\u573a\u8bda\u4fe1\u4f53\u7cfb\u7684\u5efa\u7acb\uff0c\u4e3a\u6c5f\u82cf\u7eff\u8272\u98df\u54c1\u8d70\u5411\u5168\u56fd\u642d\u5efa\u4e86\u6743\u5a01\u7684\u5e73\u53f0\u3002\\n  \u6c5f\u82cf\u7701\u519c\u59d4\u526f\u4e3b\u4efb\u674e\u4fca\u8d85\u8868\u793a\uff0c\u7eff\u8272\u98df\u54c1\u6d88\u8d39\u662f\u5f53\u524d\u793e\u4f1a\u91cd\u8981\u7684\u6d88\u8d39\u8d8b\u52bf\u3002\u672c\u6b21\u8bc4\u9009\u4e0d\u4ec5\u4e3a\u793e\u4f1a\u57f9\u80b2\u4e86\u98df\u54c1\u5b89\u5168\u8bda\u4fe1\u6587\u5316\uff0c\u4e5f\u63d0\u9ad8\u4e86\u6d88\u8d39\u8005\u5bf9\u98df\u54c1\u8d28\u91cf\u548c\u6807\u8bc6\u7684\u7504\u522b\u80fd\u529b\uff0c\u5b9e\u73b0\u4e86\u6d88\u8d39\u8005\u548c\u751f\u4ea7\u4f01\u4e1a\u7684\u201c\u53cc\u8d62\u201d\u3002\\n  \u4e0e\u4f1a\u4f01\u4e1a\u8868\u793a\uff0c\u80fd\u591f\u5165\u9009\u201c\u9996\u5c4a\u6c5f\u82cf\u6d88\u8d39\u8005\u6700\u559c\u7231\u7684\u7eff\u8272\u98df\u54c1\u201d\u662f\u6d88\u8d39\u8005\u7684\u4fe1\u4efb\u548c\u652f\u6301\uff0c\u4ed6\u4eec\u5c06\u4ee5\u6b64\u8363\u8a89\u4f5c\u4e3a\u4f01\u4e1a\u53d1\u5c55\u7684\u65b0\u8d77\u70b9\uff0c\u4e25\u628a\u98df\u54c1\u8d28\u91cf\u5173\uff0c\u63a8\u4ecb\u653e\u5fc3\u5b89\u5168\u7684\u7eff\u8272\u54c1\u724c\u98df\u54c1\uff0c\u4fc3\u8fdb\u4ea7\u4e1a\u7a33\u5b9a\u5065\u5eb7\u53d1\u5c55\u3002\uff08\u5b8c\uff09\"\n}\n```\n\n</details>\n\n**Evaluation Methods.** UHGEval offers a variety of evaluation methods, including discriminative evaluation, generative evaluation, and selective evaluation.\n\n| Evaluator                  | Metric                             | Description                                                                          |\n| -------------------------- | ---------------------------------- | ------------------------------------------------------------------------------------ |\n| `UHGDiscKeywordEvaluator`  | Average Accuracy                   | Given a keyword, the LLM determines whether it contains hallucination.               |\n| `UHGDiscSentenceEvaluator` | Average Accuracy                   | Given a sentence, the LLM determines whether it contains hallucination.              |\n| `UHGGenerativeEvaluator`   | BLEU-4, ROUGE-L, kwPrec, BertScore | Given a continuation prompt, the LLM generates a continuation.                       |\n| `UHGSelectiveEvaluator`    | Accuracy                           | Given hallucinated text and unhallucinated text, the LLM selects the realistic text. |\n\n## Eval Suite\n\nTo facilitate evaluation, we have developed a user-friendly evaluation framework called Eval Suite. Currently, Eval Suite supports common hallucination evaluation benchmarks, allowing for comprehensive evaluation of the same LLM with just one command as shown in the [Quick Start](#quick-start) section.\n\n| Benchmark | Evaluator                                                                                                      | More Information                                                   |\n| --------- | -------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------ |\n| C-Eval    | `CEvalEvaluator`                                                                                               | [src/eval_suite/benchs/ceval](src/eval_suite/benchs/ceval)         |\n| ExampleQA | `ExampleQAEvaluator`                                                                                           | [src/eval_suite/benchs/exampleqa](src/eval_suite/benchs/exampleqa) |\n| HalluQA   | `HalluQAMCEvaluator`                                                                                           | [src/eval_suite/benchs/halluqa](src/eval_suite/benchs/halluqa)     |\n| HaluEval  | `HaluEvalDialogEvaluator`<br>`HaluEvalQAEvaluator`<br>`HaluEvalSummaEvaluator`                                 | [src/eval_suite/benchs/halueval](src/eval_suite/benchs/halueval)   |\n| UHGEval   | `UHGDiscKeywordEvaluator`<br>`UHGDiscSentenceEvaluator`<br>`UHGGenerativeEvaluator`<br>`UHGSelectiveEvaluator` | [src/eval_suite/benchs/uhgeval](src/eval_suite/benchs/uhgeval)     |\n\n## Learn More\n\n- [Eval Suite architecture](docs/architecture.md)\n- [Add new benchmarks or model loaders](docs/add-bench-or-model.md)\n- [Some experiment results](docs/experiments.md)\n\n## Citation\n\n```bibtex\n@inproceedings{liang-etal-2024-uhgeval,\n    title = \"{UHGE}val: Benchmarking the Hallucination of {C}hinese Large Language Models via Unconstrained Generation\",\n    author = \"Liang, Xun  and\n      Song, Shichao  and\n      Niu, Simin  and\n      Li, Zhiyu  and\n      Xiong, Feiyu  and\n      Tang, Bo  and\n      Wang, Yezhaohui  and\n      He, Dawei  and\n      Peng, Cheng  and\n      Wang, Zhonghao  and\n      Deng, Haiying\",\n    editor = \"Ku, Lun-Wei  and\n      Martins, Andre  and\n      Srikumar, Vivek\",\n    booktitle = \"Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)\",\n    month = aug,\n    year = \"2024\",\n    address = \"Bangkok, Thailand\",\n    publisher = \"Association for Computational Linguistics\",\n    url = \"https://aclanthology.org/2024.acl-long.288\",\n    doi = \"10.18653/v1/2024.acl-long.288\",\n    pages = \"5266--5293\",\n}\n```\n\n## TODOs\n\n<details><summary>Click me to show all TODOs</summary>\n\n- [ ] feat: vLLM offline inference benchmarking\n- [ ] feat(benchs): add TruthfulQA benchmark\n</details>\n",
    "bugtrack_url": null,
    "license": "Apache License Version 2.0, January 2004 http://www.apache.org/licenses/  TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION  1. Definitions.  \"License\" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.  \"Licensor\" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.  \"Legal Entity\" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, \"control\" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.  \"You\" (or \"Your\") shall mean an individual or Legal Entity exercising permissions granted by this License.  \"Source\" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.  \"Object\" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.  \"Work\" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).  \"Derivative Works\" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.  \"Contribution\" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, \"submitted\" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as \"Not a Contribution.\"  \"Contributor\" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.  2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.  3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.  4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:  (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and  (b) You must cause any modified files to carry prominent notices stating that You changed the files; and  (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and  (d) If the Work includes a \"NOTICE\" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License.  You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.  5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.  6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.  7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.  8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.  9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.  END OF TERMS AND CONDITIONS  APPENDIX: How to apply the Apache License to your work.  To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets \"[]\" replaced with your own identifying information. (Don't include the brackets!)  The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same \"printed page\" as the copyright notice for easier identification within third-party archives.  Copyright 2023-2024 IAAR, Shanghai  Licensed under the Apache License, Version 2.0 (the \"License\"); you may not use this file except in compliance with the License. You may obtain a copy of the License at  http://www.apache.org/licenses/LICENSE-2.0  Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.",
    "summary": "User-friendly evaluation framework: Eval Suite & Benchmarks: UHGEval, HaluEval, HalluQA, etc.",
    "version": "2.1.4",
    "project_urls": {
        "Repository": "https://github.com/IAAR-Shanghai/UHGEval"
    },
    "split_keywords": [
        "chinese",
        " uhgeval",
        " eval_suite",
        " evaluation",
        " hallucination",
        " llm"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "4f0468735ed493a1e64878b17faf070a7ef22ac8b846f42b737b08bfdbadb979",
                "md5": "59b3f95d9d51b91c01b86accf6b62f69",
                "sha256": "ce5ed2291e39846d130fce39fa302fae85036643a2f2ed59a2e11df0826d166d"
            },
            "downloads": -1,
            "filename": "eval_suite-2.1.4-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "59b3f95d9d51b91c01b86accf6b62f69",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.10",
            "size": 26979923,
            "upload_time": "2024-11-12T07:16:00",
            "upload_time_iso_8601": "2024-11-12T07:16:00.767466Z",
            "url": "https://files.pythonhosted.org/packages/4f/04/68735ed493a1e64878b17faf070a7ef22ac8b846f42b737b08bfdbadb979/eval_suite-2.1.4-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "feb497e2efa625147fca2991911dc42dc5608d4fadc5c45dc9ddd2868c5ac2db",
                "md5": "19faabec97c101f0e9075af8b77dbc50",
                "sha256": "24699ced2f26704ea4a29c61337dfeda5972e9fdef30519a1540f37914f1e096"
            },
            "downloads": -1,
            "filename": "eval_suite-2.1.4.tar.gz",
            "has_sig": false,
            "md5_digest": "19faabec97c101f0e9075af8b77dbc50",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10",
            "size": 26880676,
            "upload_time": "2024-11-12T07:16:03",
            "upload_time_iso_8601": "2024-11-12T07:16:03.916530Z",
            "url": "https://files.pythonhosted.org/packages/fe/b4/97e2efa625147fca2991911dc42dc5608d4fadc5c45dc9ddd2868c5ac2db/eval_suite-2.1.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-11-12 07:16:03",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "IAAR-Shanghai",
    "github_project": "UHGEval",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "eval-suite"
}
        
Elapsed time: 0.93898s