langkit icon indicating copy to clipboard operation
langkit copied to clipboard

Consider asserting input types

Open jamie256 opened this issue 1 year ago • 0 comments

LangKit metrics mostly require specific shapes of the inputs, either Dict[str,str] or pandas dataframe of columns containing strings, but when integrators pass in embeddings or arrays of strings the underlying UDF metrics often yield confusing errors.

consider checking input type and raising error that gives a better hint to integrators on how to fix the issue.

jamie256 avatar Oct 31 '23 23:10 jamie256