2. 确定需要设置的 API 密钥 根据你的需求或 GraphRag 的配置,选择一个合适的 API 密钥进行设置。如果你使用的是 OpenAI 的服务,那么 openai_api_key 是必需的;如果你使用的是 GraphRag 提供的服务,则可能是 graphrag_api_key 或graphrag_llm_api_key。
llm, 'api_key') else "dummy_key", 56 + "api_base": llm_config.api_base if hasattr(llm_config, 'api_base') else None, 57 + "api_key": llm_config.api_key if hasattr(llm_config, 'api_key') else "dummy_key", 58 58 "max_retries": llm_config.max_retries, ...
Finally, conduct GraphRAG indexing, which may take a while: python -m graphrag.index --root ragtest Please let me know if API is required Method to resolve this issue: export GRAPHRAG_API_KEY=1234, followingTheAiSingularity/graphrag-local-ollama#7 ValueError: No text files found in input...
手把手教你使用微软Graphrag(调用openai的apikey)(Windows适用)的book.txt Oh**py上传185KB文件格式txtmicrosoftwindowspytorch 手把手教你使用微软Graphrag(调用openai的apikey)(Windows适用)的book.txt (0)踩踩(0) 所需:1积分