<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Sitar Gold on Medium]]></title>
        <description><![CDATA[Stories by Sitar Gold on Medium]]></description>
        <link>https://medium.com/@sitardaniel?source=rss-8f59dc68f4ed------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*DvCbpCywbzOmlUxKglFSiw.jpeg</url>
            <title>Stories by Sitar Gold on Medium</title>
            <link>https://medium.com/@sitardaniel?source=rss-8f59dc68f4ed------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 12:28:36 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sitardaniel/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Claude on Amazon Bedrock - Part 6: Advanced Features, Agents, and What the Course Doesn’t Cover]]></title>
            <link>https://sitardaniel.medium.com/claude-on-amazon-bedrock-part-6-advanced-features-agents-and-what-the-course-doesnt-cover-69f0e528194d?source=rss-8f59dc68f4ed------2</link>
            <guid isPermaLink="false">https://medium.com/p/69f0e528194d</guid>
            <category><![CDATA[claude]]></category>
            <category><![CDATA[aws-bedrock]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Sitar Gold]]></dc:creator>
            <pubDate>Sun, 05 Apr 2026 11:20:20 GMT</pubDate>
            <atom:updated>2026-04-05T14:20:14.066Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Part 6 of 6 in the series: “Claude with Amazon Bedrock - An AWS Community Builder’s Field Notes”</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9H1bTnV8XebqDLBO_4LoWQ.png" /></figure><p><em>[← Part 5: Retrieval-Augmented Generation (RAG)]</em></p><p>We’ve covered the API, prompt engineering, tool use, MCP, and RAG. This final part covers what the course calls “Features of Claude” — capabilities baked into the model itself - plus the agents module, Claude Code, and my honest assessment of what’s missing from an AWS practitioner’s perspective.</p><h3>Extended Thinking</h3><p>Extended thinking is Claude’s ability to reason through a problem step-by-step before producing the final answer. You see this as a visible thinking block in the response, separate from the actual output.</p><p>You enable it by passing additional model fields:</p><pre>params[&quot;additionalModelRequestFields&quot;] = {<br>    &quot;thinking&quot;: {<br>        &quot;type&quot;: &quot;enabled&quot;,<br>        &quot;budget_tokens&quot;: 1024,<br>    }<br>}</pre><p>budget_tokens is the maximum number of tokens Claude can use for internal reasoning. A higher budget means more thorough reasoning for complex problems — and a higher cost. The course uses 1024 as a baseline, recommending higher budgets only for tasks that genuinely need them: math problems, multi-step logical reasoning, and complex code analysis.</p><p>The thinking block is visible in the response but isn’t streamed back to the user in typical production setups — it’s internal scaffolding. The practical value: for hard problems, extended thinking demonstrably improves the quality and correctness of the final answer.</p><h3>Image Support</h3><p>Claude is multimodal - it can reason over images as well as text. The course demonstrates this using Bedrock’s message format, which accepts base64-encoded images in the content array:</p><pre>def encode_image(image_path):<br>    with open(image_path, &quot;rb&quot;) as f:<br>        return base64.b64encode(f.read()).decode(&quot;utf-8&quot;)<br>messages = [{<br>    &quot;role&quot;: &quot;user&quot;,<br>    &quot;content&quot;: [<br>        {<br>            &quot;image&quot;: {<br>                &quot;format&quot;: &quot;png&quot;,<br>                &quot;source&quot;: {<br>                    &quot;bytes&quot;: base64.b64decode(encode_image(&quot;diagram.png&quot;))<br>                }<br>            }<br>        },<br>        {&quot;text&quot;: &quot;Describe the architecture in this diagram and identify any security concerns.&quot;}<br>    ]<br>}]</pre><p>This works well for architecture diagrams, screenshots, charts, and photos. The course walks through several practical examples: reading data from a chart image, describing a UI screenshot, and analyzing an infrastructure diagram. For AWS practitioners, the obvious use cases include automated review of architecture diagrams and parsing of screenshots from the console or monitoring dashboards.</p><h3>PDF Support</h3><p>Similarly, Claude can reason over PDF documents. The course shows how to pass a PDF as base64 content:</p><pre>with open(&quot;document.pdf&quot;, &quot;rb&quot;) as f:<br>    pdf_data = base64.b64encode(f.read()).decode(&quot;utf-8&quot;)<br>messages = [{<br>    &quot;role&quot;: &quot;user&quot;,<br>    &quot;content&quot;: [<br>        {<br>            &quot;document&quot;: {<br>                &quot;format&quot;: &quot;pdf&quot;,<br>                &quot;name&quot;: &quot;technical-spec&quot;,<br>                &quot;source&quot;: {<br>                    &quot;bytes&quot;: base64.b64decode(pdf_data)<br>                }<br>            }<br>        },<br>        {&quot;text&quot;: &quot;Summarize the key technical requirements in this spec.&quot;}<br>    ]<br>}]</pre><p>This is useful for document Q&amp;A workflows where you don’t need the full RAG pipeline - when the document fits comfortably in the context window, and you’re handling one document at a time. For large document sets or ongoing retrieval, RAG (Part 5) is still the right tool.</p><h3>Prompt Caching</h3><p>Prompt caching is one of the most practically valuable features in the course from a cost and latency perspective.</p><p>The idea: if part of your prompt is large and doesn’t change between requests - a long system prompt, a large document, a static set of tool definitions - you can ask Bedrock to <strong>cache that content</strong>. On subsequent requests, Bedrock skips re-processing the cached portion, which reduces both latency and cost for the cached tokens.</p><p>You mark a cache point by adding a cachePoint entry to your system prompt or tool list:</p><pre>params[&quot;system&quot;] = [<br>    {&quot;text&quot;: system_prompt},<br>    {&quot;cachePoint&quot;: {&quot;type&quot;: &quot;default&quot;}},<br>]</pre><p>For tools:</p><pre>tools_with_cache = tools + [{&quot;cachePoint&quot;: {&quot;type&quot;: &quot;default&quot;}}]<br>params[&quot;toolConfig&quot;] = {&quot;tools&quot;: tools_with_cache, &quot;toolChoice&quot;: choice}</pre><p>The cache is keyed on the exact content before the cache point. If that content changes even slightly, the cache is invalidated. The course tracks cache hits and misses through the usage stats returned in every response:</p><pre>usage = response[&quot;usage&quot;]<br># usage[&quot;cacheReadInputTokens&quot;] — tokens served from cache<br># usage[&quot;cacheWriteInputTokens&quot;] — tokens written to cache on this request</pre><p>For any application where you’re making many requests with the same large context - a RAG system with a fixed document, a code assistant with a large codebase prefix, an eval runner with a static system prompt - caching is straightforward to add and can cut costs significantly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IvI81cxGo7fByu2fZaemGw.png" /></figure><h3>Agents and Claude Code</h3><p>The agents module is where everything in the course converges.</p><p>The course frames the key principle of agents clearly: <strong>agents get context through tools, not through memory.</strong> Rather than trying to maintain a persistent internal state, a well-designed agent calls tools to retrieve current information - the date, the contents of a file, the status of a system - when it needs it.</p><h3>Claude Code</h3><p>Claude Code is Anthropic’s command-line tool for agentic coding. Unlike asking Claude to write code in a chat window, Claude Code runs in your terminal with direct access to your file system, terminal, and repository. It can read files, write files, run commands, run tests, and iterate.</p><p>The course covers several Claude Code workflows worth highlighting:</p><p><strong>Planning first.</strong> Before writing any code, ask Claude Code to create a plan in a PLAN.md file. This externalizes the reasoning — you can review the plan, edit it, and only then let Claude Code execute. This dramatically reduces wasted cycles on incorrect approaches.</p><p><strong>Test-driven development.</strong> Write the tests first (or have Claude Code write them), run them to confirm they fail, then implement the code. The failing tests act as a concrete specification — Claude Code knows exactly what “done” looks like.</p><p><strong>Parallelization with git worktrees.</strong> For tasks that can be broken into independent subproblems, you can spin up multiple Claude Code instances in separate git worktrees - each working on a different branch simultaneously. The course shows this as one of the highest-leverage patterns for speeding up complex development tasks.</p><p><strong>Automated debugging.</strong> The course demonstrates a GitHub Actions workflow where failing tests automatically trigger a Claude Code debugging session. The agent reviews the test output, identifies the issue, makes a targeted fix, and re-runs the tests — without any human intervention. When it works, this is genuinely impressive.</p><h3>Computer Use</h3><p>The course touches briefly on Computer Use — Claude’s ability to control a computer through screenshots and actions (mouse clicks, keyboard input). It demonstrates Claude navigating a web browser and filling out a form autonomously.</p><p>The honest assessment: Computer Use is still in its early stages. It’s slow, can be brittle on complex UI flows, and requires careful sandboxing to use safely. The course presents it as a preview of what’s coming rather than a production-ready feature.</p><h3>What the Course Doesn’t Cover</h3><p>After going through the full 8 hours, there are some meaningful gaps — especially for AWS practitioners building production systems.</p><p><strong>AWS-native RAG.</strong> The course builds RAG with chromadb and local compute. It doesn&#39;t cover <strong>Knowledge Bases for Amazon Bedrock</strong>, which handles chunking, embedding, storage, and retrieval as a managed service — and integrates with S3, Kendra, OpenSearch, and Aurora pgvector. For anyone deploying RAG on AWS in production, this is the most important thing the course skips.</p><p><strong>IAM and security.</strong> The course calls Bedrock with hard-coded region strings and ambient credentials. It doesn’t cover least-privilege IAM policies for Bedrock access, resource-based policies, VPC endpoints, or the difference between user-level and service role access. For production AWS deployments, these are not optional topics.</p><p><strong>Cost monitoring.</strong> Bedrock token usage appears briefly in the caching section, but there’s no discussion of CloudWatch cost alarms, AWS Cost Explorer for AI spend, or how to estimate and bound API costs for different workloads. This matters a lot when you start running evals or batch jobs at scale.</p><p><strong>Error handling and retries.</strong> Every API call in the course is a happy-path call. Real applications need retry logic with exponential backoff for throttling errors, circuit breakers for model outages, and graceful degradation when the API is unavailable. None of this is covered.</p><p><strong>Orchestration frameworks.</strong> The course builds everything from scratch with raw boto3. It doesn&#39;t discuss LangChain, LlamaIndex, or Anthropic&#39;s own SDKs - the abstractions most teams actually use for production AI applications. Understanding the primitives (which this course teaches well) is valuable, but the gap between course-level code and production-ready code is real.</p><h3>Final Thoughts</h3><p>The “Claude with Amazon Bedrock” course is a well-structured, hands-on journey through the full Claude development stack. By the end, you’ll have working knowledge of calling the API, building stateful chatbots, writing and evaluating prompts systematically, giving Claude tools to act in the world, building RAG pipelines from scratch, using Claude’s advanced features, defining MCP servers, and running agents with Claude Code.</p><p>The Jupyter Notebook format keeps it practical - every concept is followed immediately by code you can run and modify. The exercises are thoughtfully designed, and the AWS framing throughout makes it feel grounded and relevant for practitioners already working in the AWS ecosystem.</p><p>The gaps I listed above are real, but they don’t undermine the value of the core material. If anything, knowing what the course doesn’t cover is useful - it tells you where to look next.</p><p><em>This is Part 6, the final part. If you found the series useful, follow for more AWS and AI content from an AWS Community Builder. And if you have questions about any of the techniques covered, drop them in the comments - I’ll do my best to answer.</em></p><h3>Series Index</h3><ul><li><a href="https://sitardaniel.medium.com/claude-on-amazon-bedrock-part-1-what-you-need-to-know-before-you-start-40dcbcc4e039?postPublishedType=repub">Part 1</a>: What You Need to Know Before You Start</li><li><a href="https://sitardaniel.medium.com/claude-on-amazon-bedrock-part-2-working-with-the-api-12dde7f5569c">Part 2</a>: Working with the API</li><li><a href="https://sitardaniel.medium.com/claude-on-amazon-bedrock-part-3-prompt-engineering-and-evaluations-8b04afe602c0">Part 3</a>: Prompt Engineering and Evaluations</li><li><a href="https://sitardaniel.medium.com/claude-on-amazon-bedrock-part-4-tool-use-and-the-model-context-protocol-3b8cbc8eaed0">Part 4</a>: Tool Use and the Model Context Protocol</li><li><a href="https://sitardaniel.medium.com/claude-on-amazon-bedrock-part-5-retrieval-augmented-generation-rag-36255aaeacb7">Part 5</a>: Retrieval-Augmented Generation (RAG)</li><li><a href="https://sitardaniel.medium.com/claude-on-amazon-bedrock-part-6-advanced-features-agents-and-what-the-course-doesnt-cover-69f0e528194d">Part 6</a>: Advanced Features, Agents, and What’s Missing <em>(this part)</em></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=69f0e528194d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Claude on Amazon Bedrock - Part 5: Retrieval-Augmented Generation (RAG)]]></title>
            <link>https://sitardaniel.medium.com/claude-on-amazon-bedrock-part-5-retrieval-augmented-generation-rag-36255aaeacb7?source=rss-8f59dc68f4ed------2</link>
            <guid isPermaLink="false">https://medium.com/p/36255aaeacb7</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[aws-bedrock]]></category>
            <category><![CDATA[claude]]></category>
            <dc:creator><![CDATA[Sitar Gold]]></dc:creator>
            <pubDate>Sun, 05 Apr 2026 11:17:04 GMT</pubDate>
            <atom:updated>2026-04-05T14:18:01.576Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Part 5 of 6 in the series: “Claude with Amazon Bedrock — An AWS Community Builder’s Field Notes”</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jyPwa_mga1DXstOxlw4Psg.png" /></figure><p><em>[← Part 4: Tool Use and the Model Context Protocol]</em></p><p>RAG is the technique that makes Claude genuinely useful for your own data. Without it, Claude knows only what it was trained on. With it, Claude can answer questions about your internal documentation, your product catalog, your support tickets, your runbooks — anything you can store and search.</p><p>The course covers the full RAG pipeline in depth, from how you break a document apart all the way through advanced retrieval strategies that dramatically improve answer quality. This is one of the denser modules, but also one of the most practically applicable.</p><h3>The Core Problem RAG Solves</h3><p>Large language models have a fixed knowledge cutoff and no awareness of your private data. There are two naive solutions: fine-tuning (expensive, slow, doesn’t work well for factual retrieval) and shoving everything into the context window (hits token limits, degrades performance, and costs a lot).</p><p>RAG takes a different approach. Before answering a question, you <strong>retrieve</strong> the most relevant chunks of text from your knowledge base and <strong>include them in the prompt</strong>. Claude then reasons over real, current, private information you’ve provided — without touching the model weights at all.</p><h3>Step 1: Text Chunking</h3><p>Before you can retrieve anything, you have to break your documents into chunks. The course implements three strategies from scratch.</p><h3>Character Chunking</h3><p>The simplest approach — split by character count with a small overlap to avoid cutting sentences at chunk boundaries:</p><pre>def chunk_by_char(text, chunk_size=150, chunk_overlap=20):<br>    chunks = []<br>    start_idx = 0<br><br>    while start_idx &lt; len(text):<br>        end_idx = min(start_idx + chunk_size, len(text))<br>        chunk_text = text[start_idx:end_idx]<br>        chunks.append(chunk_text)<br>        start_idx = (<br>            end_idx - chunk_overlap if end_idx &lt; len(text) else len(text)<br>        )<br><br>    return chunks</pre><p>Works fine for short texts. Breaks poorly at word and sentence boundaries for anything longer.</p><h3>Sentence Chunking</h3><p>Group sentences together with configurable overlap:</p><pre>def chunk_by_sentence(text, max_sentences_per_chunk=5, overlap_sentences=1):<br>    sentences = re.split(r&quot;(?&lt;=[.!?])\s+&quot;, text)<br>    chunks = []<br>    start_idx = 0<br><br>    while start_idx &lt; len(sentences):<br>        end_idx = min(start_idx + max_sentences_per_chunk, len(sentences))<br>        current_chunk = sentences[start_idx:end_idx]<br>        chunks.append(&quot; &quot;.join(current_chunk))<br>        start_idx += max_sentences_per_chunk - overlap_sentences<br><br>    return chunks</pre><p>Better than character chunking for most prose. Each chunk stays semantically coherent.</p><h3>Section Chunking</h3><p>For structured documents with headers, split on section boundaries:</p><pre>def chunk_by_section(document_text):<br>    pattern = r&quot;\n## &quot;<br>    return re.split(pattern, document_text)</pre><p>This produces the best results when your documents have consistent structure - documentation, reports, wikis. Each chunk is a complete section with a clear topic.</p><p><strong>The practical rule:</strong> prefer sentence or section chunking over character chunking for real documents. The course recommends experimenting on your specific content — chunking strategy has a significant effect on retrieval quality.</p><h3>Step 2: Embeddings</h3><p>Once you have chunks, you convert them to <strong>embeddings</strong> — dense numeric vectors that capture the semantic meaning of the text. Two texts with similar meaning will have similar embeddings, even if they share no words.</p><p>The course uses Amazon Titan Embeddings through Bedrock:</p><pre>def get_embedding(text):<br>    response = client.invoke_model(<br>        modelId=&quot;amazon.titan-embed-text-v2:0&quot;,<br>        body=json.dumps({&quot;inputText&quot;: text})<br>    )<br>    body = json.loads(response[&quot;body&quot;].read())<br>    return body[&quot;embedding&quot;]</pre><p>You embed every chunk at index time. At query time, you embed the user’s question and find the chunks whose embeddings are most similar.</p><h3>Step 3: Vector Storage and Search</h3><p>The course uses chromadb as a local vector database. Each chunk gets stored with its text and embedding:</p><pre>collection.add(<br>    documents=chunks,<br>    ids=[f&quot;chunk_{i}&quot; for i in range(len(chunks))]<br>)</pre><p>Querying returns the most semantically similar chunks to a given question:</p><pre>results = collection.query(<br>    query_texts=[question],<br>    n_results=3<br>)</pre><p>The retrieved chunks then get injected into the prompt as context for Claude.</p><h3>Step 4: BM25 Lexical Search</h3><p>Vector search is powerful, but it misses exact keyword matches. If someone searches for “S3 bucket policy ARN”, a pure semantic search might return conceptually related content but miss the specific document that uses those exact terms.</p><p>BM25 is a classic information-retrieval algorithm (the basis of Elasticsearch’s default ranking) that scores documents based on term frequency and document frequency. The course implements it using the rank_bm25 library:</p><pre>from rank_bm25 import BM25Okapi<br><br>tokenized_chunks = [chunk.split() for chunk in chunks]<br>bm25 = BM25Okapi(tokenized_chunks)<br><br>def bm25_search(query, n=3):<br>    tokenized_query = query.split()<br>    scores = bm25.get_scores(tokenized_query)<br>    top_indices = sorted(range(len(scores)), key=lambda i: scores[i], reverse=True)[:n]<br>    return [chunks[i] for i in top_indices]</pre><p>BM25 excels at exact term matching, acronyms, error codes, and technical identifiers. It falls short on synonyms and paraphrasing.</p><h3>Step 5: Hybrid Search</h3><p>Neither vector search nor BM25 is universally better. The course combines them using <strong>Reciprocal Rank Fusion (RRF)</strong> — a simple, effective method for merging ranked lists from different search systems:</p><pre>def reciprocal_rank_fusion(rankings, k=60):<br>    scores = {}<br>    for ranking in rankings:<br>        for rank, doc_id in enumerate(ranking):<br>            if doc_id not in scores:<br>                scores[doc_id] = 0<br>            scores[doc_id] += 1 / (rank + k)<br>    return sorted(scores, key=scores.get, reverse=True)</pre><p>You get the ranked results from both BM25 and vector search, run them through RRF, and use the fused ranking to select the top chunks. The result is consistently better than either approach alone — the course demonstrates this with concrete retrieval comparisons on the same dataset.</p><h3>Step 6: Reranking</h3><p>After a hybrid search gives you, say, the top 10 chunks, you can improve precision further with a <strong>reranker</strong> — a model trained specifically to score how relevant a document is to a query.</p><p>The course uses Cohere’s reranking model via Bedrock:</p><pre>response = client.invoke_model(<br>    modelId=&quot;cohere.rerank-v3-5:0&quot;,<br>    body=json.dumps({<br>        &quot;query&quot;: question,<br>        &quot;documents&quot;: candidate_chunks,<br>        &quot;top_n&quot;: 3<br>    })<br>)</pre><p>Reranking is a two-stage process: fast retrieval (BM25 + vectors) gives you a large candidate set, and the reranker does a more expensive but more accurate scoring pass on just those candidates. This is the standard architecture for production RAG systems that need high precision.</p><h3>Step 7: Contextual Retrieval</h3><p>The final RAG technique in the course is Anthropic’s own <strong>contextual retrieval</strong> approach. The problem it solves: individual chunks often lose their context when extracted from a document. A chunk that says “the policy was updated in Q3” is meaningless without knowing which policy from which document.</p><p>Contextual retrieval fixes this by prepending a short, AI-generated context summary to each chunk before embedding it:</p><pre>def add_context_to_chunk(document, chunk):<br>    prompt = f&quot;&quot;&quot;<br>&lt;document&gt;<br>{document}<br>&lt;/document&gt;<br><br>Here is the chunk we want to situate within the whole document:<br>&lt;chunk&gt;<br>{chunk}<br>&lt;/chunk&gt;<br><br>Please give a short succinct context to situate this chunk within the overall document<br>for the purposes of improving search retrieval of the chunk.<br>Answer only with the succinct context and nothing else.<br>&quot;&quot;&quot;<br>    messages = []<br>    add_user_message(messages, prompt)<br>    context = chat(messages)<br>    return f&quot;{context}\n\n{chunk}&quot;</pre><p>The enriched chunk - context + original text - gets embedded and stored. This small addition significantly improves retrieval for chunks that would otherwise be hard to match correctly, because the embedding now captures document-level context rather than just local content.</p><h3>Putting the Full Pipeline Together</h3><p>The complete RAG flow:</p><ol><li><strong>Index time:</strong> chunk your documents → add context to each chunk → embed → store in vector DB + BM25 index</li><li><strong>Query time:</strong> embed the question → run vector search + BM25 → merge with RRF → rerank top candidates → inject top results into Claude prompt → return answer</li></ol><p>The course implements all of this end-to-end in the notebooks. By the time you’ve worked through the RAG module, you have a production-grade retrieval pipeline — not just a “hello world” vector search demo.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W-xKe8yvR1rNuAsa9-15Eg.png" /></figure><h3>What the Course Doesn’t Cover in RAG</h3><p>Worth noting: the course builds RAG pipelines using chromadb and local compute. It doesn&#39;t cover <strong>Amazon OpenSearch</strong>, <strong>pgvector on RDS</strong>, or <strong>Knowledge Bases for Amazon Bedrock</strong> - the managed AWS-native RAG service that handles chunking, embedding, and retrieval for you. If you&#39;re deploying RAG on AWS in production, Knowledge Bases is worth evaluating. But understanding the underlying mechanics from this course makes you a much better user of that managed service.</p><p><em>In </em><a href="https://sitardaniel.medium.com/claude-on-amazon-bedrock-part-6-advanced-features-agents-and-what-the-course-doesnt-cover-69f0e528194d"><em>Part 6</em></a><em> - the final part -we cover Claude’s advanced features (extended thinking, image and PDF support, prompt caching), the agents and Claude Code modules, and an honest look at what the course doesn’t cover.</em></p><p><em>[→ </em><a href="https://sitardaniel.medium.com/claude-on-amazon-bedrock-part-6-advanced-features-agents-and-what-the-course-doesnt-cover-69f0e528194d"><em>Part 6</em></a><em>: Advanced Features, Agents, and What’s Missing]</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=36255aaeacb7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Claude on Amazon Bedrock - Part 4: Tool Use and the Model Context Protocol]]></title>
            <link>https://sitardaniel.medium.com/claude-on-amazon-bedrock-part-4-tool-use-and-the-model-context-protocol-3b8cbc8eaed0?source=rss-8f59dc68f4ed------2</link>
            <guid isPermaLink="false">https://medium.com/p/3b8cbc8eaed0</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[aws-bedrock]]></category>
            <category><![CDATA[claude]]></category>
            <dc:creator><![CDATA[Sitar Gold]]></dc:creator>
            <pubDate>Sat, 04 Apr 2026 10:17:31 GMT</pubDate>
            <atom:updated>2026-04-05T14:17:23.607Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Part 4 of 6 in the series: “Claude with Amazon Bedrock - An AWS Community Builder’s Field Notes”</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eZASBabGrQLj79iWGM9aKQ.png" /></figure><p><em>[← Part 3: Prompt Engineering and Evaluations]</em></p><p>Everything we’ve covered so far has involved Claude reasoning over the text you hand him. Tool use changes the game. It lets Claude reach out and interact with the world - call functions, retrieve real data, take actions - and then reason over the results. This is the section of the course I found most practically useful, and also the most complex.</p><h3>What Tool Use Actually Is</h3><p>When you give Claude tools, you’re not giving him code to run. You’re giving it <strong>descriptions</strong> of functions you’ve written, and Claude decides when and how to call them.</p><p>The flow looks like this:</p><ol><li>You send Claude a message along with a list of tool definitions.</li><li>Claude decides it needs to call a tool.</li><li>Claude returns a tool_use response — not a text answer, but a structured request to invoke a specific function with specific arguments.</li><li>Your code executes the function with those arguments.</li><li>You send the result back to Claude as a tool_result.</li><li>Claude incorporates the result and either calls another tool or generates a final text response.</li></ol><p>The key mental model: <strong>Claude is the orchestrator, your code is the executor.</strong> Claude never runs code directly. It proposes tool calls, your code runs them, and you report the results back.</p><h3>Defining a Tool</h3><p>Tools are defined as JSON Schema objects. The course uses three tools throughout the tool use module: get_current_datetime, add_duration_to_datetime, and set_reminder. Here&#39;s the schema for get_current_datetime:</p><pre>get_current_datetime_schema = {<br>    &quot;toolSpec&quot;: {<br>        &quot;name&quot;: &quot;get_current_datetime&quot;,<br>        &quot;description&quot;: &quot;Retrieves the current date and time formatted according to the specified format string. This tool should be used when the user needs to know the current date, time, or both.&quot;,<br>        &quot;inputSchema&quot;: {<br>            &quot;json&quot;: {<br>                &quot;type&quot;: &quot;object&quot;,<br>                &quot;properties&quot;: {<br>                    &quot;date_format&quot;: {<br>                        &quot;type&quot;: &quot;string&quot;,<br>                        &quot;description&quot;: &quot;A format string using Python&#39;s strftime codes. For example, &#39;%Y-%m-%d&#39; returns &#39;2025-04-02&#39;, &#39;%H:%M:%S&#39; returns &#39;14:30:45&#39;.&quot;<br>                    }<br>                }<br>            }<br>        }<br>    }<br>}</pre><p>The description field matters enormously. Claude reads it to understand when the tool is appropriate and what the parameters mean. A good description is the difference between Claude using a tool correctly 95% of the time and 40% of the time.</p><h3>Wiring Tools into the API Call</h3><p>The chat() function from previous parts gets extended to support tools:</p><pre>def chat(messages, system=None, temperature=1.0, stop_sequences=[], tools=None):<br>    params = {<br>        &quot;modelId&quot;: model_id,<br>        &quot;messages&quot;: messages,<br>        &quot;inferenceConfig&quot;: {<br>            &quot;temperature&quot;: temperature,<br>            &quot;stopSequences&quot;: stop_sequences,<br>        },<br>    }<br><br>    if system:<br>        params[&quot;system&quot;] = [{&quot;text&quot;: system}]<br>   <br>     if tools:<br>        params[&quot;toolConfig&quot;] = {&quot;tools&quot;: tools, &quot;toolChoice&quot;: {&quot;auto&quot;: {}}}<br>    <br>    response = client.converse(**params)<br>    parts = response[&quot;output&quot;][&quot;message&quot;][&quot;content&quot;]<br>    <br>    return {<br>        &quot;parts&quot;: parts,<br>        &quot;stop_reason&quot;: response[&quot;stopReason&quot;],<br>        &quot;text&quot;: &quot;\n&quot;.join([p[&quot;text&quot;] for p in parts if &quot;text&quot; in p]),<br>    }</pre><p>Two things changed. First, a toolConfig parameter is added when tools are provided — it includes the tool list and toolChoice: {auto: {}}, which lets Claude decide whether to call a tool or respond directly. Second, the return value now exposes parts (the full content array) and stop_reason. The stop_reason is critical: when it&#39;s &quot;tool_use&quot;, Claude is asking you to run something. When it&#39;s &quot;end_turn&quot;, the conversation is done.</p><h3>Handling Tool Calls</h3><p>The run_tools function processes all tool requests in a single response:</p><pre>def run_tools(parts):<br>    tool_requests = [part for part in parts if &quot;toolUse&quot; in part]<br>    tool_result_parts = []<br><br>    for tool_request in tool_requests:<br>        tool_use_id = tool_request[&quot;toolUse&quot;][&quot;toolUseId&quot;]<br>        tool_name = tool_request[&quot;toolUse&quot;][&quot;name&quot;]<br>        tool_input = tool_request[&quot;toolUse&quot;][&quot;input&quot;]<br>        <br>        try:<br>            tool_output = run_tool(tool_name, tool_input)<br>            tool_result_part = {<br>                &quot;toolResult&quot;: {<br>                    &quot;toolUseId&quot;: tool_use_id,<br>                    &quot;content&quot;: [{&quot;text&quot;: json.dumps(tool_output)}],<br>                    &quot;status&quot;: &quot;success&quot;,<br>                }<br>            }<br>        except Exception as e:<br>            tool_result_part = {<br>                &quot;toolResult&quot;: {<br>                    &quot;toolUseId&quot;: tool_use_id,<br>                    &quot;content&quot;: [{&quot;text&quot;: f&quot;Error: {e}&quot;}],<br>                    &quot;status&quot;: &quot;error&quot;,<br>                }<br>            }<br><br>        tool_result_parts.append(tool_result_part)<br><br>    return tool_result_parts</pre><p>Each toolUse block has an ID (used to match results to requests), a name (which function to call), and an input dictionary (the arguments). You run the function, wrap the result in a toolResult block with the matching ID, and send it back.</p><h3>The Full Conversation Loop</h3><p>Pulling it all together, the agentic loop is a while True that keeps running until Claude stops requesting tools:</p><pre>def run_conversation(messages):<br>    while True:<br>        result = chat(<br>            messages,<br>            tools=[<br>                get_current_datetime_schema,<br>                add_duration_to_datetime_schema,<br>                set_reminder_schema,<br>                batch_tool_schema,<br>            ],<br>        )<br><br>        add_assistant_message(messages, result[&quot;parts&quot;])<br>        print(result[&quot;text&quot;])<br><br>        if result[&quot;stop_reason&quot;] != &quot;tool_use&quot;:<br>            break<br><br>        tool_result_parts = run_tools(result[&quot;parts&quot;])<br>        add_user_message(messages, tool_result_parts)<br><br>    return messages</pre><p>What this looks like in practice: ask Claude to “set a reminder for my appointment, which is a week from Tuesday.” Claude calls get_current_datetime to find today&#39;s date, then calls add_duration_to_datetime to calculate the correct date, then calls set_reminder with the final timestamp. Three tool calls, all orchestrated by Claude, with your code executing each one and reporting back. The whole thing runs automatically.</p><h3>The Batch Tool</h3><p>One of the more creative techniques in the course: a batch_tool that lets Claude invoke multiple tools in a single call, bypassing the latency of sequential round-trips.</p><pre>batch_tool_schema = {<br>    &quot;toolSpec&quot;: {<br>        &quot;name&quot;: &quot;batch_tool&quot;,<br>        &quot;description&quot;: &quot;Enables running multiple tools in a single call by accepting an array of tool invocations.&quot;,<br>        &quot;inputSchema&quot;: {<br>            &quot;json&quot;: {<br>                &quot;type&quot;: &quot;object&quot;,<br>                &quot;properties&quot;: {<br>                    &quot;invocations&quot;: {<br>                        &quot;type&quot;: &quot;array&quot;,<br>                        &quot;items&quot;: {<br>                            &quot;type&quot;: &quot;object&quot;,<br>                            &quot;properties&quot;: {<br>                                &quot;tool_name&quot;: {&quot;type&quot;: &quot;string&quot;},<br>                                &quot;tool_input&quot;: {&quot;type&quot;: &quot;object&quot;}<br>                            }<br>                        }<br>                    }<br>                }<br>            }<br>        }<br>    }<br>}</pre><p>When Claude calls batch_tool, it packages multiple tool requests into one — your code unwraps them, runs each one, and returns all the results at once. The course shows this cutting a three-round-trip task down to one.</p><h3>The Model Context Protocol (MCP)</h3><p>MCP is the section that got the most attention in the course’s final modules. It’s a standard protocol for exposing tools and resources to Claude - or any MCP-compatible client - through a server that you define and run.</p><p>Think of it this way: the inline tool definitions we’ve been using are great for one-off scripts, but they don’t scale well. If you have 30 tools across 5 different services, you want to manage them as a server - something you can run, inspect, version, and reuse across multiple clients.</p><p>An MCP server defines three things:</p><p><strong>Tools</strong> - functions Claude can call (same concept as inline tools, but managed by the server):</p><pre>@mcp.tool()<br>def get_weather(city: str) -&gt; str:<br>    &quot;&quot;&quot;Get current weather for a city&quot;&quot;&quot;<br>    # implementation</pre><p><strong>Resources</strong> - read-only data Claude can access, like documents or database records:</p><pre>@mcp.resource(&quot;config://app-settings&quot;)<br>def get_app_settings() -&gt; str:<br>    &quot;&quot;&quot;Returns current application settings as JSON&quot;&quot;&quot;<br>    return json.dumps(settings)</pre><p><strong>Prompts</strong> - reusable prompt templates that clients can invoke by name:</p><pre>@mcp.prompt()<br>def code_review_prompt(language: str, code: str) -&gt; str:<br>    return f&quot;Review this {language} code for security and performance:\n\n{code}&quot;</pre><p>The course walks through setting up the MCP Python SDK, using the built-in server inspector to test your tools before wiring up a client, and then building a client that connects to the server and routes Claude’s tool requests through it.</p><p>The MCP inspector is particularly useful - it’s a web UI that lets you call your tools manually, see the inputs and outputs, and debug your schemas before writing any client code. If you’re building an MCP server, spend time there first.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3JJKJ9BaOAeS6id1MXq5gQ.png" /></figure><h3>Structured Data with Tools</h3><p>One powerful pattern the course demonstrates: using tools specifically for structured data extraction. Instead of using prefilling + stop sequences to force JSON output, you define a tool whose “purpose” is to receive structured data, and Claude calls it as a way of returning a structured result.</p><p>This sidesteps a whole class of output parsing problems. You’re not parsing freeform text that happens to look like JSON; you’re receiving a validated, schema-conformant tool call. For production extraction pipelines, this approach is significantly more robust.</p><h3>The Text Editor Tool</h3><p>The course also covers text_editor_tool a built-in Claude tool that gives Claude the ability to view and edit text files, creating a lightweight agentic coding loop without any custom tool scaffolding. It supports view, create, str_replace, and undo_edit operations, and is particularly useful for automated document editing workflows.</p><p><em>In </em><a href="https://sitardaniel.medium.com/claude-on-amazon-bedrock-part-5-retrieval-augmented-generation-rag-36255aaeacb7"><em>Part 5</em></a><em>, we go deep on retrieval-augmented generation - how to break documents into chunks, embed them, search them semantically and lexically, combine search strategies, rerank results, and use contextual retrieval to dramatically improve search quality.</em></p><p><em>[→ </em><a href="https://sitardaniel.medium.com/claude-on-amazon-bedrock-part-5-retrieval-augmented-generation-rag-36255aaeacb7"><em>Part 5</em></a><em>: Retrieval-Augmented Generation (RAG)]</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3b8cbc8eaed0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Claude on Amazon Bedrock - Part 3: Prompt Engineering and Evaluations]]></title>
            <link>https://sitardaniel.medium.com/claude-on-amazon-bedrock-part-3-prompt-engineering-and-evaluations-8b04afe602c0?source=rss-8f59dc68f4ed------2</link>
            <guid isPermaLink="false">https://medium.com/p/8b04afe602c0</guid>
            <category><![CDATA[claude]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[bedrock]]></category>
            <dc:creator><![CDATA[Sitar Gold]]></dc:creator>
            <pubDate>Sat, 04 Apr 2026 10:16:31 GMT</pubDate>
            <atom:updated>2026-04-05T14:16:46.870Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Part 3 of 6 in the series: “Claude with Amazon Bedrock - An AWS Community Builder’s Field Notes”</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uXlSrkgK-TNolSiyQUXIKQ.png" /></figure><p><em>[← Part 2: Working with the API]</em></p><p>Writing a prompt is easy. Writing a <em>good</em> prompt is a skill. Knowing whether your prompt is actually better than last week’s version - that requires a system. This part covers the course’s two most underrated topics: prompt engineering techniques that consistently improve output quality, and building a proper evaluation pipeline to measure it.</p><h3>Prompt Engineering</h3><p>The course treats prompt engineering as an engineering discipline — something repeatable and measurable, not a collection of tricks. The core principle is deceptively simple: <strong>be clear, be specific, and give Claude the context it needs to do the job well.</strong></p><h3>Be Clear and Direct</h3><p>Claude responds better to direct instructions than vague ones. Instead of:</p><blockquote>“Can you maybe help me with this?”</blockquote><p>Write:</p><blockquote>“Summarize the following CloudWatch log in two sentences, focusing on the root cause of the error.”</blockquote><p>The more precisely you describe the output you want, the less guessing Claude has to do - and the more consistent and reliable your results will be.</p><h3>Be Specific About Format</h3><p>If you need JSON, say you need JSON. If you need a numbered list, say so. If you need only the code with no explanations, specify that explicitly. Claude will adapt its output format to match what you describe.</p><p>The course shows how vague prompts produce verbose, inconsistent output-while specific prompts with explicit format requirements produce clean, predictable results that are easy to parse downstream.</p><h3>Use XML Tags for Structure</h3><p>When your prompt contains multiple distinct pieces of information — a task description, input data, constraints, examples — XML tags make the structure unambiguous:</p><pre>prompt = f&quot;&quot;&quot;<br>You are reviewing AWS infrastructure configurations.<br><br>&lt;task&gt;<br>Identify any security concerns in the following IAM policy.<br>&lt;/task&gt;<br><br>&lt;policy&gt;<br>{policy_json}<br>&lt;/policy&gt;<br><br>&lt;criteria&gt;<br>Focus on overly permissive actions and missing condition keys.<br>&lt;/criteria&gt;<br>&quot;&quot;&quot;<br></pre><p>This isn’t just cosmetic. The course makes the case that tagged prompts reduce hallucination and improve adherence to instructions, because Claude can clearly identify which part of the prompt is instructions versus data. This is especially useful when the input data might contain text that could otherwise confuse the model about what it’s supposed to do.</p><h3>Provide Examples (Few-Shot Prompting)</h3><p>Showing Claude what a good answer looks like is often more effective than describing it. If you want a specific output format, include one or two complete examples:</p><pre>prompt = &quot;&quot;&quot;<br>Convert each CloudWatch metric to a human-readable alert message.<br><br>Examples:<br>Input: {&quot;metric&quot;: &quot;CPUUtilization&quot;, &quot;value&quot;: 94.2, &quot;threshold&quot;: 80}<br>Output: &quot;⚠️ CPU usage is at 94.2%, exceeding the 80% threshold.&quot;<br><br>Input: {&quot;metric&quot;: &quot;MemoryUtilization&quot;, &quot;value&quot;: 45.1, &quot;threshold&quot;: 90}<br>Output: &quot;✅ Memory usage is at 45.1%, within the 90% threshold.&quot;<br><br>Now convert this metric:<br>{metric}<br>&quot;&quot;&quot;</pre><p>Few-shot examples do two things at once: they define the output format and calibrate Claude’s sense of tone and style. The course shows that for classification and extraction tasks, especially, a couple of well-chosen examples often outperform elaborate instruction text.</p><h3>Prompt Evaluations</h3><p>This is where the course gets genuinely interesting — and where it pulls ahead of most beginner AI content.</p><p>Prompt engineering without evaluation is guesswork. You make a change to your prompt, it <em>feels</em> better, but you don’t actually know if it is better across a range of inputs. The course builds a structured evaluation pipeline from scratch using nothing but Claude itself as the judge.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s32k_RPEekCRmRw5jAc-YQ.png" /></figure><h3>The Dataset</h3><p>The eval starts with a dataset. The course generates it programmatically using Claude - asking it to produce a set of tasks that can be solved with Python, JSON, or a regex, all scoped to AWS:</p><pre>def generate_dataset():<br>    prompt = &quot;&quot;&quot;<br>Generate an evaluation dataset for a prompt evaluation. The dataset will be used to evaluate prompts<br>that generate Python, JSON, or Regex specifically for AWS-related tasks. Generate an array of JSON objects,<br>each representing a task that requires Python, JSON, or a Regex to complete.<br><br>Example output:<br>```json<br>[<br>    {<br>        &quot;task&quot;: &quot;Description of task&quot;,<br>        &quot;format&quot;: &quot;json&quot; or &quot;python&quot; or &quot;regex&quot;,<br>        &quot;solution_criteria&quot;: &quot;Key criteria for evaluating the solution&quot;<br>    },<br>    ...<br>]<br>```<br><br>Please generate 3 objects.<br>&quot;&quot;&quot;<br>    messages = []<br>    add_user_message(messages, prompt)<br>    add_assistant_message(messages, &quot;```json&quot;)<br>    text = chat(messages, stop_sequences=[&quot;```&quot;])<br>    return json.loads(text)</pre><p>The dataset ends up looking like this (real output from the notebook):</p><pre>```json<br>[<br>  {<br>    &quot;task&quot;: &quot;Create a regular expression to validate an AWS S3 bucket name&quot;,<br>    &quot;format&quot;: &quot;regex&quot;,<br>    &quot;solution_criteria&quot;: &quot;Matches valid S3 bucket naming conventions, prevents special characters, enforces length constraints&quot;<br>  },<br>  {<br>    &quot;task&quot;: &quot;Write a Python function to convert an AWS resource ARN into its component parts&quot;,<br>    &quot;format&quot;: &quot;python&quot;,<br>    &quot;solution_criteria&quot;: &quot;Correctly parses different ARN formats, returns a dictionary with standard ARN components&quot;<br>  },<br>  {<br>    &quot;task&quot;: &quot;Create a JSON configuration for an AWS Lambda function&#39;s basic CloudFormation resource definition&quot;,<br>    &quot;format&quot;: &quot;json&quot;,<br>    &quot;solution_criteria&quot;: &quot;Includes required properties like runtime, handler, code location, and basic execution role&quot;<br>  }<br>]</pre><p>This is a practical choice, AWS-flavored tasks make the eval results directly meaningful for someone building on Bedrock.</p><h3>Running the Prompt</h3><p>run_prompt takes a single test case and generates a solution. Notice how prefilling and stop sequences are used here — exactly the output control technique from Part 2 — to get clean code with no prose:</p><pre>def run_prompt(test_case):<br>    prompt = f&quot;&quot;&quot;<br>Please solve the following task:<br><br>&quot;{test_case[&quot;task&quot;]}&quot;<br><br>* Respond only with Python, JSON, or a plain Regex<br>* Do not add any comments or commentary or explanation<br>&quot;&quot;&quot;<br>    system_prompt = &quot;You are an experienced AWS engineer with a hyper focus on addressing corner cases&quot;<br>    messages = []<br>    add_user_message(messages, prompt)<br>    add_assistant_message(messages, &quot;```code&quot;)<br>    output = chat(messages, stop_sequences=[&quot;```&quot;], system=system_prompt)<br>    return output<br></pre><h3>Model-Based Grading</h3><p>The grader is Claude itself — specifically, Haiku (fast, cheap, good enough for structured evaluation). The grader receives the original task, the solution, and the evaluation criteria, and returns a structured JSON score:</p><pre>def grade_by_model(test_case, output):<br>    eval_prompt = f&quot;&quot;&quot;<br>You are an expert AWS code reviewer. Your task is to evaluate the following AI-generated solution.<br><br>Original Task:<br>&lt;task&gt;<br>{test_case[&quot;task&quot;]}<br>&lt;/task&gt;<br><br>Solution to Evaluate:<br>&lt;solution&gt;<br>{output}<br>&lt;/solution&gt;<br><br>Criteria you should use to evaluate the solution:<br>&lt;criteria&gt;<br>{test_case[&quot;solution_criteria&quot;]}<br>&lt;/criteria&gt;<br><br>Output Format<br>Provide your evaluation as a structured JSON object with the following fields:<br>- &quot;strengths&quot;: An array of 1-3 key strengths<br>- &quot;weaknesses&quot;: An array of 1-3 key areas for improvement<br>- &quot;reasoning&quot;: A concise explanation of your overall assessment<br>- &quot;score&quot;: A number between 1-10<br><br>Respond with JSON only.<br>&quot;&quot;&quot;<br>    messages = []<br>    add_user_message(messages, eval_prompt)<br>    add_assistant_message(messages, &quot;```json&quot;)<br>    eval_text = chat(messages, stop_sequences=[&quot;```&quot;])<br>    return json.loads(eval_text)</pre><h3>Code-Based Grading</h3><p>The second grading dimension is deterministic — pure syntax validation. If the model was asked to produce JSON and the output parses as valid JSON, it scores a 10. If not, it scores 0. Same logic for Python (using ast.parse) and regex (re.compile):</p><pre>def grade_syntax(response, test_case):<br>    format = test_case[&quot;format&quot;]<br>    if format == &quot;json&quot;:<br>        return validate_json(response)<br>    elif format == &quot;python&quot;:<br>        return validate_python(response)<br>    else:<br>        return validate_regex(response)</pre><h3>Putting It All Together</h3><p>run_test_case combines both grading methods, and run_eval runs the full dataset:</p><pre>def run_test_case(test_case):<br>    output = run_prompt(test_case)<br><br>    model_grade = grade_by_model(test_case, output)<br>    model_score = model_grade[&quot;score&quot;]<br>    reasoning = model_grade[&quot;reasoning&quot;]<br>    <br>    syntax_score = grade_syntax(output, test_case)<br>    score = (model_score + syntax_score) / 2<br>    <br>    return {<br>        &quot;output&quot;: output,<br>        &quot;test_case&quot;: test_case,<br>        &quot;score&quot;: score,<br>        &quot;reasoning&quot;: reasoning,<br>    }<br><br>def run_eval(dataset):<br>    results = [run_test_case(tc) for tc in dataset]<br>    average_score = mean([r[&quot;score&quot;] for r in results])<br>    print(f&quot;Average score: {average_score}&quot;)<br>    return results</pre><p>Running this on the three-task dataset produced an average score of <strong>8.83 / 10</strong>. The individual scores were 9.0 (regex), 8.5 (Python), and 9.0 (JSON) — with the reasoning comments pointing to specific gaps like incomplete ARN format coverage or lack of deep validation.</p><h3>Why This Matters</h3><p>The value of this pipeline isn’t the score itself — it’s that you now have a repeatable process. Change your prompt in run_prompt, run the eval again, and compare the before/after score objectively. This is how prompt engineering becomes an engineering discipline rather than vibes.</p><p>The course recommends using Haiku for the grader (not Sonnet or Opus) to keep eval costs down — you’ll be running this hundreds of times as you iterate on prompts. Using a smaller model for grading is a well-established pattern in the eval literature, and the course applies it directly.</p><h3>Structured Data Extraction</h3><p>One adjacent topic in this section of the course: using the same prompt engineering techniques to extract structured data from unstructured text. The pattern is:</p><ol><li>Give Claude a schema describing what you want.</li><li>Use XML tags to separate the input text from the instructions.</li><li>Use prefilling to lock in the opening { of a JSON response.</li><li>Use a stop sequence to close it cleanly.</li></ol><p>This is the same prefill + stop sequence pattern from Part 2, applied to data extraction. The course walks through extracting fields from product descriptions, log entries, and support tickets. The approach works reliably for moderately complex schemas and degrades gracefully when a field isn’t present — Claude returns null rather than hallucinating a value, provided your prompt explicitly instructs it to.</p><p>In <a href="https://sitardaniel.medium.com/claude-on-amazon-bedrock-part-4-tool-use-and-the-model-context-protocol-3b8cbc8eaed0">Part 4</a>, we give Claude tools - the ability to call external functions, access real-time data, and chain multiple tool calls together. We also cover the Model Context Protocol, which lets you build your own tool servers.</p><p>[→ <a href="https://sitardaniel.medium.com/claude-on-amazon-bedrock-part-4-tool-use-and-the-model-context-protocol-3b8cbc8eaed0">Part 4</a>: Tool Use and MCP]</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8b04afe602c0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Claude on Amazon Bedrock - Part 2: Working with the API]]></title>
            <link>https://sitardaniel.medium.com/claude-on-amazon-bedrock-part-2-working-with-the-api-12dde7f5569c?source=rss-8f59dc68f4ed------2</link>
            <guid isPermaLink="false">https://medium.com/p/12dde7f5569c</guid>
            <category><![CDATA[claude]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[bedrock]]></category>
            <dc:creator><![CDATA[Sitar Gold]]></dc:creator>
            <pubDate>Fri, 03 Apr 2026 03:38:49 GMT</pubDate>
            <atom:updated>2026-04-05T12:28:07.568Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Part 2 of 6 in the series: “Claude with Amazon Bedrock - An AWS Community Builder’s Field Notes”</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7D6ogW_HIKpTdobyRX4fbQ.png" /></figure><p><em>[← Part 1: What You Need to Know Before You Start]</em></p><p>This is where things get real. In Part 1 we covered what Bedrock is and how the model tiers work. Now we’re writing code — making requests, managing conversation history, adding system prompts, streaming tokens, and controlling output with surgical precision.</p><p>All the code in this part comes directly from the course notebooks.</p><h3>Setting Up the Client</h3><p>Every notebook in the course starts the same way: create a boto3 client pointing at the Bedrock runtime, and set a model ID.</p><pre>import boto3<br><br>client = boto3.client(&quot;bedrock-runtime&quot;, region_name=&quot;us-west-2&quot;)<br>model_id = &quot;us.anthropic.claude-sonnet-4-20250514-v1:0&quot;</pre><p>Note bedrock-runtime — not bedrock. The bedrock client is for management operations (listing models, managing provisioned throughput). The bedrock-runtime client is for inference — actually sending prompts and getting responses.</p><h3>Making Your First Request</h3><p>The primary method you’ll use throughout the course is converse. It takes a list of messages and returns a response object:</p><pre>def chat(messages, system=None, temperature=1.0):<br>    params = {<br>        &quot;modelId&quot;: model_id,<br>        &quot;messages&quot;: messages,<br>        &quot;inferenceConfig&quot;: {&quot;temperature&quot;: temperature},<br>    }<br>if system:<br>        params[&quot;system&quot;] = [{&quot;text&quot;: system}]<br>    response = client.converse(**params)<br>    return response[&quot;output&quot;][&quot;message&quot;][&quot;content&quot;][0][&quot;text&quot;]</pre><p>A message in the Bedrock format is a dictionary with a role and a content array:</p><pre>{&quot;role&quot;: &quot;user&quot;, &quot;content&quot;: [{&quot;text&quot;: &quot;What is quantum computing?&quot;}]}</pre><p>The content array is designed to be flexible — it can carry text, images, tool results, and more. For basic text conversations, {&quot;text&quot;: &quot;...&quot;} is all you need.</p><p>The response comes back as a nested object. You drill into it with:</p><pre>response[&quot;output&quot;][&quot;message&quot;][&quot;content&quot;][0][&quot;text&quot;]</pre><p>That chain output → message → content → [0] → text is one you&#39;ll memorize quickly.</p><h3>Multi-Turn Conversations</h3><p>This is one of the most important concepts in the course, and it surprises many developers new to LLM APIs: <strong>Bedrock and Claude do not store any conversation history on their end.</strong> Every request is completely stateless.</p><p>If you want Claude to remember what was said two messages ago, you have to send that history yourself in every request. The course handles this with a simple pair of helper functions:</p><pre>def add_user_message(messages, text):<br>    user_message = {&quot;role&quot;: &quot;user&quot;, &quot;content&quot;: [{&quot;text&quot;: text}]}<br>    messages.append(user_message)<br>def add_assistant_message(messages, text):<br>    assistant_message = {&quot;role&quot;: &quot;assistant&quot;, &quot;content&quot;: [{&quot;text&quot;: text}]}<br>    messages.append(assistant_message)</pre><p>Here’s the multi-turn pattern in action, taken directly from the notebook:</p><pre># Make a starting list of messages<br>messages = []<br><br># Add in the initial user question<br>add_user_message(messages, &quot;Whats 1+1?&quot;)<br><br># Get the answer<br>answer = chat(messages)<br><br># Add it to the conversation history as an assistant message<br>add_assistant_message(messages, answer)<br><br># Ask a follow-up - Claude knows about the previous exchange<br>add_user_message(messages, &quot;And 3 more added to that?&quot;)<br><br>answer = chat(messages)<br># Returns: &quot;Starting with the result of 1+1 = 2, if we add 3 more to that, we get 5&quot;</pre><p>The key insight is in that last line. Claude correctly answers “5” because the entire conversation history — including the first answer of “2” — was sent in the second request. Without that history, it would have no idea what “that” referred to.</p><p>The course chatbot exercise builds on this directly:</p><pre>messages = []<br><br>while True:<br>    user_input = input(&quot;&gt; &quot;)<br>    add_user_message(messages, user_input)<br>    text = chat(messages)<br>    add_assistant_message(messages, text)<br>    print(text)</pre><p>A fully functional, stateful chatbot in six lines of real code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*R2CMOnZQ1lg03X244oqlkQ.png" /></figure><h3>System Prompts</h3><p>System prompts let you set Claude’s persona, constraints, and context before the conversation begins. They sit outside the message history and apply to the entire conversation.</p><pre>response = chat(<br>    messages,<br>    system=&quot;You are a senior AWS solutions architect. Always recommend the most cost-effective option first.&quot;<br>)</pre><p>In the Bedrock API format, system prompts are passed as a separate system parameter — a list of text blocks:</p><pre>params[&quot;system&quot;] = [{&quot;text&quot;: &quot;Your system prompt here&quot;}]</pre><p>The course covers a practical exercise where you build a customer service bot with a specific persona and topic constraints defined in the system prompt. The takeaway: a good system prompt dramatically changes the character and reliability of the model’s responses without touching your prompt logic at all.</p><h3>Temperature</h3><p>Temperature controls how deterministic or creative the model’s output is.</p><ul><li>temperature=0 — almost entirely deterministic. The model picks the highest-probability token at each step. Good for factual extraction, code generation, and structured outputs.</li><li>temperature=1.0 (default) — standard sampling. Natural, varied responses.</li><li>Higher values — increasingly random and creative. Useful for brainstorming; risky for anything that needs to be reliable.</li></ul><pre>def chat(messages, system=None, temperature=1.0):<br>    params = {<br>        &quot;modelId&quot;: model_id,<br>        &quot;messages&quot;: messages,<br>        &quot;inferenceConfig&quot;: {&quot;temperature&quot;: temperature},<br>    }<br>    # ...</pre><p>The course is clear on this: for production tasks where consistency matters, a lower temperature is your friend. For creative or generative tasks, higher temperature gives you more variety.</p><h3>Streaming</h3><p>By default, converse waits until the full response is generated before returning it. For long responses, that&#39;s a noticeable delay. converse_stream lets you process tokens as they arrive:</p><pre>messages = []<br>add_user_message(messages, &quot;Write a 1 sentence description of a fake database&quot;)<br><br>response = client.converse_stream(messages=messages, modelId=model_id)<br><br>text = &quot;&quot;<br>for event in response[&quot;stream&quot;]:<br>    if &quot;contentBlockDelta&quot; in event:<br>        chunk = event[&quot;contentBlockDelta&quot;][&quot;delta&quot;][&quot;text&quot;]<br>        print(chunk, end=&quot;&quot;)<br>        text += chunk</pre><p>Each event in the stream is a dictionary. The ones you care about are the contentBlockDelta events, which carry the actual text chunks. You accumulate them into a full string if you need the complete response afterward.</p><p>The course points out that streaming matters most for user-facing applications where you want responses to appear progressively — the same way Claude.ai renders responses as it generates them. For batch processing or background jobs, you can skip it.</p><h3>Controlling Output: Message Prefilling and Stop Sequences</h3><p>Two of the more powerful (and underused) output control techniques are covered in the course.</p><h3>Message Prefilling</h3><p>You can prime Claude’s response by including a partial assistant message at the end of your conversation history. Claude will then continue from where you left off:</p><pre>messages = []<br>add_user_message(messages, &quot;Is coffee or tea better for breakfast?&quot;)<br>add_assistant_message(messages, &quot;They are the same because&quot;)<br><br>chat(messages)<br># Claude will continue: &quot;They are the same because both provide...&quot;</pre><p>This is useful for forcing a specific response format, locking in a particular framing, or extracting structured data without letting Claude add explanatory prose.</p><h3>Stop Sequences</h3><p>Stop sequences tell Claude to stop generating as soon as it produces a specific string. Combined with prefilling, this gives you surgical control over the exact content you receive.</p><pre>messages = []<br>add_user_message(messages, &quot;Count from 1 to 10&quot;)<br>chat(messages, stop_sequences=[&quot;5&quot;, &quot;3, 4&quot;])<br># Returns: &quot;1, 2, &quot; — stops the moment it would produce &quot;3, 4&quot;</pre><p>The course exercise combines both techniques to extract clean code without surrounding text:</p><pre>messages = []<br>prompt = &quot;Generate three different sample AWS CLI commands. Each should be very short.&quot;<br><br>add_user_message(messages, prompt)<br>add_assistant_message(<br>    messages,<br>    &quot;Here are all three commands in a single block without any comments:\n```bash&quot;,<br>)<br><br>text = chat(messages, stop_sequences=[&quot;```&quot;])<br>text.strip()<br># Returns:<br># aws s3 ls<br># aws ec2 describe-instances<br># aws lambda list-functions</pre><p>The prefill opens a code block. The stop sequence closes it before any prose can follow. What you get back is exactly the three commands - nothing else. This is a genuinely practical technique for any pipeline where you’re parsing or processing model output downstream.</p><h3>Putting It All Together</h3><p>By the end of the API section, you’ve built the foundational plumbing that everything else in the course rests on: a chat() function that supports system prompts, temperature, and stop sequences; helpers for managing message history; streaming for responsive UIs; and output control for structured extraction.</p><p>Every subsequent module - evals, tool use, RAG - is built on top of exactly this pattern.</p><p><em>In </em><a href="https://sitardaniel.medium.com/claude-on-amazon-bedrock-part-3-prompt-engineering-and-evaluations-8b04afe602c0"><em>Part 3</em></a><em>, we step back from the API and think more carefully about prompts themselves-how to write them well, how to test them systematically, and how to build an automated evaluation pipeline that gives you a real score on your prompt quality.</em></p><p><em>[→ </em><a href="https://sitardaniel.medium.com/claude-on-amazon-bedrock-part-3-prompt-engineering-and-evaluations-8b04afe602c0"><em>Part 3</em></a><em>: Prompt Engineering and Evaluations]</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=12dde7f5569c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Claude on Amazon Bedrock - Part 1: What You Need to Know Before You Start]]></title>
            <link>https://sitardaniel.medium.com/claude-on-amazon-bedrock-part-1-what-you-need-to-know-before-you-start-40dcbcc4e039?source=rss-8f59dc68f4ed------2</link>
            <guid isPermaLink="false">https://medium.com/p/40dcbcc4e039</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[claude]]></category>
            <category><![CDATA[bedrock]]></category>
            <dc:creator><![CDATA[Sitar Gold]]></dc:creator>
            <pubDate>Fri, 03 Apr 2026 03:38:00 GMT</pubDate>
            <atom:updated>2026-04-05T14:21:43.428Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*duOyD9mwUrHzCSH7L213Vg.png" /></figure><p><em>Part 1 of 6 in the series: “Claude with Amazon Bedrock - An AWS Community Builder’s Field Notes”</em></p><p>As a new AWS Community Builder, I enjoy learning new things I can share and make more accessible. Imagine my joy when I found a <strong>“Claude with Amazon Bedrock”</strong> course by Anthropic. Let’s start from the end — the course has <strong>8 hours of videos</strong> that do not include the quizzes and the time spent practicing what you learn. Overall, I enjoyed it thoroughly and recommend you take it regardless of the AWS elements, because there is a wealth of great information about how to work correctly with the different elements of AI.</p><p>This series is my attempt to cover the entire course - explain the AWS-specific context, share the key concepts, and include real working code from the course notebooks - so you can hit the ground running before, during, or instead of taking the course yourself.</p><p>Let’s start at the beginning.</p><h3>What Is Amazon Bedrock?</h3><p>If you’re an AWS practitioner who hasn’t worked with AI services yet, this is the piece you actually need before anything else makes sense.</p><p><strong>Amazon Bedrock</strong> is a fully managed AWS service that gives you access to a range of high-performance foundation models (FMs) from leading AI companies — Anthropic, Meta, Mistral, Amazon, and others - through a <strong>single unified API</strong>. You don’t manage servers, you don’t handle model deployments, you don’t need a GPU cluster. You call an API.</p><p>From an AWS perspective, this is significant. It means:</p><ul><li><strong>IAM</strong> governs who can call which models - the same way it governs S3 bucket access or Lambda invocations.</li><li><strong>Billing</strong> runs through your existing AWS account - no separate AI vendor accounts to manage.</li><li><strong>VPC endpoints</strong> are available, so traffic never has to leave your private network.</li><li><strong>CloudWatch</strong> gets logs and metrics, same as any other AWS service.</li></ul><p>For teams already running infrastructure on AWS, Bedrock is the path of least resistance to adding AI capabilities. You’re working within the same security posture, the same billing model, and the same operational tooling you already know.</p><p>The Claude models on Bedrock are accessed through <strong>cross-region inference profiles</strong> — these are model IDs that look like us.anthropic.claude-sonnet-4-20250514-v1:0. The us. prefix tells Bedrock to route your request intelligently across US regions for availability and latency. You&#39;ll see this pattern throughout the course notebooks.</p><h3>What Is a Jupyter Notebook?</h3><p>The course delivers all its exercises as <strong>Jupyter Notebooks </strong>.ipynb files. If you&#39;ve only worked with scripts or IDEs, notebooks feel unusual at first.</p><p>A Jupyter Notebook is an interactive document that mixes <strong>code cells</strong>, <strong>text cells</strong> (written in Markdown), and <strong>output cells</strong> that display results inline. You run cells one at a time, or all at once. The state is shared — a variable you define in cell 3 is available in cell 7. This makes notebooks ideal for learning: you can run a concept, see the output right there, tweak a parameter, and run it again.</p><p>In the course, each notebook is self-contained. You’ll see imports at the top, helper functions in the middle, and exercises at the bottom. The _complete suffix on file names (e.g., 003_Streaming_complete.ipynb) indicates the solved version. The base file without the suffix is the one you work through yourself.</p><p>To run the course notebooks, you’ll need Python 3.10+ and the boto3 library. You&#39;ll also need AWS credentials configured, either through aws configure in your terminal, an IAM role on an EC2 instance, or AWS CloudShell, which has boto3 pre-installed.</p><h3>Prerequisites at a Glance</h3><p>The course expects:</p><ul><li><strong>Basic Python</strong> - variables, loops, functions, string formatting. Nothing advanced.</li><li><strong>An AWS account -</strong> with access to Amazon Bedrock enabled in your region. Note that Bedrock access is not on by default — you have to request model access in the Bedrock console for the specific models you want to use.</li><li><strong>boto3 -</strong> installed locally, or access to AWS CloudShell / SageMaker Studio where it’s pre-installed.</li><li><strong>Curiosity -</strong> The course covers a lot of ground, and some of the later topics (RAG, MCP, agents) are genuinely complex. Don’t expect to master them in a single pass.</li></ul><h3>Picking the Right Claude Model</h3><p>Before making your first API call, you need to choose a model. Claude comes in three tiers, each sitting at a different point on the intelligence-versus-cost spectrum.</p><h3>Claude Opus</h3><p>The most capable model. Best for tasks requiring deep reasoning, nuanced writing, complex analysis, or large-scale architecture decisions. It’s slower and more expensive than the others, but when the task demands it, nothing else in the Claude family compares.</p><h3>Claude Sonnet</h3><p>The balanced workhorse. Fast enough for interactive applications, smart enough for the vast majority of real-world tasks — coding assistance, document editing, data analysis, multi-step reasoning. The course notebooks use Sonnet by default, and for good reason: it’s where most production workloads land.</p><h3>Claude Haiku</h3><p>Optimized for speed and cost. Best for high-volume, low-latency tasks — content moderation, quick summarization, translation, intent classification. The course uses Haiku specifically for running prompt evaluations (more on that in Part 3), because you’re calling the model hundreds of times in an eval loop, and you don’t need the full weight of Sonnet for a grading task.</p><p>The practical rule of thumb from the course: <strong>start with Sonnet, drop to Haiku for bulk/evaluation work, consider Opus only when Sonnet demonstrably falls short.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ycRdhLGpJLgFsRZa_1MVuw.png" /></figure><h3>The Model ID Format</h3><p>One thing that trips up newcomers is the model ID format. Here’s what you’ll encounter in the course:</p><pre>model_id = &quot;us.anthropic.claude-sonnet-4-20250514-v1:0&quot;</pre><p>Breaking it down:</p><ul><li>us. - cross-region inference profile prefix (US regions)</li><li>anthropic. - the model provider</li><li>claude-sonnet-4 - the model family and tier</li><li>20250514 - the version date</li><li>v1:0 - the minor version</li></ul><p>You’ll also see older model IDs without the us. prefix in some notebooks — those are direct regional calls. The cross-region profile format is the recommended approach for production because it provides automatic failover.</p><h3>What’s Coming in This Series</h3><p>Here’s the full map of what we’ll cover across the six parts:</p><ul><li><strong>Part 1 (this one):</strong> Bedrock overview, Jupyter setup, prerequisites, model tiers</li><li><strong>Part 2:</strong> Working with the API - making requests, multi-turn conversations, system prompts, streaming, controlling output</li><li><strong>Part 3:</strong> Prompt engineering and evaluations - XML tags, few-shot examples, building an eval pipeline, model-based grading</li><li><strong>Part 4:</strong> Tool use and MCP - giving Claude the ability to call functions, chaining tool calls, building an MCP server</li><li><strong>Part 5:</strong> Retrieval-Augmented Generation - chunking, embeddings, vector search, BM25, hybrid pipelines, reranking</li><li><strong>Part 6:</strong> Advanced Claude features and agents - extended thinking, image/PDF support, prompt caching, Claude Code, what the course doesn’t cover</li></ul><p>Each part is self-contained, so feel free to jump to the topic most relevant to what you’re building. But if you’re new to Claude and Bedrock, I’d suggest reading them in order, each one builds on the last.</p><p>In <a href="https://sitardaniel.medium.com/claude-on-amazon-bedrock-part-2-working-with-the-api-12dde7f5569c">Part 2</a>, we get hands-on with the API: making your first request, managing conversation history, using system prompts, and controlling how the model responds.</p><p>Follow me for <a href="https://sitardaniel.medium.com/claude-on-amazon-bedrock-part-2-working-with-the-api-12dde7f5569c">Part 2</a> and the rest of the series. If you found this useful, share it with someone who’s just getting started with AI on</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=40dcbcc4e039" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Golden Paths: The Secret Weapon of Platform Engineering]]></title>
            <link>https://sitardaniel.medium.com/golden-paths-the-secret-weapon-of-platform-engineering-2877425287bc?source=rss-8f59dc68f4ed------2</link>
            <guid isPermaLink="false">https://medium.com/p/2877425287bc</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[golden-path]]></category>
            <category><![CDATA[platform-engineering]]></category>
            <dc:creator><![CDATA[Sitar Gold]]></dc:creator>
            <pubDate>Thu, 12 Mar 2026 16:04:26 GMT</pubDate>
            <atom:updated>2026-03-12T16:04:26.353Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1023/1*lkepTZTanQw-ZuhNJl7Dgg.png" /></figure><p>Every engineering team wants <strong>autonomy</strong>. Every platform team wants <strong>standardization</strong>. And somewhere in the middle, things often get messy.</p><p>Different services use different pipelines. Infrastructure is configured slightly differently every time. Monitoring dashboards are missing for half the services.</p><p>If you’ve ever joined a team and tried to deploy a new service, you probably experienced this moment:</p><p><strong><em>“Wait… how are we supposed to deploy this?”</em></strong></p><p>This tension between <strong>developer freedom</strong> and <strong>organizational consistency</strong> is exactly where many internal platforms fail. Platform engineering introduced a simple idea to solve this problem: <strong>Golden Paths.</strong></p><h3>What Are Golden Paths?</h3><p>A <em>Golden Path</em> is a <em>recommended and well-supported way to build and deploy services within an organization</em>. <strong>Think of it as a paved road.</strong></p><p>Instead of every team having to figure out infrastructure, pipelines, and tooling from scratch, the platform team provides a <strong>clear path that already works</strong>.</p><p>A typical golden path might include:</p><ul><li>a repository template</li><li>a CI/CD pipeline</li><li>infrastructure modules</li><li>monitoring and observability setup</li><li>security policies</li></ul><p>When developers start a new service, they follow this path and get everything they need out of the box.</p><p><strong>No guesswork.</strong></p><h3>Why Platform Teams Build Golden Paths</h3><p>The need for golden paths usually appears when organizations start scaling.</p><p>At first, teams move fast because there are no rules. Everyone builds things their own way. But after a while, that flexibility turns into chaos.</p><p>You start seeing problems like:</p><ol><li><strong>Tool sprawl</strong></li></ol><p>Different teams use different tools for the same problem. One service deploys with Jenkins, another with GitHub Actions, and another with something someone wrote two years ago.</p><p><strong>2. Inconsistent security</strong></p><p>Each service configures authentication, permissions, and secrets slightly differently.</p><p><strong>3. Slow onboarding</strong></p><p>New engineers spend weeks figuring out how infrastructure works instead of actually building things.</p><p>Golden paths help solve these problems by providing <strong>a shared, reliable way to do things</strong>. They create consistency without completely removing developer autonomy.</p><h3>What a Golden Path Looks Like in Practice</h3><p>Imagine a developer starting to build a new service.</p><p>Instead of building everything from scratch, the process might look something like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1023/1*rl-y320O-1cOGkIFyXtVJA.png" /></figure><p>Under the hood, this could include things like:</p><ul><li>GitHub repository templates</li><li>Terraform modules</li><li>preconfigured CI/CD pipelines</li><li>observability dashboards</li><li>security defaults</li></ul><p>The developer focuses on the <strong>application</strong>, while the platform handles the heavy infrastructure work.</p><h3>The Biggest Mistake Platform Teams Make</h3><p>There’s one important detail many platform teams get wrong. Golden paths should <strong>guide developers, not control them</strong>. Bad platform teams treat golden paths like strict rules.</p><p><strong><em>“You must use this pipeline. No exceptions.”</em></strong></p><p>That approach rarely works. Engineers will always find ways around tools that slow them down. The best platform teams take a different approach. They make the golden path <strong>the easiest path</strong>.</p><p>If developers choose to use it because it saves time and reduces complexity, then the platform is doing its job.</p><h3>Golden Paths Are Really About Developer Experience</h3><p>At the end of the day, golden paths aren’t just about infrastructure or tooling.</p><p>They’re about <strong>developer experience</strong>.</p><p>A well-designed golden path should:</p><ul><li>reduce cognitive load</li><li>reduce setup time</li><li>eliminate repetitive infrastructure work</li><li>remove unnecessary decisions</li></ul><p>When developers can start building a service in minutes instead of days, the platform has succeeded.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wnLDxfzLaYtA_psWr1I-yg.png" /></figure><h3>Final Thought</h3><p>Platform engineering isn’t about controlling how developers work.</p><p>It’s about making the <strong>best way, also the easiest way</strong>.</p><blockquote><strong>That’s the real power of Golden Paths.</strong></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2877425287bc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Claude Code in Action: A Practical Review From Real Use]]></title>
            <link>https://sitardaniel.medium.com/claude-code-in-action-a-practical-review-from-real-use-5c795365cd4a?source=rss-8f59dc68f4ed------2</link>
            <guid isPermaLink="false">https://medium.com/p/5c795365cd4a</guid>
            <category><![CDATA[claude-code]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[anthropic-claude]]></category>
            <dc:creator><![CDATA[Sitar Gold]]></dc:creator>
            <pubDate>Fri, 06 Feb 2026 00:01:55 GMT</pubDate>
            <atom:updated>2026-02-06T00:01:55.023Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IC4RZfEh_WO3boHFr7v-6Q.png" /></figure><h3>I recently completed Claude Code in Action, Anthropic’s official course for Claude Code.</h3><p>It wasn’t a particularly challenging course for me, but that’s exactly why it was interesting. It made me pause, slow down, and re-examine how I actually use the tool in my day-to-day work.</p><p>We’re in a phase where AI tools evolve at a pace that’s almost impossible to keep up with. Every week, there’s a new capability, a new protocol, or a “<strong>better</strong>” way to work. In that kind of noise, an official course can serve a very important role: alignment.</p><p>Let me be clear, this is a lightweight course.<br>But lightweight doesn’t mean low value.</p><p>We often associate value with difficulty: how hard it was, how much we struggled, how much we had to prove ourselves. This course doesn’t work that way. Instead, it provides structure, shared language, and insight into how Anthropic actually envisions Claude Code being used in real workflows.</p><p>A small bonus for those who care about it, this is one of the first official certificates for Claude Code. Yes, I added it to my LinkedIn, it’s nice to have something tangible that marks a learning milestone.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1V7kUMm1aHV_2ecVpHpTzg.png" /></figure><h4>Who is this course really for?</h4><p>In my view, the course serves two distinct audiences:</p><p><strong>If you’re new to Claude Code<br></strong>It’s a solid entry point. The course doesn’t throw you into the deep end — it builds understanding gradually and focuses on practical usage rather than abstract concepts.</p><p><strong>If you already use Claude Code<br></strong>Here, the course acts more like a mirror. It helps you ask:</p><blockquote>Am I using the full set of capabilities?<br>Am I working efficiently, or just comfortably?</blockquote><p>That matters because the learning curve for Claude Code is fairly steep, and its ecosystem is evolving fast. Without occasional pauses to rebuild your mental model, it’s easy to miss important pieces.</p><h4>What does the course cover?</h4><p>The content focuses on core, practical areas:</p><p><strong>MCP Servers (Model Context Protocol)</strong><br>How to use MCP servers to extend Claude Code beyond the model itself, connecting it to external data sources and services.</p><p><strong>Custom Commands<br></strong>Creating tailored commands that reduce repetitive work and improve workflow efficiency.</p><p><strong>Hooks</strong><br>This was one of my favorite parts. The course doesn’t just show how to use hooks, it explains how to implement them yourself. Once that clicks, you start thinking differently about workflow automation altogether.</p><h4>So… is it worth it?</h4><p>If you’re already working with Claude Code, or considering adding it to your toolset, yes, it’s worth your time.</p><p>It’s light enough that it doesn’t feel like a heavy commitment, but structured enough to give you a solid foundation and clearer mental model.</p><p>In a world where AI-assisted development is quickly becoming the default rather than the exception, sometimes a course like this is exactly the pause you need to move forward more intentionally.</p><p>Try it for yourself here-<br><a href="https://anthropic.skilljar.com/claude-code-in-action">https://anthropic.skilljar.com/claude-code-in-action</a></p><p>Just tell me how you’d like to tune it ✨</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5c795365cd4a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From Prompts to Productivity: How to Write Better AI Prompts at Work]]></title>
            <link>https://sitardaniel.medium.com/from-prompts-to-productivity-how-to-write-better-ai-prompts-at-work-06fc2539cf07?source=rss-8f59dc68f4ed------2</link>
            <guid isPermaLink="false">https://medium.com/p/06fc2539cf07</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[ai-promts]]></category>
            <dc:creator><![CDATA[Sitar Gold]]></dc:creator>
            <pubDate>Sat, 25 Oct 2025 23:07:55 GMT</pubDate>
            <atom:updated>2026-03-13T02:10:36.135Z</atom:updated>
            <content:encoded><![CDATA[<p>Artificial Intelligence is everywhere in today’s workplace. From writing emails to generating code snippets, we’ve all opened ChatGPT or another AI tool, typed in a request, and waited for the magic to happen.</p><p>But here’s the catch: <strong>AI isn’t a mind reader</strong>. The quality of what you get depends directly on how you ask. A vague prompt usually gives you vague results. The good news? With just a few tweaks, you can transform AI from a curiosity into a serious productivity partner.</p><p>This post is about exactly that: how to write prompts that help you get actual work done.</p><h3>Why Prompts Matter</h3><p>Think of AI like a very smart, but extremely literal intern. If you just say:</p><p>❌ <em>“Summarize this report.”</em></p><p>You might get a long, generic summary.</p><p>But if you add clarity, context, and constraints:</p><p>✅ <em>“Summarize this report in 5 bullet points for a manager who doesn’t have time to read details. Highlight the risks and opportunities.”</em></p><p>Now the AI knows your audience, your format, and your intent. And the result is something you can actually use.</p><h3>The 4 Cs of Prompting</h3><p>When writing prompts at work, I like to think in terms of the <strong>4 Cs</strong>:</p><ol><li><strong>Clarity</strong> -Be precise about what you want.</li></ol><ul><li>Instead of <em>“Write an email,”</em> try:<br> <em>“Draft a polite follow-up email to a vendor who missed a deadline, keeping the tone firm but professional.”</em></li></ul><p><strong>2. Context</strong> - Give background so AI understands the situation.</p><ul><li><em>“You are helping a DevOps team. We’re migrating workloads to AWS. Draft a checklist for the first week of migration.”</em></li></ul><p><strong>3. Constraints</strong> - Set boundaries like tone, format, or length.</p><ul><li><em>“Create a 200-word executive summary with 3 recommendations.”</em></li></ul><p><strong>4. Creativity</strong> -Don’t settle for one answer. Ask for options.</p><ul><li><em>“Suggest 3 alternative headlines for this blog post, one formal, one playful, and one concise”.</em></li></ul><h3>Practical Workplace Examples</h3><p>Here are a few common ways you can apply these principles at work:</p><h3>📧 Writing Emails</h3><p>❌ <em>“Write an email about the meeting.”</em></p><p>✅ <em>“Write a professional email reminding the team about tomorrow’s 9AM meeting. Keep it friendly, under 100 words, and include the agenda topics”.</em></p><h3>📊 Reports &amp; Summaries</h3><p>❌ <em>“Summarize this document.”</em></p><p>✅ <em>“Summarize this 20-page technical document into 5 bullet points that a non-technical executive can understand. Highlight financial implications.”</em></p><h3>🧠 Brainstorming Ideas</h3><p>❌ <em>“Help me with ideas.”</em></p><p>✅ <em>“Give me 5 content ideas for LinkedIn posts about DevOps, focusing on automation and cloud cost optimization.”</em></p><h3>💻 Coding Help</h3><p>❌ <em>“Fix this Python error.”</em></p><p>✅ <em>“I’m getting a KeyError in this Python script when reading from a dictionary. Suggest the fix and explain why it happens.”</em></p><h3>Advanced Prompting Tips</h3><p>If you want to level up, here are three techniques professionals use:</p><p><strong>Role Assignment</strong></p><ul><li><em>“You are a senior DevOps engineer. Explain Kubernetes autoscaling to a new hire in simple terms.”</em></li></ul><p><strong>Step-by-Step Instructions</strong></p><ul><li><em>“Before giving the final script, explain the steps and assumptions you’re making.”</em></li></ul><p><strong>Iterative Prompting</strong></p><ul><li>Start broad, then refine:<br> <em>“Draft a blog post outline.” → “Make it more technical.” → “Add a section on cost-saving strategies.”</em></li></ul><h3>Common Mistakes to Avoid</h3><ol><li><strong>Being too vague- </strong>“Help me with this” is almost guaranteed to disappoint.</li><li><strong>Overloading one prompt- </strong>Splitting tasks works better than asking for 10 things at once.</li><li><strong>Forgetting your audience- </strong>Always tell the AI <em>who</em> the content is for (manager, customer, developer, etc).</li></ol><h3>Final Thoughts</h3><p>AI is a powerful tool, but like any tool, it’s only as good as how you use it. Writing better prompts doesn’t just save you time, it changes the way you work.</p><p>Tomorrow, take one task you’d normally do at work, an email, a report or a quick summary, and try rewriting your prompt with clarity, context, and constraints. See how much closer it gets you to a result you can use.</p><p>Don’t just use AI. <strong>Make it work for you.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=06fc2539cf07" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is DevOps?]]></title>
            <link>https://sitardaniel.medium.com/what-is-devops-65b08830348f?source=rss-8f59dc68f4ed------2</link>
            <guid isPermaLink="false">https://medium.com/p/65b08830348f</guid>
            <category><![CDATA[what-is-devops]]></category>
            <category><![CDATA[devops-culture]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[Sitar Gold]]></dc:creator>
            <pubDate>Mon, 08 Sep 2025 19:58:00 GMT</pubDate>
            <atom:updated>2025-09-08T19:58:00.575Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jvsUX0de02jWPYUO1PYNoQ.png" /></figure><h3>Now that I’ve completed my DevOps course and started a DevOps position, I want to share my two cents on what DevOps really is and why it’s such a big deal in modern organizations.</h3><h3>So… What is DevOps?</h3><p>Unlike my course instructor, I’m not going to describe DevOps as a mystical concept no one can quite pin down. To me, it’s simpler than that: <strong>DevOps is a culture</strong>.</p><p>It’s about breaking down the wall between <strong>development</strong> (building software) and <strong>operations</strong> (running and maintaining it). Instead of working in silos, DevOps encourages teams to collaborate, automate, and continuously improve together.</p><h3>The Core of DevOps</h3><p>When people talk about DevOps, a few practices always come up:</p><ul><li><strong>Automation- </strong>from testing to deployments.</li><li><strong>Continuous Integration &amp; Continuous Delivery (CI/CD)- </strong>shipping features faster, with fewer bugs.</li><li><strong>Monitoring &amp; Feedback- </strong>learning from real-world use and improving quickly.</li><li><strong>Collaboration &amp; Culture- </strong>developers, operations, QA, and security working together instead of pointing fingers.</li></ul><h3>Why It Matters</h3><p>In today’s fast-moving tech world, organizations can’t afford long release cycles, unstable systems, or endless “it works on my machine” arguments. DevOps helps companies deliver software that’s <strong>faster, more reliable, and more aligned with company needs</strong>.</p><p>For me personally, learning DevOps opened up a new way of thinking: not just writing or running code, but seeing the <strong>entire lifecycle</strong> of software as one continuous flow.</p><h3>Want to Dive Deeper?</h3><p>If you’re curious how to get started, I highly recommend checking out the <a href="https://roadmap.sh/devops"><strong>DevOps Roadmap</strong></a>, a step-by-step guide for DevOps, SRE, or any other operations role in 2025.</p><p>And if you’re a beginner, you might find my previous guides helpful:</p><ul><li>[<a href="https://sitardaniel.medium.com/git-anything-32cf2e93562a">Git Anything</a>]</li><li>[<a href="https://sitardaniel.medium.com/docker-b9df5cad2c2d">Container Carnival: Docker Delights for Beginners</a>]</li><li>[<a href="https://sitardaniel.medium.com/kubernetes-9cb7ae2e939a">K8s-entials: A Beginner’s Journey</a>]</li><li>[<a href="https://sitardaniel.medium.com/jenkins-your-tech-butler-73d80357c790">Jenkins Basics</a>]</li></ul><p>👉 That’s how I see DevOps, not as buzzwords or mystery, but as a culture that brings people, processes, and tools together to build better software.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=65b08830348f" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>