-
Notifications
You must be signed in to change notification settings - Fork 5
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
Evaluation task: Transpile #201
Comments
So in this case a test case contains the implementation in Language A and a test file in language B, right? We need to ensure that the transpiled implementation in language B actually works with the tests. So we need to show the model the signature in language B that it needs to conform to. So I would also have for each example an implementation file B that already contains the implementation signature and show that in the prompt. |
I think the refactoring of the prompting is a bit too ambitious. Really the only thing that changes for each task is the prompt template and the context (and we even embed parts of the context like the source file to deduplicate code). Would be nice to have a helper function that just takes both these things and applies the context to the template. But I think maybe we can get away with having an |
… test file into a helper, so it can be reused in other tasks Part of #201
… test file into a helper, so it can be reused in other tasks Part of #201
… share the same awarding logic Part of #201
Goal
Given a source code, the model needs to transpile it from Java to Go, and from Go to Java. The response is validated by executing predefined tests making sure that the implementation is correct.
TODOs
transpile
for both Golang and Javatranspile
with the different testing scenarioslight
repository with different levels of complexitycascadingIfElse
sort
binarySearch
balancedBrackets
pascalsTriangle
transpile
symflower
modelllm
modeltask-transpile.go
to implement the task behaviortranspileSourceCodeFile
inmodel/llm/llm.go
that writes the generated code to a fileFollow-ups
golang/transpile/binarySearch
togolang/transpile/transpile-from-java/binarySearch
to we can infer the target languageREADME.md
with the information how the testdata is structuredThe text was updated successfully, but these errors were encountered: