Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is order preserved? #13

Open
timbmg opened this issue Apr 25, 2024 · 2 comments
Open

Is order preserved? #13

timbmg opened this issue Apr 25, 2024 · 2 comments

Comments

@timbmg
Copy link

timbmg commented Apr 25, 2024

Hi, thanks for the library, it's very useful! I am just wondering, if the order of the completions is guaranteed to be preserved (i.e., in the same order as the added prompts)? Or would I need to use the metadata dict to pass some id?

@xingjian-zhang
Copy link

xingjian-zhang commented Apr 30, 2024

From my experience the order is not preserved. I tried to sort according to the created value but the order may still be wrong. I am wondering if there is a better way to do this.

@zia1138
Copy link

zia1138 commented May 9, 2024

It's not preserved, but you can use meta_data in .add to track the responses via a key.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants