

기계 번역으로 제공되는 번역입니다. 제공된 번역과 원본 영어의 내용이 상충하는 경우에는 영어 버전이 우선합니다.

# Amazon Kendra의 인덱스
<a name="hiw-index"></a>

인덱스는 문서의 내용을 담고 있으며 문서를 검색할 수 있는 방식으로 구조화되어 있습니다. 이 섹션에서는 지원되는 인덱스 유형 및 인덱스 기능에 대한 개요를 제공합니다.

**Topics**
+ [Amazon Kendra의 인덱스 유형](hiw-index-types.md)
+ [Amazon Kendra의 인덱스에 문서 추가](hiw-index-adding-docs.md)
+ [Amazon Kendra 예약 또는 공통 문서 필드 사용](index-reserved-fields-hiw.md)
+ [Amazon Kendra에서 인덱스의 응답 검색](index-searching.md)

# Amazon Kendra의 인덱스 유형
<a name="hiw-index-types"></a>

Amazon Kendra 에는 GenAI Enterprise Edition 인덱스, Enterprise Edition 인덱스, Developer Edition 인덱스의 세 가지 인덱스 유형이 있습니다. 다음 섹션에서는 각 인덱스의 기능에 대해 설명합니다.

**Topics**
+ [Amazon Kendra GenAI Enterprise Edition 인덱스](#kendra-gen-ai-index)
+ [Amazon Kendra Enterprise Edition 인덱스](#kendra-enterprise-index)
+ [Amazon Kendra Developer Edition 인덱스](#kendra-developer-index)

## Amazon Kendra GenAI Enterprise Edition 인덱스
<a name="kendra-gen-ai-index"></a>

Amazon Kendra GenAI Enterprise Edition 인덱스는 검색 API 작업 및 검색 증강 생성(RAG) 사용 사례에 가장 높은 정확도를 제공합니다. 하이브리드 검색(키워드 및 벡터), 시멘틱 임베딩, 재평가 모델과 같은 최신 정보 검색 기술로 구동되며 다양한 데이터세트에서 테스트되었습니다. 쿼리 API 작업은 Amazon Kendra Developer Edition 및 Amazon Kendra Enterprise Edition 인덱스와 비교할 때 Amazon Kendra GenAI Enterprise Edition 인덱스에서 유사한 정확도를 제공합니다.

Amazon Kendra GenAI Enterprise Edition 인덱스를 사용하면 AWS 생성형 AI 서비스 전반에서 인덱싱된 데이터를 이동할 수 있습니다. 이 기능을 사용하면 인덱스를 다시 빌드하지 않고도 투자를 원활하게 재사용할 수 있습니다. [Amazon Bedrock 지식 기반](https://docs.aws.amazon.com/bedrock/latest/userguide/knowledge-base.html)에서 관리형 리트리버로 사용하고 이를 에이전트 및 프롬프트 흐름과 같은 Amazon Bedrock 도구와 통합하여 고급 AI 어시스턴트를 구축할 수 있습니다. 완전관리형 디지털 어시스턴트의 경우 [Amazon Q Business](https://docs.aws.amazon.com/amazonq/latest/qbusiness-ug/what-is.html)와 함께 사용할 수도 있습니다.

Amazon Kendra GenAI Enterprise Edition 인덱스는 다른 두 인덱스 유형에 비해 더 작고 세분화된 용량 단위와 더 낮은 시작 가격을 제공합니다. 이렇게 하면 용량 사용률을 더 효율적으로 높일 수 있습니다.

**참고**  
최상의 경험과 정확성을 추구한다면 Amazon Kendra GenAI Enterprise Edition 인덱스를 선택하는 것이 좋습니다.

**Topics**
+ [지원되는 기능](#kendra-gen-ai-index-features)
+ [제한 사항](#genai-index-limitations)

### 지원되는 기능
<a name="kendra-gen-ai-index-features"></a>

RAG 사용 사례에 대해 [검색](https://docs.aws.amazon.com/kendra/latest/APIReference/API_Retrieve.html) API 작업을 사용하는 경우 Amazon Kendra GenAI Enterprise Edition 인덱스에 대해 다음 기능이 지원됩니다.
+ **전체 지원** - [신뢰도 점수 버킷](https://docs.aws.amazon.com/kendra/latest/APIReference/API_QueryResultItem.html#Kendra-Type-QueryResultItem-ScoreAttributes), [필터링](https://docs.aws.amazon.com/kendra/latest/dg/filtering.html), [패싯](https://docs.aws.amazon.com/kendra/latest/dg/filtering.html#search-facets), [관련성 튜닝](https://docs.aws.amazon.com/kendra/latest/dg/tuning.html), [사용자 지정 문서 보강](https://docs.aws.amazon.com/kendra/latest/dg/custom-document-enrichment.html), [사용자 지정 메타데이터](https://docs.aws.amazon.com/kendra/latest/dg/custom-attributes.html), [쿼리 용량 및 문서 용량 조정](https://docs.aws.amazon.com/kendra/latest/dg/adjusting-capacity.html)
+ **부분 지원** - [데이터 소스 커넥터](https://docs.aws.amazon.com/kendra/latest/dg/data-source.html) 및 [사용자 컨텍스트 필터링](https://docs.aws.amazon.com/kendra/latest/dg/user-context-filter.html) 부분적으로 지원되는 기능에 대한 자세한 내용은 [제한](https://docs.aws.amazon.com/kendra/latest/dg/hiw-index-types.html#genai-index-limitations)을 참조하세요.

검색 사용 사례에 [쿼리](https://docs.aws.amazon.com/kendra/latest/APIReference/API_Query.html) API 작업을 사용하는 경우 Amazon Kendra GenAI Enterprise Edition 인덱스에서 다음 기능이 지원됩니다.
+ **전체 지원** - [문서 순위](https://docs.aws.amazon.com/kendra/latest/dg/search-service-rerank.html), [추출 질문 답변](https://docs.aws.amazon.com/kendra/latest/dg/searching-example.html), [신뢰도 점수 버킷](https://docs.aws.amazon.com/kendra/latest/APIReference/API_QueryResultItem.html#Kendra-Type-QueryResultItem-ScoreAttributes), [필터링](https://docs.aws.amazon.com/kendra/latest/dg/filtering.html), [패싯](https://docs.aws.amazon.com/kendra/latest/dg/filtering.html#search-facets), [정렬](https://docs.aws.amazon.com/kendra/latest/dg/tuning-sorting-responses.html#sorting-responses), [축소 및 확장 쿼리 결과](https://docs.aws.amazon.com/kendra/latest/dg/expand-collapse-query-results.html), [인덱스 브라우징](https://docs.aws.amazon.com/kendra/latest/dg/browsing.html), [부울 쿼리](https://docs.aws.amazon.com/kendra/latest/dg/searching-example.html#searching-index-query-syntax), [정확한 일치](https://docs.aws.amazon.com/kendra/latest/dg/searching-example.html#searching-index-query-syntax), [와일드카드 쿼리](https://docs.aws.amazon.com/kendra/latest/dg/searching-example.html#searching-index-query-syntax), [쿼리 제안](https://docs.aws.amazon.com/kendra/latest/dg/query-suggestions.html), [쿼리 맞춤법 검사기](https://docs.aws.amazon.com/kendra/latest/dg/query-spell-check.html), [관련성 튜닝](https://docs.aws.amazon.com/kendra/latest/dg/tuning.html), [증분 학습](https://docs.aws.amazon.com/kendra/latest/dg/submitting-feedback.html), [사용자 지정 문서 보강](https://docs.aws.amazon.com/kendra/latest/dg/custom-document-enrichment.html), [사용자 지정 메타데이터](https://docs.aws.amazon.com/kendra/latest/dg/custom-attributes.html), [쿼리 용량 및 문서 용량 조정](https://docs.aws.amazon.com/kendra/latest/dg/adjusting-capacity.html), [검색 경험](https://docs.aws.amazon.com/kendra/latest/dg/deploying.html)
+ **부분 지원** - [데이터 소스 커넥터](https://docs.aws.amazon.com/kendra/latest/dg/data-source.html) 및 [사용자 컨텍스트 필터링](https://docs.aws.amazon.com/kendra/latest/dg/user-context-filter.html) 부분적으로 지원되는 기능에 대한 자세한 내용은 [제한](https://docs.aws.amazon.com/kendra/latest/dg/hiw-index-types.html#kendra-gen-ai-index)을 참조하세요.

### 제한 사항
<a name="genai-index-limitations"></a>

다음은 Amazon Kendra GenAI Enterprise Edition 인덱스의 알려진 제한 사항을 간략하게 설명합니다.
+ Amazon Kendra GenAI Enterprise Edition 인덱스는 미국 동부(버지니아 북부) 및 미국 서부(오리건)에서만 사용할 수 있습니다.
+ Amazon Kendra GenAI Enterprise Edition 인덱스는 영어 콘텐츠만 지원합니다.
+ Amazon Kendra GenAI Enterprise Edition 인덱스는 v2.0 Amazon Kendra 데이터 소스 커넥터만 지원합니다.
+ Amazon Kendra GenAI Enterprise Edition 인덱스에서는 [사용자 속성](https://docs.aws.amazon.com/kendra/latest/dg/user-context-filter.html#context-filter-attribute)만 사용하여 사용자 컨텍스트별로 검색 결과를 필터링할 수 있습니다.
+ Amazon Kendra GenAI Enterprise Edition 인덱스는 문서에 대한 [토큰 기반 사용자 액세스 제어](https://docs.aws.amazon.com/kendra/latest/dg/create-index-access-control.html) 또는 [사용자 ID 및 그룹 기반 사용자 액세스 제어](https://docs.aws.amazon.com/kendra/latest/dg/user-context-filter.html#context-filter-user-incl-datasources)를 지원하지 않습니다.
+ Amazon Kendra GenAI Enterprise Edition 인덱스에서는 [CreateAccessControlConfiguration](https://docs.aws.amazon.com/kendra/latest/APIReference/API_CreateAccessControlConfiguration.html) API 작업이 비활성화되었습니다.
+  Amazon Q Business에서 Amazon Kendra GenAI Enterprise Edition 인덱스를 사용하는 경우 문서에 대한 최종 사용자 액세스 제어에 대해 다음 사항에 유의하세요.

  Amazon Q Business 는 사용자 이메일 ID를 사용하여 인덱스의 문서에 대한 최종 사용자 액세스를 결정합니다. Amazon Kendra 인덱스를에 연결하면는 최종 사용자를 위한 문서 필터링을 활성화하기 위해 Amazon Kendra에 사용자의 식별 이메일 ID를 Amazon Q Business Amazon Q Business 릴레이합니다. Amazon Kendra 인덱스에 연결된 데이터 소스가 이메일 ID 기반 문서 필터링을 사용하지 않거나 이메일 ID가 없는 경우는 퍼블릭 문서에서만 응답을 Amazon Q Business 생성합니다.

## Amazon Kendra Enterprise Edition 인덱스
<a name="kendra-enterprise-index"></a>

Amazon Kendra Enterprise Edition 인덱스는 시맨틱 검색 기능을 제공하고 프로덕션 워크로드에 적합한 고가용성 서비스를 제공합니다.

**Topics**
+ [지원되는 기능](#kendra-ent-index-features)
+ [제한 사항](#ent-index-limitations)

### 지원되는 기능
<a name="kendra-ent-index-features"></a>

RAG 사용 사례에 대해 [검색](https://docs.aws.amazon.com/kendra/latest/APIReference/API_Retrieve.html) API 작업을 사용하는 경우 Amazon Kendra Enterprise Edition 인덱스에서는 [고급 쿼리 구문](https://docs.aws.amazon.com/kendra/latest/dg/searching-example.html#searching-index-query-syntax)을 사용한 쿼리, 쿼리에 대한 [맞춤법 수정 제안](https://docs.aws.amazon.com/kendra/latest/dg/query-spell-check.html), [패싯](https://docs.aws.amazon.com/kendra/latest/dg/filtering.html#search-facets), 검색 쿼리 자동 완성을 위한 [쿼리 제안](https://docs.aws.amazon.com/kendra/latest/dg/query-suggestions.html), [증분 학습](https://docs.aws.amazon.com/kendra/latest/dg/submitting-feedback.html) 기능이 지원됩니다.

검색 사용 사례에 [쿼리](https://docs.aws.amazon.com/kendra/latest/APIReference/API_Query.html) API 작업을 사용하는 경우 Amazon Kendra Enterprise Edition 인덱스에서는 모든 기능이 지원됩니다.

### 제한 사항
<a name="ent-index-limitations"></a>

다음은 Amazon Kendra Enterprise Edition 인덱스의 알려진 제한 사항을 간략하게 설명합니다.
+ 에서 Amazon Kendra Enterprise Edition 인덱스를 사용하는 경우 문서에 대한 최종 사용자 액세스 제어에 대해 다음 사항에 Amazon Q Business유의하세요.

  Amazon Q Business 는 사용자 이메일 ID를 사용하여 인덱스의 문서에 대한 최종 사용자 액세스를 결정합니다. Amazon Kendra 인덱스를에 연결하면는 최종 사용자를 위한 문서 필터링을 활성화하기 위해 Amazon Kendra에 사용자의 식별 이메일 ID를 Amazon Q Business Amazon Q Business 릴레이합니다. Amazon Kendra 인덱스에 연결된 데이터 소스가 이메일 ID 기반 문서 필터링을 사용하지 않거나 이메일 ID가 없는 경우는 퍼블릭 문서에서만 응답을 Amazon Q Business 생성합니다.

## Amazon Kendra Developer Edition 인덱스
<a name="kendra-developer-index"></a>

Amazon Kendra Developer Edition 인덱스는 사용 사례를 테스트할 수 있는 시맨틱 검색 기능도 제공합니다. 그러나 프로덕션 사용 사례에는 권장하지 않습니다.

**Topics**
+ [지원되는 기능](#kendra-dev-index-features)
+ [제한 사항](#dev-index-limitations)

### 지원되는 기능
<a name="kendra-dev-index-features"></a>

RAG 사용 사례에 대해 [검색](https://docs.aws.amazon.com/kendra/latest/APIReference/API_Retrieve.html) API 작업을 사용하는 경우 Amazon Kendra Developer Edition 인덱스에서는 [고급 쿼리 구문](https://docs.aws.amazon.com/kendra/latest/dg/searching-example.html#searching-index-query-syntax)을 사용한 쿼리, 쿼리에 대한 [맞춤법 수정 제안](https://docs.aws.amazon.com/kendra/latest/dg/query-spell-check.html), [패싯](https://docs.aws.amazon.com/kendra/latest/dg/filtering.html#search-facets), 검색 쿼리 자동 완성을 위한 [쿼리 제안](https://docs.aws.amazon.com/kendra/latest/dg/query-suggestions.html), [증분 학습](https://docs.aws.amazon.com/kendra/latest/dg/submitting-feedback.html) 기능이 지원됩니다.

검색 사용 사례에 [쿼리](https://docs.aws.amazon.com/kendra/latest/APIReference/API_Query.html) API 작업을 사용하는 경우 Amazon Kendra Developer Edition 인덱스에서는 모든 기능이 지원됩니다.

### 제한 사항
<a name="dev-index-limitations"></a>

다음은 Amazon Kendra Developer Edition 인덱스의 알려진 제한 사항을 간략하게 설명합니다.
+ 에서 Amazon Kendra Developer Edition 인덱스를 사용하는 경우 문서에 대한 최종 사용자 액세스 제어에 대해 다음 사항에 Amazon Q Business유의하세요.

  Amazon Q Business 는 사용자 이메일 ID를 사용하여 인덱스의 문서에 대한 최종 사용자 액세스를 결정합니다. Amazon Kendra 인덱스를에 연결하면는 최종 사용자를 위한 문서 필터링을 활성화하기 위해 Amazon Kendra에 사용자의 식별 이메일 ID를 Amazon Q Business Amazon Q Business 릴레이합니다. Amazon Kendra 인덱스에 연결된 데이터 소스가 이메일 ID 기반 문서 필터링을 사용하지 않거나 이메일 ID가 없는 경우는 퍼블릭 문서에서만 응답을 Amazon Q Business 생성합니다.

# Amazon Kendra의 인덱스에 문서 추가
<a name="hiw-index-adding-docs"></a>

인덱스에 문서를 추가하는 방법은 문서를 저장하는 방식에 따라 달라집니다.
+  Amazon S3 버킷 또는 Microsoft SharePoint 사이트와 같은 일종의 리포지토리에 문서를 저장하는 경우 [데이터 소스 커넥터를](https://docs.aws.amazon.com/kendra/latest/dg/data-source.html) 사용하여 리포지토리에서 문서를 인덱싱합니다.
+ 문서를 리포지토리에 저장하지 않는 경우 [BatchPutDocument](https://docs.aws.amazon.com/kendra/latest/APIReference/API_BatchPutDocument.html) API 작업을 사용하여 문서를 직접 인덱싱합니다.
+  Amazon Kendra (Amazon S3) 버킷에 저장해야 하는 FAQ 질문 및 답변의 경우 버킷에서 업로드합니다.

 Amazon Kendra 콘솔 AWS CLI, 또는 AWS SDK를 사용하여 인덱스를 생성할 수 있습니다. 인덱싱할 수 있는 문서 유형에 대한 자세한 내용은 [문서 유형](https://docs.aws.amazon.com/kendra/latest/dg/index-document-types.html)을 참조하세요.

# Amazon Kendra 예약 또는 공통 문서 필드 사용
<a name="index-reserved-fields-hiw"></a>

[UpdateIndex](https://docs.aws.amazon.com/kendra/latest/APIReference/API_UpdateIndex.html) API 작업을 사용하여 예약 또는 공통 필드를 생성할 수 있습니다. 이렇게 하려면를 사용하고 Amazon Kendra 예약 인덱스 필드 이름을 `DocumentMetadataConfigurationUpdates`지정하여 동등한 문서 속성/필드 이름에 매핑합니다. 사용자 지정 필드도 생성할 수 있습니다.

데이터 소스 커넥터를 사용하는 경우 데이터 소스 문서 필드를 Amazon Kendra 인덱스 필드에 매핑하는 필드 매핑이 대부분 포함됩니다. 콘솔을 사용하는 경우 데이터 소스를 선택하고 편집 작업을 선택한 다음 데이터 소스 구성을 위한 필드 매핑 섹션 옆으로 이동하여 필드를 업데이트합니다.

필드를 displayable, facetable, searchable, sortable로 설정하도록 `Search` 객체를 구성할 수 있습니다. 필드의 순위 순서, 부스트 기간 또는 부스팅에 적용할 기간, 최신성, 중요도 값 및 특정 필드 값에 매핑된 중요도 값을 설정하도록 `Relevance` 객체를 구성할 수 있습니다.

콘솔을 사용하는 경우 탐색 메뉴에서 패싯 옵션을 선택하여 필드에 대한 검색 설정을 구성할 수 있습니다. 관련성 조정을 설정하려면 탐색 메뉴에서 인덱스를 검색하는 옵션을 선택하고 쿼리를 입력한 다음 사이드 패널 옵션을 사용하여 검색 관련성을 조정합니다. 필드를 생성한 후에는 필드 유형을 변경할 수 없습니다.

Amazon Kendra에서 사용할 수 있는 예약된 문서 필드 또는 공통 문서 필드는 다음과 같습니다.
+ `_authors` - 문서 내용을 책임지는 1명 이상의 작성자 목록
+ `_category` - 문서를 특정 그룹에 배치하는 범주
+ `_created_at` - 문서가 생성된 ISO 8601 형식의 날짜 및 시간. 예를 들어, 2012-03-25T12:30:10\$101:00은 중부 유럽 시간으로 2012년 3월 25일 오후 12시 30분 10초에 대한 ISO 8601 날짜/시간 형식입니다.
+ `_data_source_id` - 문서가 포함된 데이터 소스의 식별자
+ `_document_body` - 문서의 내용
+ `_document_id` - 문서의 고유 식별자
+ `_document_title` - 문서의 제목
+ `_excerpt_page_number` - 문서 발췌문이 나타나는 PDF 파일의 페이지 번호 2020년 9월 8일 이전에 인덱스를 만든 경우 이 속성을 사용하려면 먼저 문서를 다시 인덱싱해야 합니다.
+ `_faq_id` - 질문-답변 유형 문서(FAQ)인 경우 FAQ의 고유 식별자
+ `_file_type` - 문서의 파일 유형(예: pdf 또는 doc)
+ `_last_updated_at` - 문서가 마지막으로 업데이트된 ISO 8601 형식의 날짜 및 시간. 예를 들어, 2012-03-25T12:30:10\$101:00은 중부 유럽 시간으로 2012년 3월 25일 오후 12시 30분 10초에 대한 ISO 8601 날짜/시간 형식입니다.
+ `_source_uri` - 문서를 사용할 수 있는 URI(예: 회사 웹 사이트의 문서 URI)
+ `_version` - 문서의 특정 버전을 나타내는 식별자
+ `_view_count` - 문서가 조회된 횟수
+ `_language_code`(문자열) - 문서에 적용되는 언어의 코드 언어를 지정하지 않으면 영어가 기본값으로 사용됩니다. 코드를 포함하여 지원되는 언어에 대한 자세한 내용은 [영어 이외의 언어로 문서 추가](https://docs.aws.amazon.com/kendra/latest/dg/in-adding-languages.html)를 참조하세요.

예약 필드 또는 공통 필드를 만들 때와 마찬가지로 `UpdateIndex` API 작업과 `DocumentMetadataConfigurationUpdates`를 사용하여 사용자 지정 필드를 생성합니다. 사용자 지정 필드에 적절한 데이터 유형을 설정해야 합니다.

콘솔을 사용하는 경우 데이터 소스를 선택하고 편집 작업을 선택한 다음 데이터 소스 구성을 위한 필드 매핑 섹션 옆으로 이동하여 필드를 업데이트합니다. 일부 데이터 소스는 새 필드 또는 사용자 지정 필드 추가를 지원하지 않습니다. 필드를 생성한 후에는 필드 유형을 변경할 수 없습니다.

사용자 지정 필드에 설정할 수 있는 유형은 다음과 같습니다.
+ Date
+ 숫자
+ 문자열
+ 문자열 목록

[BatchPutDocument](https://docs.aws.amazon.com/kendra/latest/APIReference/API_BatchPutDocument.html) API 작업을 사용하여 인덱스에 문서를 추가한 경우, `Attributes`는 문서의 필드/속성을 나열하고 `DocumentAttribute` 객체를 사용하여 필드를 생성합니다.

 Amazon S3 데이터 소스에서 인덱싱된 문서의 경우 필드 정보가 포함된 [JSON 메타데이터 파일을](https://docs.aws.amazon.com/kendra/latest/dg/s3-metadata.html) 사용하여 필드를 생성합니다.

지원되는 데이터베이스를 데이터 소스로 사용하는 경우 [필드 매핑 옵션](https://docs.aws.amazon.com/kendra/latest/dg/data-source-database.html#data-source-procedure-database)을 사용하여 필드를 구성할 수 있습니다.

# Amazon Kendra에서 인덱스의 응답 검색
<a name="index-searching"></a>

인덱스를 생성한 후 문서 검색을 시작할 수 있습니다.

 Amazon Kendra 인덱스를 검색하려면 API [ 검색](https://docs.aws.amazon.com/kendra/latest/APIReference/API_Retrieve.html) 작업 또는 [쿼리](https://docs.aws.amazon.com/kendra/latest/APIReference/API_Query.html) API 작업을 사용합니다.

검색 API 작업은 검색 증강 생성(RAG) 사용 사례에 적합합니다. 지정된 쿼리의 경우 최대 200개의 토큰 단어로 구성된 의미상 관련된 구절의 순위가 매겨진 문서 목록을 반환합니다. 이를 대규모 언어 모델(LLM)로 전송하여 RAG로 답변을 생성할 수 있습니다. 자세한 내용은 [인덱스 검색](https://docs.aws.amazon.com/kendra/latest/dg/searching.html)을 참조하세요.

쿼리 API 작업은 문서 검색 사용 사례에 가장 적합합니다. 지정된 쿼리의 경우 쿼리와 관련된 100개의 단어 발췌문이 포함된 순위가 매겨진 문서 목록을 반환합니다. 이는 사용자가 순위가 매겨진 문서 목록을 탐색하는 기존 문서 검색 사용 사례에 유용합니다.

각 인덱스 유형에 대해 검색 및 쿼리 API 작업에서 지원되는 기능을 확인하려면 [인덱스 유형](https://docs.aws.amazon.com/kendra/latest/dg/hiw-index-types.html)을 참조하세요.