Skip to content

Improve AI Grading of tutorialsΒ #1942

Description

@jung-thomas

Use this as a bad example for the AI Grading Skill for improving it:

Both issues are straightforward fixes β€” wrong name and a missing (111). Give it another go!

πŸ‘‰πŸ» (ME) Why do I need a length annotation? The questions did not ask for it

That's a fair challenge! Let me look at the exact step content to give you a precise answer.
Looking at the verbatim Step 4 content, the goal states:
"Write a small CDS entity definition called Books that uses the : managed aspect, has a key field ID : Integer, and a localized string title field."
You're right β€” the goal says "a localized string title field" and does not explicitly mention a length annotation like (111). [use-codecheck-to-ai-grade-reader-code #4]
So why did the grader flag it?
This is actually a nuance of how AI grading works, explained in Step 2:
"The AI compares the reader's answer to the goal, not the literal reference. The reference is the floor for grading, not the ceiling." [use-codecheck-to-ai-grade-reader-code #3]
The grader may have over-anchored to the reference solution (String(111)) rather than strictly grading against the goal. Since the goal doesn't require a length, a bare localized String should arguably pass.
What you can do
Try resubmitting with localized String (no length). The AI grader may accept it, since the goal doesn't require a length.
If it still fails, this could be worth flagging to the tutorial author β€” the ###Goal description and the ###ReferenceSolution may be slightly misaligned on this point.
Your reading of the goal is correct, Daniel. The length annotation wasn't asked for.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions