Skip to content

Commit

Permalink
[ENH] Add collection repr (#2433)
Browse files Browse the repository at this point in the history
## 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)
  • Loading branch information
HammadB authored Jul 1, 2024
1 parent 79eb785 commit 6ffae91
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions chromadb/api/models/CollectionCommon.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,9 @@ def __eq__(self, other: object) -> bool:
and data_loader_match
)

def __repr__(self) -> str:
return f"Collection(id={self.id}, name={self.name})"

def get_model(self) -> CollectionModel:
return self._model

Expand Down

0 comments on commit 6ffae91

Please sign in to comment.