getzep / graphiti

Build and query dynamic, temporally-aware Knowledge Graphs
https://help.getzep.com/graphiti
Apache License 2.0
1.37k stars 72 forks source link

limit community building concurrency #142

Closed danielchalef closed 1 month ago

danielchalef commented 1 month ago

[!IMPORTANT] Limits concurrency in build_communities() to 10 using asyncio.Semaphore in community_operations.py.

  • Concurrency Limiting:
    • Introduces MAX_COMMMUNITY_BUILD_CONCURRENCY constant set to 10 in community_operations.py.
    • Adds asyncio.Semaphore to build_communities() to limit concurrency to 10.
    • Wraps build_community() calls in limited_build_community() to enforce concurrency limit.

This description was created by Ellipsis for 4b3a0d93adc069a4e3b32bfd82777e98a737d154. It will automatically update as commits are pushed.

github-actions[bot] commented 1 month ago


Thank you for your submission, we really appreciate it. Like many open-source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution. You can sign the CLA by just posting a Pull Request Comment same as the below format.


I have read the CLA Document and I hereby sign the CLA


You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot.

danielchalef commented 1 month ago

CLA Assistant needs a kick. Will investigate further when I get a moment.