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

feat: generate evaluation test dataset #529

Merged
merged 1 commit into from
Jan 15, 2024
Merged

Conversation

bjwswang
Copy link
Collaborator

@bjwswang bjwswang commented Jan 9, 2024

What type of PR is this?

/kind feat

What this PR does / why we need it

Which issue(s) this PR fixes

Fixes #494

Special notes for your reviewer

To generate test dataset for a evaluation, I add a new command arctl eval gen_test_dataset
Usge:

(base) ➜  arcadia git:(evaluation) ✗ ./bin/arctl eval gen_test_dataset -h
Generate a test dataset for evaluation

Usage:
  arctl eval gen_test_dataset [flags]

Flags:
      --ground-truths-column string   The column name which provides the answers (default "a")
  -h, --help                          help for gen_test_dataset
      --input-dir string              The input directory where to load original dataset files
      --output string                 The way to output the generated dataset rows.We support two ways: 
                                       - stdout: print row 
                                       - csv: save row to csv file
      --question-column string        The column name which provides questions (default "q")

Global Flags:
      --application string   The evaluation task(RAG Evaluation CR Name) name
      --home string          home directory to use (default "/home/bjwswang/.arcadia")
  -n, --namespace string     namespace to use (default "default")

To make it simple ,this command converts the QA CSV which has been generated by dataprocessing to ragas csv dataset files with columens question,ground_truths,answers,contexts via the appruntime

image

Changelogs:

  1. rename pkg/application to pkg/appruntime
    • set namespace to context in NewAppOrGetFromCache and app.Run(
  2. add pkg/evaluation to implement evaluation functionalities
  3. update CLI arctl:
    • add new command eval
    • remove deprecated commands chat and datasets
    • fix variables pass bugs

@bjwswang bjwswang force-pushed the evaluation branch 6 times, most recently from 6d816fb to b858bb5 Compare January 15, 2024 06:49
@bjwswang bjwswang marked this pull request as ready for review January 15, 2024 06:50
@bjwswang bjwswang force-pushed the evaluation branch 4 times, most recently from 28c7920 to 7c8fd95 Compare January 15, 2024 07:19
Signed-off-by: bjwswang <bjwswang@gmail.com>
@bjwswang bjwswang marked this pull request as draft January 15, 2024 07:56
@bjwswang
Copy link
Collaborator Author

@Lanture1064 Please verify the test dataset generated by this pr.

@bjwswang bjwswang marked this pull request as ready for review January 15, 2024 12:36
@bjwswang bjwswang merged commit 60e5c2c into kubeagi:main Jan 15, 2024
11 checks passed
@bjwswang bjwswang deleted the evaluation branch February 19, 2024 06:16
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

Successfully merging this pull request may close these issues.

generate test dataset based on our rag solution
3 participants