【发布时间】:2023-01-31 01:16:06
【问题描述】:
我正在尝试查询 aws kendra,但我需要在 ResultItem 响应中包含 document_body。
我尝试在 QueryCommand 中使用 RequestedDocumentAttributes 参数,但结果仍然不包含文档正文。
const command = new QueryCommand({
IndexId: 'xxxxxxx',
QueryText: "How to connect to ec2?",
RequestedDocumentAttributes: [
"_document_body",
"_data_source_id",
"_last_updated_at"
]
});
有什么建议吗?
【问题讨论】:
标签: amazon-web-services amazon-kendra