I have to send lists of text embeddings in flask output. The output looks as follows:
{"embeddings":[[0.1,0.2,0.3],[0.4,0.5,0.6],[0.7,0.8,0.9]]}
I tried doing json.dumps and jsonify from flask but still I get following error when sending above output in flask response:
TypeError: Object of type float32 is not JSON serializable
How can I fix it?