📝 Archived :https://ojitha.blogspot.com.au
Claude MCP on Amazon Bedrock
This post details the implementation of the Model Context Protocol (MCP) to connect external capabilities with Claude models running on Amazon Bedrock. It explains how the architecture decouples integration code by leveraging MCP servers and clients that communicate via flexible transport layers like standard input/output or network protocols. Through practical code examples, it demonstrates how to translate tool definitions into Bedrock's required format for dynamic function execution. Furthermore, the texts contrast three foundational primitives: tools driven autonomously by the model, resources fetched proactively by application code, and prompts triggered explicitly by users. Ultimately, these components establish a standardized, secure, and maintainable framework for building sophisticated agentic applications.
Claude Extended Thinking on Amazon Bedrock
The provided text explains extended thinking for Claude models on Amazon Bedrock, a feature that allows the AI to use a dedicated internal "scratchpad" to process complex logic before generating a final answer. This mechanism improves performance for multi-step reasoning and technical tasks, though it increases latency and costs as reasoning tokens are billed as output. Modern Claude models utilise adaptive thinking to manage this process, while older versions require a manual token budget. For security, these internal monologues are protected by cryptographic signatures to prevent tampering during multi-turn conversations. Developers are encouraged to use quantitative evaluations to determine if the accuracy gains of extended thinking justify the additional resource consumption. Ultimately, the feature decouples internal problem decomposition from customer-facing text, ensuring cleaner and more logical responses.
Claude RAG on Amazon Bedrock
These documents examine advanced Retrieval-Augmented Generation (RAG) techniques implemented through Claude on Amazon Bedrock to handle large-scale data analysis. The text outlines essential architectural stages, beginning with document preprocessing and the strategic use of text chunking to maintain semantic integrity. It highlights the move towards hybrid search, which merges the conceptual strengths of vector embeddings with the precision of BM25 lexical matching. To ensure the highest accuracy, the sources describe sophisticated workflows involving Reciprocal Rank Fusion and LLM-based reranking to prioritise the most relevant data. Finally, the concept of contextual retrieval is introduced, where Claude generates snippets to anchor individual text fragments within their broader narrative. This comprehensive guide serves as a technical roadmap for building scalable, high-performance AI systems that are both cost-effective and contextually aware
Claude on Amazon Bedrock - Mastering Tool Use and Structured Data
This technical guide details how to implement structured data extraction and multi-turn tool use using Claude on Amazon Bedrock. By defining Pydantic schemas as tool inputs, developers can force the model to return precise, type-safe data while bypassing unreliable conversational filler. The documentation explores advanced orchestration techniques, including batch tool execution for parallel processing and autonomous tool chaining for complex, multi-step tasks. Additionally, it highlights the use of built-in Anthropic tools like the text editor to perform direct file operations through validated backend handlers. The provided examples demonstrate a robust architecture for building resilient, agentic workflows that can self-correct when encountering validation errors. Overall, the text serves as a comprehensive manual for integrating large language models into production backend services with high reliability.
Claude on Amazon Bedrock - Tool use basics
This source provides a technical guide for integrating Claude models with Amazon Bedrock to enable advanced functional capabilities. It focuses primarily on tool use, a mechanism that allows the AI to interact with external APIs, databases, and custom code to perform real-time actions. The text details the multi-turn communication cycle between the application server and the model, using JSON schemas to define how tools are called and executed. Practical implementation is demonstrated through Python and Boto3, highlighting the importance of structured message histories and descriptive naming for reliability. Additionally, the documentation explains how to use Pydantic for automated schema generation and rigorous input validation. By following these workflows, developers can transition from static chat interfaces to autonomous, agentic AI systems capable of solving complex tasks.