📝 Archived :https://ojitha.blogspot.com.au

LangChain Agent on Bedrock

November 7, 2026
LangChain Agent on Bedrock video thumbnail

This post provides a comprehensive technical walkthrough for constructing LangChain agents on AWS Bedrock using uv package management and foundation models such as Anthropic Claude, OpenAI, and Google Gemma via the Bedrock Converse API. It compares lightweight ReAct agents ( create_agent ) designed for single-purpose tasks against feature-rich deep agents ( create_deep_agent ). Furthermore, the guide details short-term memory checkpoints and demonstrates optimising Model Context Protocol (MCP) tool execution via "Code Mode", presenting tools as sandbox-executed code wrappers to preserve data privacy, enable control loops, and decrease token waste by up to 98.7%.

More…

Kubernetes on Raspberry Pi 5: Part 2 - Object Model

November 3, 2026
Kubernetes on Raspberry Pi 5: Part 2 video thumbnail

Running workloads on a Kubernetes cluster means working with its declarative Object Model rather than starting containers by hand. Using the 4-node Raspberry Pi 5 cluster from Part 1, this guide explains how the control plane reconciles each object's spec (desired state) with its status (actual state). It covers the core building blocks: nodes, namespaces, Pods, labels and label selectors, ReplicaSets and Deployments. You will scale ReplicaSets, run RollingUpdate image upgrades, inspect revisions and roll back with kubectl rollout undo. A Redis and Nginx application then shows internal Service discovery through CoreDNS, NodePort access, and load balancing across endpoints by kube-proxy. The guide finishes with kubectl exec, kubectl logs and kubectl cp for debugging containers.

More…

Claude on Amazon Bedrock: Part 6 - MCP

October 19, 2026
Claude on Amazon Bedrock: Part 6 video thumbnail

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.

More…

Claude on Amazon Bedrock: Part 5 - Extended Thinking

September 21, 2026
Claude on Amazon Bedrock: Part 5 video thumbnail

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.

More…

Claude on Amazon Bedrock: Part 4 - RAG

September 20, 2026
Claude on Amazon Bedrock: Part 4 video thumbnail

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

More…