graphrag icon indicating copy to clipboard operation
graphrag copied to clipboard

[Bug]: In indexing process, reporting "in build_index vector_store_type = config.embeddings.vector_store["type"] # type: ignore TypeError: 'NoneType' object is not subscriptable"

Open shaojh1 opened this issue 1 year ago • 3 comments

Do you need to file an issue?

  • [x] 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.
  • [x] I believe this is a legitimate bug, not just a question. If this is a question, please use the Discussions area.

Describe the bug

After I downloaded the project code from GitHub, I executed the following commands:

poetry install # Install dependency packages poetry run poe index --init --root . # Initialize the project and made adjustments to settings.yaml mkdir input output cache # Since these folders were not created during initialization, I created them myself

After placing a 5k txt file in the input folder, I executed the code: python -m graphrag.index --root .

Error message: In build_index vector_store_type = config.embeddings.vector_store["type"] # type: ignore TypeError: 'NoneType' object is not subscriptable

Steps to reproduce

No response

Expected Behavior

No response

GraphRAG Config Used

# Paste your config here

Logs and screenshots

No response

Additional Information

  • GraphRAG Version:
  • Operating System:
  • Python Version:
  • Related Issues:

shaojh1 avatar Oct 25 '24 07:10 shaojh1

(settings.yaml ) embeddings: vector_store: type: 'your_vector_store_type'.but I don't find the right type,

tongji-1 avatar Oct 27 '24 17:10 tongji-1

Same issue.

YanSte avatar Feb 20 '25 08:02 YanSte

I got the same issue with v2.0.0.

hxt365 avatar Mar 05 '25 05:03 hxt365