win4r / GraphRAG4OpenWebUI

GraphRAG4OpenWebUI integrates Microsoft's GraphRAG technology into Open WebUI, providing a versatile information retrieval API. It combines local, global, and web searches for advanced Q&A systems and search engines. This tool simplifies graph-based retrieval integration in open web environments.
https://www.youtube.com/@AIsuperdomain
Apache License 2.0
362 stars 84 forks source link

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

Open Grant512 opened 4 months ago

Grant512 commented 4 months ago

有时没有生成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 []
        )
win4r commented 4 months ago

协变量这个文件,需要在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 commented 4 months ago

协变量这个文件,需要在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

···

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