Skip to content

[Bug]: Example notebooks code is incorrect (not updated) #2301

@szegad

Description

@szegad

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

The example notebooks included in the github repo, for example:
#docs/examples_notebooks/local_search.ipynb
[https://microsoft.github.io/graphrag/examples_notebooks/local_search/]
seem to use incorrect, not existing classes.
I guess there were some major changes to the project structure, yet those examples are not updated.
The errors include:
ImportError: cannot import name 'ModelType' from 'graphrag.config.enums'
NameError: name 'LanceDBVectorStore' is not defined
NameError: name 'description_embedding_store' is not defined

It would be great to have working examples, especially for beginers.

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:

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriageDefault label assignment, indicates new issue needs reviewed by a maintainer

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions