langchain icon indicating copy to clipboard operation
langchain copied to clipboard

community: Chroma - remove reference to collection upon delete_collection

Open tazarov opened this issue 3 months ago • 1 comments

Description:

  • Reference to Collection object is set to None when deleting a collection delete_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 and reset_collection()
  • _collection is now a property to avoid breaking changes

Issues:

  • chroma-core/chroma#2213

Twitter: @t_azarov

tazarov avatar May 17 '24 15:05 tazarov