langchain
langchain copied to clipboard
community: Chroma - remove reference to collection upon delete_collection
Description:
- Reference to
Collection
object is set toNone
when deleting a collectiondelete_collection()
- Added utility method
reset_collection()
to allow recreating the collection - Moved collection creation out of
__init__
into__ensure_collection()
to be reused by object init andreset_collection()
-
_collection
is now a property to avoid breaking changes
Issues:
- chroma-core/chroma#2213
Twitter: @t_azarov