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

[Bug]: build_index() storage and base_dir path relativity #1680

Open
3 tasks done
LennartSchmidtKern opened this issue Feb 6, 2025 · 0 comments
Open
3 tasks done
Labels
bug Something isn't working triage Default label assignment, indicates new issue needs reviewed by a maintainer

Comments

@LennartSchmidtKern
Copy link

Do you need to file an issue?

  • I have searched the existing issues and this bug is not already filed.
  • My model is hosted on OpenAI or Azure. If not, please look at the "model providers" issue and don't file a new one here.
  • I believe this is a legitimate bug, not just a question. If this is a question, please use the Discussions area.

Describe the bug

According to the documentation of the config yaml: https://microsoft.github.io/graphrag/config/yaml/,

the base_dir key of input as well as storage are relative to the root_dir arg given to the build_index() function of graphrag.api. While for input it seems correct, for storage the files are created into a folder relative to my main script and not to the self defined root_dir.

Steps to reproduce

No response

Expected Behavior

Ouput should be created relative to the root_dir

GraphRAG Config Used

{
  #...
   "input":{
      "type":"file",
      "file_type":"text",
      "base_dir":"input", # not problem
      "file_encoding":"utf-8",
      "file_pattern":".*\\.txt$"
   },
   "storage":{
      "type":"file",
      "base_dir":"output" # problem
   },
#...
}

Logs and screenshots

No response

Additional Information

  • GraphRAG Version: graphrag 1.2.0
  • Operating System: Ubuntu/ Windows WSL
  • Python Version: 3.12
  • Related Issues: -
@LennartSchmidtKern LennartSchmidtKern added bug Something isn't working triage Default label assignment, indicates new issue needs reviewed by a maintainer labels Feb 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage Default label assignment, indicates new issue needs reviewed by a maintainer
Projects
None yet
Development

No branches or pull requests

1 participant