Home icon

Improve contract search accuracy with auto-generated filters in Amazon Bedrock

Machine Learning Blog



This article describes AIDA, an AI-driven annotation solution that transforms unstructured contracts into searchable intelligence using Amazon Bedrock Knowledge Bases and retrieval-augmented generation (RAG).

  • Implements implicit filtering to automatically apply metadata-based conditions before semantic search
  • Uses explicit filtering at the application layer to enforce business policies and compliance requirements
  • Enriches document chunks with metadata values like governing law, effective date, and contract type
  • Combines filtering and metadata enrichment to dramatically improve RAG accuracy and reduce hallucinations
  • Tested on Contract Understanding Atticus Dataset showing metadata enrichment improved answer quality from partial to most reliable

AIDA provides enterprise-ready contract intelligence by grounding legal document analysis in proper context and access boundaries, reducing manual review effort while maintaining accuracy for critical business decisions.



Go to article

The AWS News Feed is currently looking for gold sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.

Related articles

Aug 13
2026
Accelerating M&A due diligence with Amazon Bedrock AgentCore
Jul 16
2026
Build enterprise search for agents with Amazon Bedrock Managed Knowledge Base
Aug 4
2026
Introducing Web Search on Amazon Bedrock for foundation model grounding
Dec 2
2024
Amazon Bedrock Knowledge Bases now provides auto-generated query filters for improved retrieval

The AWS News Feed is currently looking for silver sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.