llm-graph-builder
llm-graph-builder copied to clipboard
Manually calling gc.collect is not recommended
Referring to the link below, I learned that and previously had never manually called gc.collect() in Python code before.
https://stackoverflow.com/questions/26761784/where-to-call-gc-collect
In some case like long-running processes that handle large amounts of data, memory might not be freed quickly enough, leading to memory bloat. So need to manually calling gc.collect() that can help manage memory more proactively.