diff --git a/lib/chromable.rb b/lib/chromable.rb index 4cc2c61..f3a70f4 100644 --- a/lib/chromable.rb +++ b/lib/chromable.rb @@ -49,6 +49,8 @@ def chroma_collection def chroma_delete_collection Chroma::Resources::Collection.delete(chromable_settings.collection_name) + rescue Chroma::InvalidRequestError + Chroma::Util.log_debug("Collection #{chromable_settings.collection_name} does not exist.") end def chroma_query(text:, results: 10, where: {}, where_document: {}, **embedder_options)