Skip to content

[FEATURE] Add enhanced PDF Analysis Support for Amazon Bedrock Claude Models #332

@statefb

Description

@statefb

Problem Statement

Currently, the Strands Agents SDK supports PDF document processing through Claude models, but lacks support for the newly announced Citations API and enhanced PDF analysis capabilities available in Amazon Bedrock. This creates several limitations:

  • No Citation Support: Users cannot enable Claude's citation mode to get detailed references to source documents, which is crucial for building trustworthy AI applications
  • Limited PDF Analysis: While basic PDF text extraction works, there's no explicit support for the enhanced PDF capabilities like chart analysis and visual content understanding

Proposed Solution

from strands.models import BedrockModel

model = BedrockModel(
    model_id="anthropic.claude-3-7-sonnet-20241022-v1:0",
    citations_enabled=True,  # New parameter. Also enalbes chart/visual analysis
    max_tokens=4096
)

# Usage with documents
content = [
    {
        "document": {
            "format": "pdf",
            "name": "research_paper.pdf",
            "source": {"bytes": pdf_bytes}
        }
    },
    {"text": "Summarize the key findings with citations"}
]

Use Case

  • Legal Research Applications: Law firms need to trace AI-generated legal advice back to specific case law and statutes
  • Academic Research Tools: Researchers require citations to verify claims and build upon existing work
  • Financial Document Analysis: Analyzing financial reports with proper attribution to specific charts and data points
  • Compliance and Audit Systems: Organizations need verifiable sources for AI-generated compliance reports
  • Medical Literature Review: Healthcare applications requiring traceable references to medical studies

Alternatives Solutions

No response

Additional Context

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions