microsoft / graphrag

A modular graph-based Retrieval-Augmented Generation (RAG) system
https://microsoft.github.io/graphrag/
MIT License
19.48k stars 1.92k forks source link

[Bug]: <title>TypeError: 'NoneType' object is not subscriptable #1328

Closed tongji-1 closed 1 week ago

tongji-1 commented 4 weeks ago

Do you need to file an issue?

Describe the bug

D:\graphrag-main>poetry run poe index --root ./test/index Poe => python -m graphrag.index --root ./test/index

Logging enabled at D:\graphrag-main\test\index\output\20241028-011610\reports\indexing-engine.log Traceback (most recent call last): File "D:\Users\22525\anaconda3\envs\yjy\lib\runpy.py", line 196, in _run_module_as_main return _run_code(code, main_globals, None, File "D:\Users\22525\anaconda3\envs\yjy\lib\runpy.py", line 86, in _run_code exec(code, run_globals) File "D:\graphrag-main\graphrag\index__main__.py", line 104, in index_cli( File "D:\graphrag-main\graphrag\index\cli.py", line 132, in index_cli outputs = asyncio.run( File "D:\Users\22525\anaconda3\envs\yjy\lib\asyncio\runners.py", line 44, in run return loop.run_until_complete(main) File "D:\Users\22525\anaconda3\envs\yjy\lib\asyncio\base_events.py", line 649, in run_until_complete return future.result() File "D:\graphrag-main\graphrag\api\index.py", line 63, 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

EvelynBai commented 4 weeks ago

same

AlonsoGuevara commented 2 weeks ago

Hi folks! Please run init and generate a new settings.yaml file. This will add vector store definitions to your configuration

github-actions[bot] commented 1 week ago

This issue has been marked stale due to inactivity after repo maintainer or community member responses that request more information or suggest a solution. It will be closed after five additional days.

github-actions[bot] commented 1 week ago

This issue has been closed after being marked as stale for five days. Please reopen if needed.