Skip to content

Repository files navigation

graph_construct

https://github.com/openai/openai-cookbook在TuGraph上的实现

  1. 环境要求python>=3.12
  2. pip install -r requirements.txt安装依赖
  3. python all.py运行完整代码
  4. .env中配置api_key,默认使用百炼平台api,如果需要使用别的api,需要修改config.pyBASE_URL
  5. TuGraph用户名、密码、数据库设置在tugraph_api.py中修改,db_interface.py只是接口
  6. 数据加载路径在utils.py中修改load_transcripts_from_pickle修改directory_path参数
  7. prompts.py中只设计了zero-shot版本的提示词,如果需要few-shot,需要在提示词中添加合适的示例

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages