Skip to content

Commit 6ffae91

Browse files
authored
[ENH] Add collection repr (#2433)
## Description of changes *Summarize the changes made by this PR.* - Improvements & Bug fixes - Small QoL improvement ![Screenshot 2024-07-01 at 3 20 50 PM](https://github.com/chroma-core/chroma/assets/5598697/9ac9b2d8-dde8-4366-a4ba-49ef01830f1a)
1 parent 79eb785 commit 6ffae91

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

chromadb/api/models/CollectionCommon.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,9 @@ def __eq__(self, other: object) -> bool:
135135
and data_loader_match
136136
)
137137

138+
def __repr__(self) -> str:
139+
return f"Collection(id={self.id}, name={self.name})"
140+
138141
def get_model(self) -> CollectionModel:
139142
return self._model
140143

0 commit comments

Comments
 (0)