-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ENH] Full garbage collection #3194
Conversation
Please tag your PR title with one of: [ENH | BUG | DOC | TST | BLD | PERF | TYP | CLN | CHORE]. See https://docs.trychroma.com/contributing#contributing-code-and-ideas |
Reviewer ChecklistPlease leverage this checklist to ensure your code review is thorough before approving Testing, Bugs, Errors, Logs, Documentation
System Compatibility
Quality
|
a69dfa8
to
bf69dba
Compare
735b9bd
to
aa3f268
Compare
bf69dba
to
2dfc81f
Compare
aa3f268
to
f8bf019
Compare
2dfc81f
to
4e2eb67
Compare
f8bf019
to
ad90fbd
Compare
// TODO(Sanket): Hook in the gc policy. | ||
pub async fn garbage_collect(&self) -> Result<(), SpannIndexWriterConstructionError> { | ||
// Get all the heads. | ||
let non_deleted_heads; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add a TODO for gc'ing HNSW
) -> Result<bool, SpannIndexWriterConstructionError> { | ||
let hnsw_read_guard = self.hnsw_index.inner.read(); | ||
let hnsw_emb = hnsw_read_guard.get(head_id); | ||
// TODO(Sanket): Check for exact error. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should extend hnsw to tell you this
4e2eb67
to
370a9d6
Compare
b4f91db
to
54e68c3
Compare
bd5bdcf
to
65dcb09
Compare
54e68c3
to
625451d
Compare
65dcb09
to
2271983
Compare
625451d
to
87c4dce
Compare
2271983
to
f6316fb
Compare
87c4dce
to
42d48d8
Compare
f6316fb
to
c47a004
Compare
42d48d8
to
ba29605
Compare
c47a004
to
5d01f9c
Compare
ba29605
to
78bce69
Compare
5d01f9c
to
084cb4a
Compare
78bce69
to
e9268e3
Compare
084cb4a
to
da226c5
Compare
151c5d5
to
1c04be4
Compare
9dc3377
to
cc224ed
Compare
1c04be4
to
8ce3f92
Compare
cc224ed
to
8b63966
Compare
8ce3f92
to
cd79a90
Compare
cd79a90
to
ab7ce64
Compare
Description of changes
Summarize the changes made by this PR.
Test plan
pytest
for python,yarn test
for js,cargo test
for rustDocumentation Changes
None