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]: <title>TypeError: 'NoneType' object is not subscriptable #1328

Open
3 tasks
tongji-1 opened this issue Oct 27, 2024 · 3 comments
Open
3 tasks

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

tongji-1 opened this issue Oct 27, 2024 · 3 comments
Labels
awaiting_response Maintainers or community have suggested solutions or requested info, awaiting filer response stale Used by auto-resolve bot to flag inactive issues

Comments

@tongji-1
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

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

  • GraphRAG Version:
  • Operating System:
  • Python Version:
  • Related Issues:
@tongji-1 tongji-1 added bug Something isn't working triage Default label assignment, indicates new issue needs reviewed by a maintainer labels Oct 27, 2024
@EvelynBai
Copy link

same

@AlonsoGuevara
Copy link
Contributor

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

@AlonsoGuevara AlonsoGuevara added awaiting_response Maintainers or community have suggested solutions or requested info, awaiting filer response and removed bug Something isn't working triage Default label assignment, indicates new issue needs reviewed by a maintainer labels Nov 6, 2024
Copy link

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 github-actions bot added the stale Used by auto-resolve bot to flag inactive issues label Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting_response Maintainers or community have suggested solutions or requested info, awaiting filer response stale Used by auto-resolve bot to flag inactive issues
Projects
None yet
Development

No branches or pull requests

3 participants