Support customization/opting out of deserialization into DataFrames
davidagold opened this issue · 0 comments
davidagold commented
What
Redesmyn automatically deserializes incoming records into Polars DataFrames. In doing so, we assume the request payloads have a particular structure: a JSON array of stringified model record JSON objects against which to conduct inference. We should:
- Support customization of the expected input data structure (it would be neat if we could enable users to declare the expected structure using Python type annotations),
- Opt out of automatic deserialization entirely and directly receive a kind of
Request
object, or perhaps just a (possibly typed)dict
.