Skip to content

Adds Specification Formatting for 2011 Finding Maximum in An Array - #1

Open
LudwigVonChesterfield wants to merge 1 commit into
bbayazit16:masterfrom
LudwigVonChesterfield:vtb-spec-format-2011-maximum-array
Open

LudwigVonChesterfield wants to merge 1 commit into
bbayazit16:masterfrom
LudwigVonChesterfield:vtb-spec-format-2011-maximum-array

Conversation

@LudwigVonChesterfield

Copy link
Copy Markdown

TBD if this is the format we'll go with.

I'm unsure of the use of //datastructures section, is it for Tree-like problems (or other problems with non-primitive types?)

I'm also wondering how we'll use this formatting to ensure that LLM-generated output is compatible with the ground truth. Would we modify the prompts of the challenges and re-train models, or would we have a separate process to make emitted code compatible with these specs?

//enddatastructures

//preconditions
// Encodes: A non-empty integer array a.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Should we have descriptions like these to show which preconditions link to what parts of the natural-language problem (or an assumption we infer is necessary to the solution)?

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Good Point! We should allow one line docstring to explain the assumption.

@xundeng99

Copy link
Copy Markdown

Yep that field is for more complex ds and for completeness. I also suggest to put in input parameters and output return value. Pls see the new template (and add the encodes field you suggested!)

We will give model the template, and ask it to return output in this format. 99% of the time it should.

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.

2 participants