-
Notifications
You must be signed in to change notification settings - Fork 3
Add ProTeGi Prompt Optimizer #57
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
base: main
Are you sure you want to change the base?
Changes from all commits
dc7426a
afc5741
2adc722
778d5f0
aecfb43
7fbcaac
52fb042
279d7c3
35afddd
bedf3f1
14e5f71
23c2750
891081c
bded850
678fae1
8eabec5
6523e69
05a5877
6929d4b
904d9dd
fa8174a
5093db3
271efd2
d333c3e
5564254
dc33542
7424af6
e8b7a06
bc3c82f
a282af2
4bf68ff
dff2a0c
9adb38f
ee20a09
df3b657
cdd041b
5a47ebd
b90be13
786731f
d7958fb
b3a081e
a3b68a3
841f693
c12a75a
541723d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,82 @@ | ||
|
|
||
| { | ||
|
DanielDango marked this conversation as resolved.
|
||
| "cache_dir": "./cache/WARC", | ||
|
|
||
| "gold_standard_configuration": { | ||
| "path": "./datasets/req2req/WARC/answer.csv", | ||
| "hasHeader": "true" | ||
| }, | ||
|
|
||
| "source_artifact_provider" : { | ||
| "name" : "text", | ||
| "args" : { | ||
| "artifact_type" : "requirement", | ||
| "path" : "./datasets/req2req/WARC/high" | ||
| } | ||
| }, | ||
| "target_artifact_provider" : { | ||
| "name" : "text", | ||
| "args" : { | ||
| "artifact_type" : "requirement", | ||
| "path" : "./datasets/req2req/WARC/low" | ||
| } | ||
| }, | ||
| "source_preprocessor" : { | ||
| "name" : "artifact", | ||
| "args" : {} | ||
| }, | ||
| "target_preprocessor" : { | ||
| "name" : "artifact", | ||
| "args" : {} | ||
| }, | ||
| "embedding_creator" : { | ||
| "name" : "openai", | ||
| "args" : { | ||
| "model": "text-embedding-3-large" | ||
| } | ||
| }, | ||
| "source_store" : { | ||
| "name" : "custom", | ||
| "args" : {} | ||
| }, | ||
| "target_store" : { | ||
| "name" : "cosine_similarity", | ||
| "args" : { | ||
| "max_results" : "4" | ||
| } | ||
| }, | ||
| "metric" : { | ||
| "name" : "pointwise", | ||
| "args" : {} | ||
| }, | ||
| "selector" : { | ||
| "name" : "ucb", | ||
| "args" : { | ||
| "samples_per_eval" : "16" | ||
| } | ||
| }, | ||
| "prompt_optimizer": { | ||
| "name" : "gradient_openai", | ||
| "args" : { | ||
| "prompt": "Question: Here are two parts of software development artifacts.\n\n {source_type}: '''{source_content}'''\n\n {target_type}: '''{target_content}'''\n Are they related?\n\n Answer with 'yes' or 'no'.", | ||
| "model": "gpt-4o-mini-2024-07-18", | ||
| "maximum_iterations": 3, | ||
| "minibatch_size" : "20" | ||
| } | ||
|
Comment on lines
+63
to
+65
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Numeric values are inconsistently quoted across this config file: |
||
| }, | ||
| "classifier" : { | ||
| "name" : "simple_openai", | ||
| "args" : { | ||
| "model": "gpt-4o-mini-2024-07-18", | ||
| "temperature": 0.0 | ||
| } | ||
| }, | ||
| "result_aggregator" : { | ||
| "name" : "any_connection", | ||
| "args" : {} | ||
| }, | ||
| "tracelinkid_postprocessor" : { | ||
| "name" : "identity", | ||
| "args" : {} | ||
| } | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.