chroma
chroma copied to clipboard
[ENH] Implement compactor server interface
Description of changes
Summarize the changes made by this PR.
- Improvements & Bug fixes
- N/A
- New functionality
- We would like to manually start a compaction on certain collections. This PR is the first in the stack to implement this feature. Specifically, it:
- Introduces the grpc interface for compactor. Currently there is only a single variant of request that allows the user to specify an optional list of collection ids for compaction.
- Implements the
CompactionServerstruct in rust that implements this interface. It receives the request and send it to the runningCompactionManager - The next PRs will handle the request in
CompactionManager.
- We would like to manually start a compaction on certain collections. This PR is the first in the stack to implement this feature. Specifically, it:
Test plan
How are these changes tested?
- [ ] Tests pass locally with
pytestfor python,yarn testfor js,cargo testfor rust
Documentation Changes
Are all docstrings for user-facing APIs updated if required? Do we need to make documentation changes in the docs repository?