You can check out our example at https://github.com/circlemind-ai/fast-graphrag/blob/main/exa...
Hope this can help!