Azure-Samples / graphrag-accelerator

One-click deploy of a Knowledge Graph powered RAG (GraphRAG) in Azure
https://github.com/microsoft/graphrag
MIT License
1.11k stars 155 forks source link

HelloWorld.ipynb Unable to Create new entity Configuration #22

Closed timothymeyers closed 3 weeks ago

timothymeyers commented 3 weeks ago

When running the code block under Create new entity configuration, you now get a NameError. It appears that the helper function block has been rewritten recently, and a number of entity-related helper functions are no longer included.

---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
Cell In[37], [line 17](vscode-notebook-cell:?execution_count=37&line=17)
      [8](vscode-notebook-cell:?execution_count=37&line=8) entity_examples = [
      [9](vscode-notebook-cell:?execution_count=37&line=9)     {
     [10](vscode-notebook-cell:?execution_count=37&line=10)         "entity_types": "ORGANIZATION",
   (...)
     [13](vscode-notebook-cell:?execution_count=37&line=13)     }
     [14](vscode-notebook-cell:?execution_count=37&line=14) ]
     [16](vscode-notebook-cell:?execution_count=37&line=16) # upload and save the entity configuration
---> [17](vscode-notebook-cell:?execution_count=37&line=17) response = create_entity_config(
     [18](vscode-notebook-cell:?execution_count=37&line=18)     entity_configuration_name, entity_types, entity_examples
     [19](vscode-notebook-cell:?execution_count=37&line=19) )
     [20](vscode-notebook-cell:?execution_count=37&line=20) print(response)
     [21](vscode-notebook-cell:?execution_count=37&line=21) if response.ok:

NameError: name 'create_entity_config' is not defined
timothymeyers commented 3 weeks ago

After adding in the missing helper functions from a previous version of the notebook, I now get a 404 error when attempting to add the default entity configuration

jgbradley1 commented 3 weeks ago

We have disabled (but not removed) the API endpoints for entity configuration. It has been replaced by a new endpoint that streamlines the user experience. Please check out the latest version of the notebook that is in the repo now.

FYI we will be renaming the notebooks soon to be more user-friendly. Some of the content in the notebooks will be moved around to be more tutorial style but that's it.