Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

加载上下文数据时出错: [Errno 2] No such file or directory: '..artifacts/create_final_covariates.parquet' #3

Open
Grant512 opened this issue Jul 18, 2024 · 2 comments

Comments

@Grant512
Copy link

Grant512 commented Jul 18, 2024

有时没有生成create_final_covariates.parquet。代码中需要兼容一下:
main-cn.py 将

covariate_df = pd.read_parquet(f"{INPUT_DIR}/{COVARIATE_TABLE}.parquet")
claims = read_indexer_covariates(covariate_df)

改为

        final_covariates_path = f"{INPUT_DIR}/{COVARIATE_TABLE}.parquet"
        final_covariates = (
            pd.read_parquet(final_covariates_path)
            if os.path.exists(final_covariates_path)
            else None
        )
        claims = (
            read_indexer_covariates(final_covariates)
            if final_covariates is not None
            else []
        )
@Grant512 Grant512 changed the title graphrag的output文件结构有更新,目前这个项目已经完全用不了了 加载上下文数据时出错: [Errno 2] No such file or directory: '..artifacts/create_final_covariates.parquet' Jul 18, 2024
@win4r
Copy link
Owner

win4r commented Jul 18, 2024

协变量这个文件,需要在settings.yaml中开启,请参考下面
···yaml
claim_extraction:
enabled: true
prompt: "prompts/claim_extraction.txt"
description: "Any claims or facts that could be relevant to information discovery."
max_gleanings: 1
···

@Grant512
Copy link
Author

协变量这个文件,需要在settings.yaml中开启,请参考下面 ···bash claim_extraction: enabled: true prompt: "prompts/claim_extraction.txt" description: "Any claims or facts that could be relevant to information discovery." max_gleanings: 1

···

感谢指导,刚接触这东西,一知半解😀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants