百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
P

PoG

> 编程语言
开源

[NeurIPS 2024] Plan-on-Graph: 在知识图谱上自动纠正的自适应规划算法 大语言模型

99 stars0 点赞2 次浏览
访问官网GitHub

工具介绍

[NeurIPS 2024] Plan-on-Graph: 在知识图谱上自动纠正的自适应规划算法 大语言模型

[NeurIPS 2024] Plan-on-Graph: Self-Correcting Adaptive Planning of Large Language Model on Knowledge Graphs

Codes for the paper titled "Plan-on-Graph: Self-Correcting Adaptive Planning of Large Language Model on Knowledge Graphs", published in Proceedings of the 38th Annual Conference on Neural Information Processing Systems (NeurIPS'2024).

Knowledge Graph and Datasets

Before executing PoG, you need to deploy Freebase on your local machine. Please follow the installation instructions. We utilize CWQ, WebQSP, and GrailQA datasets to evaluate PoG. These datasets are located in data/ with aliases in cope_alias/.

Code

Our codes are modified based on the public project ToG. We appreciate the authors for making ToG open-sourced.

Running

After installing all necessary configurations, you can execute PoG using the following command:

bash
python main_freebase.py \  
--dataset cwq \ # the dataset
--max_length 4096 \ # the max length of LLMs output
--temperature_exploration 0.3 \ # the temperature in exploration stage
--temperature_reasoning 0.3 \ # the temperature in reasoning stage
--depth 4 \ # the search depth
--remove_unnecessary_rel True \ # whether removing unnecessary relations
--LLM_type gpt-3.5-turbo \ # the LLM
--opeani_api_keys sk-xxxx \ # your own api keys

All prompts used in experiments are in the prompt_list.py file.

Evaluation

We use Exact Match as the evaluation metric. After obtaining the final result file, please evaluate the results using the following command:

bash
python eval.py \  
--dataset cwq \ # the dataset
--output_file PoG_cwq_gpt-3.5-turbo.jsonl \ # the result file

Citation

If you are interested in or inspired by this work, please kindly cite it as follows:

bash
@inproceedings{chen2024pog,
	title={Plan-on-Graph: Self-Correcting Adaptive Planning of Large Language Model on Knowledge Graphs},
	author={Chen, Liyi and Tong, Panrong and Jin, Zhongming and Sun, Ying and Ye, Jieping and Xiong, Hui},
	booktitle={Proceedings of the 38th Conference on Neural Information Processing Systems},
	year={2024}
}

Claims

This project is licensed under the Apache 2.0 license. The project assumes no legal responsibility for any outputs from the model and will not be held liable for any damages resulting from the use of the resources and outputs.

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Python

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言