Closed ravediamond closed 6 days ago
@3coins can you please have a look? I confirmed that this PR is working. Thanks in advance.
@3coins Thank you for the review. I correct my PR as per your recommendations. What do you think ?
Ok I corrected as per your reviews and I will create another PR for the nextToken when it is merged. Thanks in advance fir the review @3coins and also for having merged my other PR.
Description
This pull request enhances the functionality of the
AmazonKnowledgeBasesRetriever
class by adding optional parameters for the following features (already implemented in boto3):filter
parameter inVectorSearchConfig
to filter on metadata tags.overrideSearchType
inVectorSearchConfig
to override the default search type to be able to choose between 'Default', 'Hybrid' or 'Semantic'Here an example answer before the change:
And now after the change:
Change
SearchFilter
class to handle parameter filteringfilter
parameter inVectorSearchConfig
overrideSearchType
inVectorSearchConfig
Motivation
This will allow users to better use the full capacity of Bedrock Knowledge Base.
Additional Notes
nextToken
feature when with very long results has not been implemented.