langkit
langkit copied to clipboard
Consider asserting input types
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.