microsoft / graphrag

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

[Issue]: <title> Where can I view Memory profile information? #1198

Open yunfan42 opened 1 month ago

yunfan42 commented 1 month ago

Do you need to file an issue?

Describe the issue

There is a "--memprofile" parameter in the index building stage.

After setting it, where should I go to view the corresponding Memory profile information?

My run command is: python -m graphrag.index --root ./ragtest --memprofile

I checked the output/stats.json and reports/index-engine.log in the running directory. Neither contained the corresponding information.

I referred to the usage of MemoryProfile in #https://github.com/microsoft/datashaper/blob/main/python/examples/notebooks/profiling.ipynb

The MemoryProfile in the Result (WorkflowRunResult) memory_profile is None.

So I want to know where I can see the corresponding information.

Steps to reproduce

No response

GraphRAG Config Used

# Paste your config here

Logs and screenshots

image

Additional Information