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

Implement rank_initial_prompts for web #118

Merged
merged 1 commit into from
Dec 28, 2022
Merged

Conversation

AbdBarho
Copy link
Collaborator

@AbdBarho AbdBarho commented Dec 28, 2022

Closes #32

I wanted to implement drag & drop sorting but I it is too much work.

The results are handed to the api where the best prompt has index 0, and the worst is the last.

import { useState } from "react";
import useSWRImmutable from "swr/immutable";
import useSWRMutation from "swr/mutation";
import clsx from "clsx";
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could this be ordered above alphabetically?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

gladly.

might be worth adding an eslint rule:

https://eslint.org/docs/latest/rules/sort-imports

should I create a new issue for this?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes please~

website/src/pages/evaluate/rank_initial_prompts.tsx Outdated Show resolved Hide resolved
@fozziethebeat fozziethebeat merged commit 159e8a9 into main Dec 28, 2022
@fozziethebeat fozziethebeat deleted the rank_init_prompts branch December 28, 2022 12:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement rank_initial_prompts for web
2 participants