You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

AWS Bedrock批量推理JSON格式咨询:批量生成文本嵌入失败

AWS Bedrock Titan嵌入批量处理JSONL格式修正

问题根源

你当前的JSONL格式不符合要求,JSONL必须每行包含一个完整的JSON对象,不能将单个JSON拆分成多行,也不能存在多余空行。你的示例中每个JSON对象被拆分成了多行,导致Bedrock解析失败。

正确格式示例

带recordId的格式(每行一个完整JSON)

{"recordId": "CALL0000001", "modelInput": {"inputText": "this is where you place your input text"}}
{"recordId": "CALL0000002", "modelInput": {"inputText": "another input text sample"}}

不带recordId的格式(每行一个完整JSON)

{"modelInput": {"inputText": "this is where you place your input text"}}
{"modelInput": {"inputText": "another input text sample"}}

额外注意事项

  • 确保文件中没有多余的空行,每行严格对应一个JSON对象
  • 所有双引号为普通双引号("),不要使用转义后的"(实际文件里直接用"即可)
  • 每个JSON对象内部的键值对格式正确,无逗号遗漏、括号不匹配等语法错误

内容的提问来源于stack exchange,提问作者John T

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.15 13:22:35