← 开源
google-deepmind

long-form-factuality

Benchmarking long-form factuality in large language models. Original code for our paper "Long-form factuality in large language models".

AI EngineeringTest & guardPython
在 GitHub 打开
增长势头
+024 小时新增 Star0.0%
695
Star
86
Fork
+3
本周
2
贡献者
创建于 2024-03-25 · 更新于 2026-10-15 · 今日第 14886 名
主要开发者
JerryWeiAIchengrunyang

google-deepmind/long-form-factuality 排名第 14,886,有 695 个星标。

同类别比较

google-deepmind/long-form-factuality 排名第 14,886,此处有 8 个同类条目;cyanheads/obsidian-mcp-server 排名第 14,885。

同类别比较
名称排名指标
if-ai/ComfyUI-IF_AI_tools14,854
语言:
Python
星标数:
698
分叉数:
55
简介:
ComfyUI-IF_AI_tools is a set of custom nodes for ComfyUI that allows you to generate prompts using a local Large Language Model (LLM) via Ollama. This tool enables you to enhance your image generation workflow by leveraging the power of language models.
itwanger/PaiAgent14,856
语言:
Java
星标数:
698
分叉数:
138
简介:
🔥轻量级的AI工作流编排系统,类似dify、n8n,全程使用Vibe Coding,AI工具为Qoder+CLI。涉及到的技术栈包括SpringAI、LangGraph4J、SSE、MinIO、DAG自定引擎等。
algolia/algoliasearch-client-php14,874
语言:
PHP
星标数:
696
分叉数:
112
简介:
⚡️ A fully-featured and blazing-fast PHP API client to interact with Algolia.
cyanheads/obsidian-mcp-server14,885
语言:
TypeScript
星标数:
695
分叉数:
105
简介:
Read, write, search, and surgically edit Obsidian vault notes, tags, and frontmatter via MCP. STDIO or Streamable HTTP.
strands-agents/sdk-typescript14,892
语言:
TypeScript
星标数:
695
分叉数:
103
简介:
A model-driven approach to building AI agents in just a few lines of code.
HKUDS/AnyTool14,894
语言:
Python
星标数:
694
分叉数:
94
简介:
"AnyTool: Universal Tool-Use Layer for AI Agents"
Tanuki/tanuki.py14,896
语言:
Python
星标数:
694
分叉数:
27
简介:
Prompt engineering for developers
anthropics/cwc-long-running-agents14,897
语言:
Shell
星标数:
694
分叉数:
77
关键参数与规格
关键参数与规格
参数值
语言Python
类别AI Engineering
子类别Test & guard
关键词Factuality
星标数695
分叉数86
贡献者2
创建日期2024-03-25
更新日期2026-10-15
1 天星标数0
7 天星标数3
排名14,886
上次排名6,606
排名变化-8,280
7 天星标排名7,290
上次 7 天星标排名7,318
7 天星标排名变化28
总星标排名14,963
上次总星标排名14,926
总星标排名变化-37
国家UK
README 摘录

Long-Form Factuality in Large Language Models This is the official code release accompanying our paper "Long-form factuality in large language models". **LongFact**: A prompt set of 2,280 fact-seeking prompts requiring long-form responses. **Search-Augmented Factuality Evaluator (SAFE)**: Automatic evaluation of model responses in long-form factuality settings. **F1@K**: Extending F1 score to long-form settings using recall from human-preferred length. **Experimentation pipeline** for benchmarking OpenAI and Anthropic models using LongFact + SAFE. Installation First

, clone our GitHub repository. Then navigate to the newly-created folder. All external package requirements are listed in . To install all packages, and run the following command. Usage LongFact The full prompt set for LongFact is available in the folder. See the README in for more details about the dataset. To run the data-generation pipeline that we used to generate LongFact, use the following command. Refer to the README in for additional details about the data-generation pipeline. SAFE

Our full implementation of SAFE is located in . See the README in for more information about how SAFE works. To run the pipeline for evaluating SAFE against FActScore human annotations, use the following command. Refer to the README in for additional details about this experiment. Benchmarking models To benchmark OpenAI and Anthropic models, first add your API keys to (see README in for more information; be sure not to publish these keys). To obtain model responses for a given prompt

set, use the following command. Refer to the README in for additional details about our main experimentation pipeline. Next, to evaluate prompt-response pairs from our main experimentation pipeline using SAFE, use the following command, making sure to add the path to the file containing the prompt-response pairs to be evaluated to the argument. Unit Tests Each file in this directory has a corresponding unit test with the suffix (e. Run commands for individual tests are shown in the

unit test files. To run all unit tests, use the following command. Citing this work If you find our code useful, please cite our paper: License and disclaimer Copyright 2024 DeepMind Technologies Limited All software is licensed under the Apache License, Version 2. 0); you may not use this file except in compliance with the Apache 2. 0 license at: All other materials are licensed under the Creative Commons Attribution 4. You may obtain a copy of the CC-BY

license at: Unless required by applicable law or agreed to in writing, all software and materials distributed here under the Apache 2. 0 or CC-BY licenses are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the licenses for the specific language governing permissions and limitations under those licenses.

常见问题

记录了多少星标和分叉?

google-deepmind/long-form-factuality 有 695 个星标和 86 个分叉。

仓库排名是多少?

google-deepmind/long-form-factuality 排名第 14,886。

记录的语言和类别是什么?

google-deepmind/long-form-factuality 有 695 个星标,语言为 Python,类别为 AI Engineering。

哪个仓库排名最接近?

google-deepmind/long-form-factuality 与 cyanheads/obsidian-mcp-server 比较,后者排名第 14,885,有 695 个星标。

README

Long-Form Factuality in Large Language Models

This is the official code release accompanying our paper "Long-form factuality in large language models". This repository contains:

  1. LongFact: A prompt set of 2,280 fact-seeking prompts requiring long-form responses.
  2. Search-Augmented Factuality Evaluator (SAFE): Automatic evaluation of model responses in long-form factuality settings.
  3. F1@K: Extending F1 score to long-form settings using recall from human-preferred length.
  4. Experimentation pipeline for benchmarking OpenAI and Anthropic models using LongFact + SAFE.

Installation

First, clone our GitHub repository.

git clone https://github.com/google-deepmind/long-form-factuality.git

Then navigate to the newly-created folder.

cd long-form-factuality

Next, create a new Python 3.10+ environment using conda.

conda create --name longfact python=3.10

Activate the newly-created environment.

conda activate longfact

All external package requirements are listed in requirements.txt. To install all packages, and run the following command.

pip install -r requirements.txt

Usage

LongFact

The full prompt set for LongFact is available in the longfact/ folder. See the README in longfact/ for more details about the dataset.

To run the data-generation pipeline that we used to generate LongFact, use the following command. Refer to the README in data_creation/ for additional details about the data-generation pipeline.

python -m data_creation.pipeline

SAFE

Our full implementation of SAFE is located in eval/safe/. See the README in eval/safe/ for more information about how SAFE works.

To run the pipeline for evaluating SAFE against FActScore human annotations, use the following command. Refer to the README in eval/ for additional details about this experiment.

python -m eval.correlation_vs_factscore

Benchmarking models

To benchmark OpenAI and Anthropic models, first add your API keys to common/shared_config.py (see README in common/ for more information; be sure not to publish these keys). To obtain model responses for a given prompt set, use the following command. Refer to the README in main/ for additional details about our main experimentation pipeline.

python -m main.pipeline

Next, to evaluate prompt-response pairs from our main experimentation pipeline using SAFE, use the following command, making sure to add the path to the .json file containing the prompt-response pairs to be evaluated to the --result_path argument.

python -m eval.run_eval \
    --result_path=

Unit Tests

Each file in this directory has a corresponding unit test with the _test suffix (e.g., file.py would have file_test.py for unit tests). Run commands for individual tests are shown in the unit test files. To run all unit tests, use the following command.

python -m unittest discover -s ./ -p "*_test.py"

Citing this work

If you find our code useful, please cite our paper:

@misc{wei2024long,
  title={Long-form factuality in large language models},
  author={Wei, Jerry and Yang, Chengrun and Song, Xinying and Lu, Yifeng and Hu, Nathan and Huang, Jie and Tran, Dustin and Peng, Daiyi and Liu, Ruibo and Huang, Da and Du, Cosmo and Le, Quoc V.},
  year={2024},
  url={https://arxiv.org/abs/2403.18802},
}

License and disclaimer

Copyright 2024 DeepMind Technologies Limited

All software is licensed under the Apache License, Version 2.0 (Apache 2.0); you may not use this file except in compliance with the Apache 2.0 license. You may obtain a copy of the Apache 2.0 license at: https://www.apache.org/licenses/LICENSE-2.0

All other materials are licensed under the Creative Commons Attribution 4.0 International License (CC-BY). You may obtain a copy of the CC-BY license at: https://creativecommons.org/licenses/by/4.0/legalcode

Unless required by applicable law or agreed to in writing, all software and materials distributed here under the Apache 2.0 or CC-BY licenses are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the licenses for the specific language governing permissions and limitations under those licenses.

This is not an official Google product.

排名相邻
同类项目