mirror of
https://github.com/hwchase17/langchain.git
synced 2026-01-24 13:58:11 +00:00
**Description:** It will add support for filter out kendra search by
score confidence which will make result more accurate.
For example
```
retriever = AmazonKendraRetriever(
index_id=kendra_index_id, top_k=5, region_name=region,
score_confidence="HIGH"
)
```
Result will not include the records which has score confidence "LOW" or "MEDIUM".
Relevant docs
https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/kendra/client/query.html
https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/kendra/client/retrieve.html
**Issue:** the issue # it resolve #11801
**twitter:** [@SmitCode](https://twitter.com/SmitCode)