chroma
chroma copied to clipboard
[Feature Request]: Retrieve the last n added items
Describe the problem
In some cases, I need to get the last n added items but it seems that there is no method to do that.
Describe the proposed solution
give a method like peek() but return the last n added items
Alternatives considered
No response
Importance
would make my life easier
Additional Information
No response
Is peek() currently just giving random results? How does peek() decides which documents to add?
@levand we are tracking the idea of created_at in the refactor, right?
@rxy1212 @Msa360 i think this will be handled by https://github.com/chroma-core/chroma/issues/469 -- adding sorting ability for get
closing since its technically a dupe of #469