langchain-ai / langchain-aws

Build LangChain Applications on AWS
MIT License
97 stars 71 forks source link

Add functionality to filter Bedrock Knowledge base results by a minimum confidence score #48

Closed ihmaws closed 4 months ago

ihmaws commented 4 months ago

Similar to the Kendra retriever it would be good to provide support for a min_score_confidence field on the AmazonKnowledgeBasesRetriever class.

See here for existing Kendra functionality: https://github.com/langchain-ai/langchain-aws/blob/main/libs/aws/langchain_aws/retrievers/kendra.py#L373