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]: TypeError: create_blob_storage() got an unexpected keyword argument 'type' #1514

Open
3 tasks done
mctarsi opened this issue Dec 13, 2024 · 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

@mctarsi
Copy link

mctarsi commented Dec 13, 2024

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

I configure the config.yml to include Azure blob container as storage. The configuration is:

storage:
  type: blob
  connection_string: XXX
  container_name: output
  base_dir: output

When I launch the graphrag.index, there is this error:
TypeError: create_blob_storage() got an unexpected keyword argument 'type'

This is due to the fact that in the create_blob_storage() function contained in graphrag/storage/blob_pipeline_storage.py file, it is not considered 'type' parameter.

The parameters should be passed in the function definition (line 293):

def create_blob_storage(
    connection_string: str | None,
    storage_account_blob_url: str | None,
    container_name: str,
    base_dir: str | None,
) -> PipelineStorage:

Steps to reproduce

  1. Configure YAML file config.yml
  2. Launch graphrag index --root ./ragtest

Expected Behavior

I expected to load the artifacts, final outputs, in Azure blob storage. To do that it should be execute create_blob_storage function with every parameters.

GraphRAG Config Used

storage:
  type: blob
  connection_string: XXX
  container_name: output
  base_dir: output

Logs and screenshots

Image

Additional Information

  • GraphRAG Version: v1.0.0
  • Operating System: Windows 10 Enterprise
  • Python Version: 3.12.4
  • Related Issues:
@mctarsi mctarsi added bug Something isn't working triage Default label assignment, indicates new issue needs reviewed by a maintainer labels Dec 13, 2024
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