Closed shitaoli-db closed 3 weeks ago
This PR seems a bit overkill to me. It adds code just for detecting one possible you may have messed up your data (out of the many possible ways), when the error message would already tell you fairly clearly what was wrong. If this is an error we've seen a handful of times, maybe we can just update the
UnknownExampleTypeError
to mention that you may want to check your casing as the keys are case sensitive.
Yeah, I was thinking the same at first place, I think another idea is no change in the LLM foundry but rather to only change on https://github.com/databricks-mosaic/mcloud/pull/4083 for user facing error. @jjanezhang WDYT on this?
Closed for now since we agreeed that the change should be on mcloud side.
As title, we want to show user a better exception, i.e. to give lowercase keys, when the user example contain upper case keys like "Prompt" that could potentially be fixed by using lower cases.