Hi there, I'm getting phoenix.session.client.DatasetUploadError: Internal Server Error when trying to upload a new dataset to Arize cloud platform instance via px.Client.upload_dataset(). Is there a known issue on the server side? thank you
馃挕聽Hint: Mention RunLLM in the thread for followups.
can you DM me your url? i can take a look at the server logs
ok i think this is a regression on our end
return orjson.loads(orjson.dumps(value)) if isinstance(value, dict) else {}
^^^^^^^^^^^^^^^^^^^
sqlalchemy.exc.StatementError: (builtins.TypeError) Type is not JSON serializable: numpy.ndarraysorry about that
the workaround for the time being is to convert dataframe to list of dictionaries like this
inputs = df.loc[:, input_keys].to_dict('records')
outputs = df.loc[:, output_keys].to_dict('records') if output_keys else []
metadata = df.loc[:, metadata_keys].to_dict('records') if metadata_keys else []
dataset = client.upload_dataset(dataset_name=name, inputs=inputs, outputs=outputs, metadata=metadata)