← 返回命令列表

Linux command

aws-kendra 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Create a new Kendra index

aws kendra create-index --name [my-index] --role-arn [arn:aws:iam::account:role/kendra-role]

List all indexes

aws kendra list-indices

Submit a search query

aws kendra query --index-id [index-id] --query-text "[search terms]"

Add documents

aws kendra batch-put-document --index-id [index-id] --documents file://[documents.json]

Create a data source

aws kendra create-data-source --index-id [index-id] --name [s3-source] --type S3 --configuration file://[s3-config.json] --role-arn [arn:aws:iam::account:role/kendra-role]

Start a data source sync

aws kendra start-data-source-sync-job --index-id [index-id] --id [data-source-id]

Create a FAQ

aws kendra create-faq --index-id [index-id] --name [my-faq] --s3-path Bucket=[bucket],Key=[faq.csv] --role-arn [arn:aws:iam::account:role/kendra-role]

说明

aws kendra is the AWS CLI interface for Amazon Kendra, an intelligent enterprise search service powered by machine learning. Kendra provides natural language search capabilities across documents, FAQs, and other content sources. Kendra indexes documents from various data sources including S3, SharePoint, Salesforce, ServiceNow, and databases. It understands natural language queries and returns relevant passages with highlighted answers, supporting semantic search beyond keyword matching.

FAQ

What is the aws-kendra command used for?

aws kendra is the AWS CLI interface for Amazon Kendra, an intelligent enterprise search service powered by machine learning. Kendra provides natural language search capabilities across documents, FAQs, and other content sources. Kendra indexes documents from various data sources including S3, SharePoint, Salesforce, ServiceNow, and databases. It understands natural language queries and returns relevant passages with highlighted answers, supporting semantic search beyond keyword matching.

How do I run a basic aws-kendra example?

Run `aws kendra create-index --name [my-index] --role-arn [arn:aws:iam::account:role/kendra-role]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

Where can I find more aws-kendra examples?

This page includes 7 examples for aws-kendra, plus related commands for nearby Linux tasks.