chroma icon indicating copy to clipboard operation
chroma copied to clipboard

[Feature Request]: Retrieve the last n added items

Open rxy1212 opened this issue 2 years ago • 1 comments

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

rxy1212 avatar Apr 27 '23 09:04 rxy1212

Is peek() currently just giving random results? How does peek() decides which documents to add?

Msa360 avatar Apr 28 '23 00:04 Msa360

@levand we are tracking the idea of created_at in the refactor, right?

jeffchuber avatar May 08 '23 16:05 jeffchuber

@rxy1212 @Msa360 i think this will be handled by https://github.com/chroma-core/chroma/issues/469 -- adding sorting ability for get

jeffchuber avatar May 08 '23 16:05 jeffchuber

closing since its technically a dupe of #469

jeffchuber avatar Jun 23 '23 17:06 jeffchuber