You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, there is no way to terminate a client through the API, like via a .close() or .shutdown() function.
This may not seem necessary but I'd like to highlight one particular example where it does make a difference. While the PersistentClient is active, files are open to handle the metadata and indexing on the db. These files stay open and I'm assuming are only closed via garbage collection -- but there is no way through the API to explicitly close these files. If you want to save the db while the PersistentClient is active, this can cause "file open" issues.
Describe the proposed solution
Add a public API function to close local clients. Maybe only necessary for PersistentClient.
Alternatives considered
No response
Importance
i cannot use Chroma without it
Additional Information
No response
The text was updated successfully, but these errors were encountered:
Describe the problem
Currently, there is no way to terminate a client through the API, like via a .close() or .shutdown() function.
This may not seem necessary but I'd like to highlight one particular example where it does make a difference. While the PersistentClient is active, files are open to handle the metadata and indexing on the db. These files stay open and I'm assuming are only closed via garbage collection -- but there is no way through the API to explicitly close these files. If you want to save the db while the PersistentClient is active, this can cause "file open" issues.
Describe the proposed solution
Add a public API function to close local clients. Maybe only necessary for PersistentClient.
Alternatives considered
No response
Importance
i cannot use Chroma without it
Additional Information
No response
The text was updated successfully, but these errors were encountered: