import json summary = open('/tmp/summary.txt').read() open('/tmp/embed_input.json','w').write(json.dumps({'model':'bge-m3:latest','input':summary}))