chroma-core / chroma

the AI-native open-source embedding database
https://www.trychroma.com/
Apache License 2.0
15.45k stars 1.3k forks source link

[ENH]: add config fields for max partition size & max compaction size in compactor #2732

Closed codetheweb closed 2 months ago

codetheweb commented 2 months ago

Description of changes

This will allow us to better control max memory usage (thus avoiding OOMs).

Test plan

How are these changes tested?

Tested by setting the new fields to small values and observing that more compaction jobs/partitions are created.

Documentation Changes

Are all docstrings for user-facing APIs updated if required? Do we need to make documentation changes in the docs repository?

n/a

github-actions[bot] commented 2 months ago

Reviewer Checklist

Please leverage this checklist to ensure your code review is thorough before approving

Testing, Bugs, Errors, Logs, Documentation