<?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 Christina on Medium]]></title>
        <description><![CDATA[Stories by Christina on Medium]]></description>
        <link>https://medium.com/@christinacc?source=rss-e773d7d7872e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*xN96aq8LRJkItB-uRyAjmA@2x.jpeg</url>
            <title>Stories by Christina on Medium</title>
            <link>https://medium.com/@christinacc?source=rss-e773d7d7872e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 08:36:53 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@christinacc/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[Agentic RAG Part II — Building a Multi-Document Research Assistant]]></title>
            <link>https://medium.com/@christinacc/agentic-rag-part-ii-building-an-ai-assistant-4d971b7b5b1e?source=rss-e773d7d7872e------2</link>
            <guid isPermaLink="false">https://medium.com/p/4d971b7b5b1e</guid>
            <category><![CDATA[agentic-ai]]></category>
            <category><![CDATA[retrieval-augmented-gen]]></category>
            <category><![CDATA[rags]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[agentic-rag]]></category>
            <dc:creator><![CDATA[Christina]]></dc:creator>
            <pubDate>Sun, 04 Jan 2026 11:43:15 GMT</pubDate>
            <atom:updated>2026-01-05T00:05:46.975Z</atom:updated>
            <content:encoded><![CDATA[<h3>Agentic RAG Part II — Building a Multi-Document Research Assistant</h3><p>After <a href="https://medium.com/@christinacc/agentic-rag-part-i-comparison-with-traditional-rag-6f1024da93bb">Part I</a> fundamentals, I followed <a href="https://learn.deeplearning.ai/courses/building-agentic-rag-with-llamaindex/lesson/it0jz/router-query-engine">DeepLearning.AI Building Agentic RAG course</a> and created an An AI-powered research assistant.</p><h3><strong>Table of Contents</strong></h3><ol><li><a href="#4b3b">What I Built</a></li><li><a href="#6049">The core Idea: Two Tools Per Document</a></li><li><a href="#8637">How It Works</a></li><li><a href="#00c4">Caching for Fast Restarts</a></li><li><a href="#f704">The Complete Architecture</a></li><li><a href="#297f">Tech Stack</a></li><li><a href="#07cc">Key Takeaways</a></li><li><a href="#e4bf">Try it yourself</a></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/801/1*c_i-DzS5fOJW27rSk7hd3w.png" /></figure><h3>💡 What I Built</h3><p>A simple research assistant with three capabilities:</p><ul><li><strong>Upload PDFs:</strong> Drag and drop research PDF papers</li><li><strong>Ask questions: </strong>Natural language queries</li><li><strong>Get answers: </strong>Sourced from uploaded documents</li></ul><h3>🛠️ The core Idea: Two Tools Per Document</h3><p>Traditional RAG treats every query the same: <em>embed → retrieve → generate</em>. But different questions <strong><em>need</em></strong> different approaches:</p><pre>&quot;What algorithm does this use?&quot; ------ Search for specific chunks<br>&quot;Summarize this paper&quot;          -------  Process the whole document</pre><p><strong><em>Solution</em></strong>: create <strong><em>two tool</em>s</strong> for each document.</p><pre>e.g. Document: metagpt.pdf<br>│<br>├──▶ vector_metagpt → Semantic search (finds specific info)<br>│<br>└──▶ summary_metagpt → Tree summarization (condenses entire doc)</pre><p>The agent looks at the question and picks the right tool.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OPP93wNlyfqS2Q9TlJlBww.png" /><figcaption>Example from my local</figcaption></figure><p>Output tools used example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*n5YP2hT64SYw1DB1qPwALA.png" /></figure><h3><strong>🔮 How It Works</strong></h3><h4><strong>Step 1: Index the Document</strong></h4><p>When user uploads a PDF:</p><pre>PDF File<br>    │<br>    ▼<br>┌─────────────────────┐<br>│  Load &amp; Parse       │  Extract text from pages<br>└─────────────────────┘<br>    │<br>    ▼<br>┌─────────────────────┐<br>│  Split into Chunks  │  1024 tokens each<br>└─────────────────────┘<br>    │<br>    ▼<br>┌─────────────────────┐<br>│  Create Embeddings  │  Text → 384-dim vectors <br>└─────────────────────┘<br>    │<br>    ├──────────────────────────┐<br>    ▼                          ▼<br>┌──────────────┐        ┌──────────────┐<br>│ VectorStore  │        │ SummaryIndex │<br>│    Index     │        │              │<br>└──────────────┘        └──────────────┘</pre><pre># 4. Build tools for a single document<br>def build_doc_tools(pdf_path: str) -&gt; Tuple[list[QueryEngineTool], VectorStoreIndex, SummaryIndex]:<br>    &quot;&quot;&quot;<br>    Build vector and summary tools for a single document.<br><br>    Args:<br>        pdf_path (str): Path to the PDF document.<br>    Returns:<br>        Tuple[list, object, object]: A tuple containing a list of QueryEngineTools,<br>        a VectorStoreIndex, and a SummaryIndex.<br><br>    &quot;&quot;&quot;<br>    doc_name = get_doc(pdf_path)<br><br>    # 1. load doc and parse<br>    documents = SimpleDirectoryReader(input_files=[pdf_path]).load_data()<br>    splitter = SentenceSplitter(chunk_size=1024)<br>    nodes = splitter.get_nodes_from_documents(documents)<br><br>    # 2. create index<br>    vector_index = VectorStoreIndex(nodes)<br>    summary_index = SummaryIndex(nodes)<br><br>    # 3. create query engine<br>    vector_engine = vector_index.as_query_engine(similarity_top_k=2)<br>    summary_engine = summary_index.as_query_engine(<br>        response_mode=&quot;tree_summarize&quot;,<br>        use_aync=True,<br>    )<br><br>    # 4. create tools<br>    vector_tool = QueryEngineTool.from_defaults(<br>        query_engine=vector_engine,<br>        name=f&quot;vector_{doc_name}&quot;,<br>        description=f&quot;Useful for answering questions about the content of the document {doc_name}.&quot;<br>    )<br><br>    summary_tool = QueryEngineTool.from_defaults(<br>        query_engine=summary_engine,<br>        name=f&quot;summary_{doc_name}&quot;,<br>        description=f&quot;Useful for summarizing the content of the document {doc_name}.&quot;<br>    )<br><br>    return [vector_tool, summary_tool], vector_index, summary_index</pre><p><strong>Notes:</strong></p><ul><li><strong><em>Chunk size</em></strong>: 1024 token chunk size is a common default choice. See <a href="https://www.llamaindex.ai/blog/evaluating-the-ideal-chunk-size-for-a-rag-system-using-llamaindex-6207e5d3fec5">how to evaluate different chunk size</a>.</li><li><strong>Response Mode</strong>: tree_summarize works well for long documents. Alternatives include compact (medium documents), refine (when order matters), and simple_summarize (short documents).</li><li><strong>Tool descriptions</strong> tell the agent when to use each tool. Good descriptions = better tool selection.</li></ul><h4><strong>Step 2: Tool Index for Scalability</strong></h4><p><strong><em>The Challenge</em></strong>: With 5 documents, we have 10 tools. With 50 documents, that’s 100 tools. The agent can’t efficiently evaluate all of them for every query as it would be <em>slow and expensive</em> to pass every tool description to the LLM.</p><p><strong><em>Solution</em></strong>: Index the tools themselves using ObjectIndex.</p><p>Instead of passing all tools to the agent, we embed the tool descriptions and retrieve only the relevant ones for each query. This is essentially RAG for tools.</p><pre>All Tools (10)<br>    │<br>    ▼<br>┌─────────────────────┐<br>│    ObjectIndex      │  Embed tool descriptions<br>└─────────────────────┘<br>    │<br>    │  Query: &quot;What is MetaGPT?&quot;<br>    ▼<br>┌─────────────────────┐<br>│   Tool Retriever    │  Match query to descriptions<br>│   (top_k = 2)       │<br>└─────────────────────┘<br>    │<br>    ▼<br>Only 2 relevant tools passed to agent</pre><pre><br># 11. Create tool index for dynamic retrieval<br>def create_tool_index(tools: List[QueryEngineTool]) -&gt; ObjectIndex:<br>    &quot;&quot;&quot;<br>    Create an ObjectIndex over all tools for dynamic retrieval.<br><br>    Args:<br>        tools (List[QueryEngineTool]): List of QueryEngineTools.<br><br>    Returns:<br>        ObjectIndex: An ObjectIndex over the tools.<br>    &quot;&quot;&quot;<br>    return ObjectIndex.from_objects(tools, index_cls=VectorStoreIndex)<br><br># 12. Get tool retriever<br>def get_tool_retriever(tool_index: ObjectIndex, top_k: int = 2):<br>    &quot;&quot;&quot;<br>    Get a retriever that returns top-k relevant tools.<br><br>    Args:<br>        tool_index (ObjectIndex): The tool index.<br>        top_k (int): Number of top relevant tools to retrieve.  Defaults to 2.<br><br>    Returns:<br>        Retriever: A retriever for the tool index.<br>    &quot;&quot;&quot;<br>    return tool_index.as_retriever(similarity_top_k=top_k)</pre><p><strong>How ObjectIndex works:</strong></p><ol><li>Each tool has a description (e.g., “Useful for answering questions about metagpt”)</li><li>ObjectIndex embeds these descriptions into the same vector space as queries</li><li>When a query comes in, it retrieves tools whose descriptions are semantically similar</li><li>Only these relevant tools are passed to the agent</li></ol><h4>Step 3: Create Agent</h4><pre>def create_agent(tool_retriever):<br>    &quot;&quot;&quot;<br>    Create a FunctionAgent with tool retriever.<br><br>    Args:<br>        tool_retriever: A retriever that provides relevant tools.<br>    Returns:<br>        FunctionAgent: An agent configured with the tool retriever and LLM.<br>    &quot;&quot;&quot;<br>    api_key = get_groq_api_key()  # Ensure env loaded<br>    llm = Groq(model=&quot;meta-llama/llama-4-scout-17b-16e-instruct&quot;, api_key=api_key)<br><br>    agent = FunctionAgent(<br>        tool_retriever=tool_retriever,<br>        llm=llm,<br>        verbose=True,<br>        system_prompt=(<br>            &quot;You are a helpful research assistant that answers questions about documents. &quot;<br>            &quot;Use the available tools to search and summarize documents to answer user queries. &quot;<br>            &quot;Always cite which document you found the information in.&quot;<br>        ),<br>    )<br><br>    return agent</pre><p>When user ask a question:</p><pre>User: &quot;What is MetaGPT?&quot;<br>         │<br>         ▼<br>┌─────────────────────────┐<br>│  Tool Retriever         │  Find relevant tools<br>│                         │  → [vector_metagpt, summary_metagpt, ...]<br>└─────────────────────────┘<br>         │<br>         ▼<br>┌─────────────────────────┐<br>│  FunctionAgent          │  Pick the best tool<br>│                         │  → &quot;Use vector_metagpt&quot;<br>└─────────────────────────┘<br>         │<br>         ▼<br>┌─────────────────────────┐<br>│  Execute Tool           │  Run vector search<br>│                         │  → Get relevant chunks<br>└─────────────────────────┘<br>         │<br>         ▼<br>┌─────────────────────────┐<br>│  Generate Response      │  LLM synthesizes answer<br>└─────────────────────────┘<br>         │<br>         ▼<br>&quot;MetaGPT is a multi-agent framework...&quot;</pre><h3><strong>🧩 Caching for Fast Restarts</strong></h3><p>Embedding documents is slow. We can cache everything:</p><pre>storage/<br>├── manifest.json                        ← Tracks what&#39;s indexed<br>└── longlora/<br>    ├── vector/<br>    │   ├── default__vector_store.json   ← Vector embeddings<br>    │   ├── docstore.json                ← Original document chunks<br>    │   ├── graph_store.json             ← Node relationships<br>    │   ├── image__vector_store.json     ← Image embeddings (if any)<br>    │   └── index_store.json             ← Index metadata<br>    └── summary/<br>        ├── default__vector_store.json   ← Summary embeddings<br>        ├── docstore.json                ← Summary document store<br>        ├── graph_store.json             ← Summary node relationships<br>        ├── image__vector_store.json     ← Image embeddings (if any)<br>        └── index_store.json             ← Summary index metadata</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/586/1*XaO67vXeYifDBfj6B4gpJg.png" /></figure><p>On startup, check cache before rebuilding:</p><pre># 9. Rebuild or load tools for a document<br>def rebuild_tools_for_document(pdf_path: str) -&gt; List[QueryEngineTool]:<br>    &quot;&quot;&quot;<br>    Build tools for a document, using cache if available.<br><br>    Args:<br>        pdf_path (str): Path to the PDF document.<br><br>    Returns:<br>        List[QueryEngineTool]: List of QueryEngineTools for the document.&quot;&quot;&quot;<br>    # 1. get doc name<br>    doc_name = get_doc(pdf_path)<br><br>    # 2. try load indices<br>    cached = load_doc_index(doc_name)<br>    if cached is not None:<br>        # use cached indices<br>        vector_index, summary_index = cached<br><br>        # create query engines<br>        vector_engine = vector_index.as_query_engine(similarity_top_k=2)<br>        summary_engine = summary_index.as_query_engine(<br>            response_mode=&quot;tree_summarize&quot;,<br>            use_async=True,<br>        )<br><br>        # create tools<br>        vector_tool = QueryEngineTool.from_defaults(<br>            query_engine=vector_engine,<br>            name=f&quot;vector_{doc_name}&quot;,<br>            description=f&quot;Useful for answering questions about the content of the document {doc_name}.&quot;<br>        )<br><br>        summary_tool = QueryEngineTool.from_defaults(<br>            query_engine=summary_engine,<br>            name=f&quot;summary_{doc_name}&quot;,<br>            description=f&quot;Useful for summarizing the content of the document {doc_name}.&quot;<br>        )<br><br>        return [vector_tool, summary_tool]<br><br>    # 3. if fail, build tools and save indices<br>    tools, vector_index, summary_index = build_doc_tools(pdf_path)<br>    save_doc_index(doc_name, vector_index, summary_index)<br>    return tools</pre><blockquote><strong>Note</strong>: The manifest.json acts as a checkpoint, and it only updates after successful indexing, so partial failures don&#39;t corrupt the cache.</blockquote><h3><strong>🕸️ The Complete Architecture</strong></h3><pre>┌────────────────────────────────────────────────────────────────────┐<br>│                                                                    │<br>│  User uploads PDF                                                  │<br>│       │                                                            │<br>│       ▼                                                            │<br>│  ┌──────────┐     ┌─────────────────────────────────────┐         │<br>│  │ Indexer  │────▶│  For each document:                 │         │<br>│  └──────────┘     │  • Check cache                      │         │<br>│                   │  • If miss: chunk → embed → index   │         │<br>│                   │  • Create vector_tool + summary_tool│         │<br>│                   └─────────────────────────────────────┘         │<br>│                              │                                     │<br>│                              ▼                                     │<br>│                   ┌─────────────────────┐                         │<br>│                   │  Tool Index         │  ObjectIndex over tools │<br>│                   └─────────────────────┘                         │<br>│                              │                                     │<br>│                              ▼                                     │<br>│                   ┌─────────────────────┐                         │<br>│                   │  Tool Retriever     │  top_k = 2             │<br>│                   └─────────────────────┘                         │<br>│                              │                                     │<br>│  User asks question ─────────┤                                     │<br>│                              ▼                                     │<br>│                   ┌─────────────────────┐                         │<br>│                   │  FunctionAgent      │                         │<br>│                   │  • Get relevant tools                         │<br>│                   │  • Pick best tool                             │<br>│                   │  • Execute &amp; respond │                         │<br>│                   └─────────────────────┘                         │<br>│                              │                                     │<br>│                              ▼                                     │<br>│                          Response                                  │<br>│                                                                    │<br>└────────────────────────────────────────────────────────────────────┘</pre><h3><strong>⚙️ Tech Stack</strong></h3><p><strong><em>LLM</em></strong>: Groq (meta-llama/llama-4-scout-17b-16e-instruct), Free tier, fast inference</p><ul><li>Do keep in mind there is a token limit per min(30K) and per day (<br>500K) on free tier, see <a href="https://console.groq.com/settings/limits">here</a></li></ul><p><strong><em>Embeddings</em></strong>: HuggingFace BGE-small, Runs locally, no API cost</p><p><strong><em>Framework</em></strong>: LlamaIndex, Clean abstractions for RAG + agents</p><p><strong><em>UI</em></strong>: Gradio, Chat interface in ~50 lines</p><blockquote><strong><em>Total Cost</em></strong>: $0 (within Groq’s free tier)</blockquote><h3>⛳️ Key Takeaways</h3><ol><li><strong>Index/Retrieve agent tools</strong></li></ol><ul><li>With too many documents, tool retrieval via ObjectIndex the agent focused on relevant tools.</li></ul><p>2. <strong>Tool descriptions matter</strong></p><p>The agent picks tools based on descriptions. Be specific:</p><ul><li><strong>Bad</strong>: <em>`”Tool for document A”`</em></li><li><strong>Good</strong>: <em>`”Useful for answering specific questions about document A”`</em></li></ul><p><strong>3. Enable cache</strong></p><ul><li>Embedding is expensive. <em>Persist indices</em> to disk and load on <em>startup</em>.</li><li>A simple <em>manifest</em> file can track what’s been indexed and prevent redundant work.</li></ul><h3>🧗🏻‍♀️Try it yourself</h3><pre>git clone https://github.com/cloudchristina/Agentic-RAG<br>cd Agentic-RAG<br>pip install -r requirements.txt<br><br># Get a free API key at console.groq.com<br>echo &quot;GROQ_API_KEY=your_key&quot; &gt; .env<br>python app.py</pre><ul><li>Open <a href="http://127.0.0.1:7860,">http://127.0.0.1:7860</a></li><li>Follow <a href="https://github.com/cloudchristina/Agentic-RAG/blob/master/README.md#test">test instructions</a>, upload some PDFs and start asking questions.</li></ul><h4>References:</h4><ul><li><a href="https://learn.deeplearning.ai/courses/building-agentic-rag-with-llamaindex/lesson/yd6nd/introduction"><strong>Building Agentic RAG with Llamaindex</strong></a></li></ul><blockquote>This is Part I of a two-part series. Read Part I: <a href="https://medium.com/@christinacc/agentic-rag-part-i-comparison-with-traditional-rag-6f1024da93bb">Comparison with Traditional RAG</a></blockquote><blockquote><em>💡 Part of my </em><a href="https://huggingface.co/learn/agents-course"><em>Hugging Face Agents Course</em></a><em> journey. Code available </em><a href="https://github.com/cloudchristina/Agentic-RAG"><em>here</em></a><em>.</em></blockquote><blockquote>Found this useful? Let’s connect on <a href="https://www.linkedin.com/in/christina-cloud/">LinkedIn</a> 👋</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4d971b7b5b1e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Agentic RAG Part I — Comparison with Traditional RAG]]></title>
            <link>https://medium.com/@christinacc/agentic-rag-part-i-comparison-with-traditional-rag-6f1024da93bb?source=rss-e773d7d7872e------2</link>
            <guid isPermaLink="false">https://medium.com/p/6f1024da93bb</guid>
            <category><![CDATA[retrieval-augmented-gen]]></category>
            <category><![CDATA[agentic-ai]]></category>
            <category><![CDATA[agentic-rag]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Christina]]></dc:creator>
            <pubDate>Sun, 04 Jan 2026 09:35:09 GMT</pubDate>
            <atom:updated>2026-01-06T03:03:47.512Z</atom:updated>
            <content:encoded><![CDATA[<h3>Agentic RAG Part I — Comparison with Traditional RAG</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-1WRjjNL3ajmSLvnskhgWg.png" /></figure><p>As part of the <a href="https://huggingface.co/learn/agents-course/en/unit0/introduction">Hugging Face Agents course</a>, I learned the fundamentals of Agentic RAG. Since it differs from traditional RAG, I wanted to share the difference with a scenario, and build one in part II after completed <a href="https://learn.deeplearning.ai/courses/building-agentic-rag-with-llamaindex/lesson/it0jz/router-query-engine">DeepLearning.AI course</a>.</p><h3>Table Of Contents</h3><ol><li><a href="#af05">A Common Scenario</a></li><li><a href="#5724">What is RAG?</a></li><li><a href="#f49f">Traditional RAG</a></li><li><a href="#cd25">What is Agentic RAG?</a></li><li><a href="#09fe">When to Use Each</a></li></ol><h3>🧩 A Common Scenario</h3><p>Imagine you’re building a customer support system for a streaming service. A customer sends this message:</p><blockquote><em>“I was charged twice last month, and now I can’t access 4K content even though I upgraded to Premium. Can you fix both issues and confirm what I’ll be billed next month?”</em></blockquote><p>This isn’t a simple FAQ lookup. It requires:</p><ul><li>Investigating the billing issue</li><li>Checking account permissions</li><li>Taking action to resolve problems</li><li>Calculating future charges</li></ul><p>How would you build an AI system to handle this? Let’s explore two approaches.</p><h3><strong>🎡 What is RAG?</strong></h3><p><strong>RAG</strong> (Retrieval-Augmented Generation) addresses a core limitation of LLMs: they only know what they learned during training.</p><p>RAG connects an LLM to external knowledge sources. The model retrieves relevant information before generating a response, grounding outputs in factual, up-to-date data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*8oWbdo97F2wYesny.png" /></figure><h3>🤖 Traditional RAG</h3><p>Traditional RAG follows <em>a linear, single-pass</em> process.</p><p><strong>Analogy</strong>: A librarian who fetches one book when you ask a question.</p><h4>How It Works</h4><ol><li><strong>Query</strong> → User submits a query</li><li><strong>Embed</strong> → Embedding model converts the query to a vector</li><li><strong>Retrieve</strong> → System finds similar data from the knowledge base</li><li><strong>Augment:</strong> The retrieved information is combined with the original query to form an augmented prompt.</li><li><strong>Generate</strong> → LLM uses the augmented prompt to produce a response</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/0*jhWpN08mllejCYNC" /><figcaption>From AI Engineering</figcaption></figure><h4>Back to Our Scenario</h4><p>The system retrieves general documentation about subscriptions and billing:</p><blockquote><em>“Our Premium tier includes 4K streaming. Billing occurs monthly. If you’re experiencing issues, please contact </em><a href="/service/mailto:support@streaming.com"><em>support@streaming.com</em></a><em> or check your payment method in account settings.”</em></blockquote><p><strong>Result</strong>: Generic, unhelpful. No account access, no investigation, no resolution.</p><h4>Limitations</h4><ul><li>Single knowledge base per query</li><li>No retry if results are poor</li><li>Cannot break down multi questions</li><li>Cannot take actions as only retrieves information</li></ul><h3>🤔 What is Agentic RAG?</h3><p>Agentic RAG adds <strong><em>autonomous AI agents</em></strong> to the retrieval process.</p><p><strong>Analogy</strong>: A research assistant who <em>investigates, cross-references sources, and takes action on your behalf.</em></p><h4>What Makes an AI Agent?</h4><p>AI agents are LLMs with three key components:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*J5WOBnuDea2wGKishSdxzA.png" /></figure><h4>Types of Agents in Agentic RAG</h4><ul><li><strong>Routing Agents: </strong>Direct queries to appropriate knowledge sources and tools</li><li><strong>Query Planning Agents: </strong>Break complex queries into manageable subqueries</li><li><strong>ReAct Agents: </strong>Reason and act iteratively, adjusting based on results</li><li><strong>Plan-and-Execute Agents: </strong>Execute multi-step workflows independently, reducing costs</li></ul><h4>How it Works</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ESMjDxm-uvOgdg64" /><figcaption>From AI Engineering</figcaption></figure><h4>Back to Our Scenario</h4><p>The agent plans and executes:</p><ol><li><strong>Decompose</strong>: Identifies three issues: double charge, 4K access, future billing</li><li><strong>Investigate Billing</strong>: Queries Billing API → finds duplicate charge from upgrade bug</li><li><strong>Check Access</strong>: Queries Entitlements API → discovers sync delay blocking 4K</li><li><strong>Resolve</strong>: Initiates refund, triggers entitlement sync</li><li><strong>Calculate</strong>: Queries Billing Forecast → determines next month’s adjusted amount</li><li><strong>Respond</strong>:</li></ol><blockquote><em>“I’ve found both issues. The double charge was a system bug. I’ve initiated a $7.99 refund (3–5 business days).</em></blockquote><blockquote><em>Your 4K access is now active. Please sign out and back in to refresh.</em></blockquote><blockquote><em>January billing: $15.99 minus $4.00 credit = $11.99 on 15 January.”</em></blockquote><p><strong>Result</strong>: Investigated, resolved, and personalised.</p><h3>💡When to Use Each</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*a6ftmFtO2WCz8yQ4BGhL6w.png" /></figure><blockquote><strong>Notes</strong>: Example customer messages and responses were generated with ChatGPT for illustration.</blockquote><h4>References:</h4><ul><li><a href="https://aiengineering.beehiiv.com/p/rag-vs-agentic-rag-clearly-explained-91a2">RAG vs Agentic RAG — Clearly Explained</a></li><li><a href="https://www.ibm.com/think/topics/agentic-rag">What is agentic RAG?</a></li><li><a href="https://weaviate.io/blog/what-is-agentic-rag">https://weaviate.io/blog/what-is-agentic-rag</a></li></ul><blockquote>This is Part I of a two-part series. Read Part II: <a href="https://medium.com/@christinacc/agentic-rag-part-ii-building-an-ai-assistant-4d971b7b5b1e">Building a Multi-Document Research Assistant</a>.</blockquote><blockquote><em>💡 Part of my </em><a href="https://huggingface.co/learn/agents-course"><em>Hugging Face Agents Course</em></a><em> journey. Code available </em><a href="https://github.com/cloudchristina/Agentic-RAG"><em>here</em></a><em>.</em></blockquote><blockquote>Found this useful? Let’s connect on <a href="https://www.linkedin.com/in/christina-cloud/">LinkedIn</a> 👋</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6f1024da93bb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Build an Agent Part II — Building a Multi-modal Agent]]></title>
            <link>https://medium.com/@christinacc/how-to-build-an-agent-part-ii-how-to-build-an-agent-de8642419cf9?source=rss-e773d7d7872e------2</link>
            <guid isPermaLink="false">https://medium.com/p/de8642419cf9</guid>
            <category><![CDATA[hugging-face]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[agentic-ai]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Christina]]></dc:creator>
            <pubDate>Thu, 01 Jan 2026 14:11:21 GMT</pubDate>
            <atom:updated>2026-01-04T12:10:12.705Z</atom:updated>
            <content:encoded><![CDATA[<h3>How to Build an Agent Part II — Building a Multi-modal Agent</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*meUV4t6kfy_pnllIbBV7VA.png" /><figcaption>My agent evaluation runner with Gradio</figcaption></figure><p>In <a href="https://medium.com/@christinacc/how-to-build-an-agent-part-i-what-is-an-agent-0aacd5fb89c2">Part I</a>, we covered what AI agents are, how the reasoning loop works, and the basics of the <strong>smolagents</strong> framework. Now it’s time to build.</p><p>But before writing any code, how to start? These questions came to mind:</p><ul><li>What exactly am I building?</li><li>What are the constraints?</li><li>What decisions need to be made upfront?</li></ul><p>Let’s walk through my planning process, then the implementation.</p><h4>🤔 What am I building</h4><p>From project details <a href="https://huggingface.co/learn/agents-course/en/unit4/hands-on">here</a>, I gathered some key information from GAIA benchmark requirements:</p><ul><li><strong><em>Multi-step reasoning: </em></strong><em>Level 1 tasks need &lt; 5 reasoning steps</em></li><li><strong><em>Tool usage: </em></strong><em>Web search, code execution, file handling</em></li><li><strong><em>Multi-modal understanding: </em></strong><em>Must process PDFs, images, audio and video files</em></li><li><strong><em>Exact-match answers: </em></strong><em>Agent must return precisely the correct answer — “42” NOT “The answer is 42”</em></li></ul><h4>📝 Planning</h4><p>From the course, I created this checklist:</p><pre>┌─────────────────────────────────────────────────────────────────────┐<br>│                        Planning Checklist                           │<br>├─────────────────────────────────────────────────────────────────────┤<br>│                                                                     │<br>│  1. What MODEL to use?                                              │<br>│     └── Cheapest option that meets capability requirements          │<br>│                                                                     │<br>│  2. What FRAMEWORK to use?                                          │<br>│     └── Simple, lightweight, good for experimentation               │<br>│                                                                     │<br>│  3. What TOOLS are required?                                        │<br>│     └── Based on GAIA&#39;s multi-modal requirements                    │<br>│                                                                     │<br>│  4. What&#39;s the CRITICAL SUCCESS CRITERIA?                           │<br>│     └── EXACT MATCH = prompt engineering is everything              │<br>│                                                                     │<br>└─────────────────────────────────────────────────────────────────────┘</pre><p><strong><em>Model</em></strong></p><p>Based on <a href="https://docs.github.com/en/copilot/reference/ai-models/model-comparison">Model Comparison</a> from GitHub, I chose <strong>Claude Sonnet 4</strong> via LiteLLM:</p><ul><li>Access through my company’s internal AI gateway keeps costs manageable</li><li>Solid balance of reasoning capability and response quality for GAIA Level 1 tasks</li><li>LiteLLM wrapper gives flexibility to swap models easily and I can test Haiku for speed or Opus for harder tasks without code changes</li></ul><pre>model = LiteLLMModel(<br>    model_id=&quot;anthropic/claude-sonnet-4-20250514&quot;,<br>    api_key=os.getenv(&quot;ANTHROPIC_API_KEY&quot;),<br>    temperature=0.1,  # Low for consistency<br>)</pre><p><strong><em>Framework</em></strong></p><ul><li>smolagents is simple to set up and experiment, and enough for this project</li><li>CodeAgent can write and execute Python</li></ul><p><strong><em>Tools</em></strong></p><p>From all questions, GAIA requires web search, file handling, and multi-modal processing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IRvBSGJieuU8Zs89TKMZoQ.png" /></figure><p><strong><em>EXACTLY MATCH</em></strong></p><p><strong>Note:</strong> This was my biggest challenge. My initial score was 25%. After refining my system prompts, the agent performance significantly improved.</p><p>The learning here is being explicit with clear instructions:</p><ul><li>System prompt must explicitly forbid explanations</li><li>Negative examples show what NOT to do</li><li>Post-processing cleans up any mistakes the LLM makes</li></ul><h4>⚙️ Building the tools</h4><p>I built the tools by following:</p><ul><li>Clear docstring</li><li>Concise description</li><li>Not over engineering</li></ul><pre>### Tool 1: web_search<br>@tool<br>def web_search(query: str) -&gt; str:<br>    &quot;&quot;&quot;Search the web for information. Use for current events, facts, Wikipedia lookups, etc.<br><br>    Args:<br>        query: Search query (e.g., &quot;Mercedes Sosa discography wikipedia&quot;)<br><br>    Returns:<br>        Search results with titles, snippets, and URLs<br>    &quot;&quot;&quot;<br>    try:<br>        from ddgs import DDGS<br>        ddgs = DDGS()<br>        results = list(ddgs.text(query, max_results=5))<br>        if not results:<br>            return &quot;No results found.&quot;<br>        return &quot;\n\n&quot;.join(<br>            f&quot;**{r.get(&#39;title&#39;, &#39;&#39;)}**\n{r.get(&#39;body&#39;, &#39;&#39;)}\nURL: {r.get(&#39;href&#39;, &#39;&#39;)}&quot;<br>            for r in results<br>        )<br>    except Exception as e:<br>        return f&quot;Search error: {e}&quot;<br><br>### Tool 2: visit_webpage<br><br>@tool<br>def visit_webpage(url: str) -&gt; str:<br>    &quot;&quot;&quot;Fetch and read webpage content. Use to get full article text from URLs.<br><br>    Args:<br>        url: The URL to visit<br><br>    Returns:<br>        Webpage text content<br>    &quot;&quot;&quot;<br>    try:<br>        headers = {&quot;User-Agent&quot;: &quot;Mozilla/5.0&quot;}<br>        response = requests.get(url, headers=headers, timeout=15)<br>        response.raise_for_status()<br>        content = response.text<br>        content = re.sub(r&#39;&lt;script[^&gt;]*&gt;.*?&lt;/script&gt;&#39;, &#39;&#39;, content, flags=re.DOTALL | re.IGNORECASE)<br>        content = re.sub(r&#39;&lt;style[^&gt;]*&gt;.*?&lt;/style&gt;&#39;, &#39;&#39;, content, flags=re.DOTALL | re.IGNORECASE)<br>        content = re.sub(r&#39;&lt;[^&gt;]+&gt;&#39;, &#39; &#39;, content)<br>        content = re.sub(r&#39;\s+&#39;, &#39; &#39;, content).strip()<br>        return content[:15000]<br>    except Exception as e:<br>        return f&quot;Error: {e}&quot;<br><br>### Tool 3: read_file<br>@tool<br>def read_file(task_id: str) -&gt; str:<br>    &quot;&quot;&quot;Read attached files (images, PDFs, Excel, code, text).<br><br>    Args:<br>        task_id: The task ID<br><br>    Returns:<br>        File content (text, data, or base64 for images)<br>    &quot;&quot;&quot;<br>    file_name = _get_file_mapping().get(task_id)<br>    if not file_name:<br>        return &quot;No file attached.&quot;<br><br>    content = _download_file(task_id, file_name)<br>    if not content:<br>        return f&quot;Could not download: {file_name}&quot;<br><br>    ext = file_name.split(&quot;.&quot;)[-1].lower()<br><br>    # PDF<br>    if ext == &quot;pdf&quot;:<br>        try:<br>            import pypdf<br>            reader = pypdf.PdfReader(io.BytesIO(content))<br>            text = &quot;\n\n&quot;.join(p.extract_text() or &quot;&quot; for p in reader.pages)<br>            return text or &quot;PDF has no extractable text.&quot;<br>        except Exception as e:<br>            return f&quot;PDF error: {e}&quot;<br><br>    # Images - return base64 for vision<br>    if ext in [&quot;png&quot;, &quot;jpg&quot;, &quot;jpeg&quot;, &quot;gif&quot;, &quot;webp&quot;]:<br>        b64 = base64.b64encode(content).decode()<br>        media = {&quot;png&quot;: &quot;image/png&quot;, &quot;gif&quot;: &quot;image/gif&quot;, &quot;webp&quot;: &quot;image/webp&quot;}.get(ext, &quot;image/jpeg&quot;)<br>        return f&quot;[IMAGE]\ndata:{media};base64,{b64}&quot;<br><br>    # Excel<br>    if ext == &quot;xlsx&quot;:<br>        try:<br>            import pandas as pd<br>            excel = pd.ExcelFile(io.BytesIO(content))<br>            sheets = [f&quot;=== {s} ===\n{pd.read_excel(excel, s).to_string()}&quot; for s in excel.sheet_names]<br>            return &quot;\n\n&quot;.join(sheets)[:15000]<br>        except Exception as e:<br>            return f&quot;Excel error: {e}&quot;<br><br>    # CSV<br>    if ext == &quot;csv&quot;:<br>        try:<br>            import pandas as pd<br>            return pd.read_csv(io.BytesIO(content)).to_string()[:15000]<br>        except Exception:<br>            return content.decode(&quot;utf-8&quot;, errors=&quot;ignore&quot;)[:15000]<br><br>    # Audio - redirect to transcribe_audio<br>    if ext in [&quot;mp3&quot;, &quot;wav&quot;, &quot;m4a&quot;]:<br>        return f&quot;[AUDIO FILE] Use transcribe_audio(&#39;{task_id}&#39;) to get transcript.&quot;<br><br>    # Python/Text<br>    try:<br>        return content.decode(&quot;utf-8&quot;)[:15000]<br>    except Exception:<br>        return f&quot;Binary file: {file_name} ({len(content)} bytes)&quot;<br><br>### Tool 4: transcribe_audio<br>@tool<br>def transcribe_audio(task_id: str) -&gt; str:<br>    &quot;&quot;&quot;Transcribe audio files to text.<br><br>    Args:<br>        task_id: The task ID with audio file<br><br>    Returns:<br>        Transcribed text<br>    &quot;&quot;&quot;<br>    file_name = _get_file_mapping().get(task_id)<br>    if not file_name:<br>        return &quot;No audio file attached.&quot;<br><br>    ext = file_name.split(&quot;.&quot;)[-1].lower()<br>    if ext not in [&quot;mp3&quot;, &quot;wav&quot;, &quot;m4a&quot;, &quot;ogg&quot;, &quot;flac&quot;]:<br>        return f&quot;Not an audio file: {file_name}&quot;<br><br>    content = _download_file(task_id, file_name)<br>    if not content:<br>        return f&quot;Could not download: {file_name}&quot;<br><br>    with tempfile.NamedTemporaryFile(suffix=f&quot;.{ext}&quot;, delete=False) as tmp:<br>        tmp.write(content)<br>        tmp_path = tmp.name<br><br>    try:<br>        import whisper<br>        model = whisper.load_model(&quot;base&quot;)<br>        result = model.transcribe(tmp_path)<br>        return result[&quot;text&quot;].strip()<br>    except Exception as e:<br>        return f&quot;Transcription error: {e}&quot;<br>    finally:<br>        if os.path.exists(tmp_path):<br>            os.remove(tmp_path)<br><br><br>### Tool 5: youtube_transcript<br>@tool<br>def youtube_transcript(url: str) -&gt; str:<br>    &quot;&quot;&quot;Get transcript from a YouTube video.<br><br>    Args:<br>        url: YouTube URL<br><br>    Returns:<br>        Video transcript text<br>    &quot;&quot;&quot;<br>    match = re.search(r&#39;(?:youtube\.com/watch\?v=|youtu\.be/)([a-zA-Z0-9_-]{11})&#39;, url)<br>    if not match:<br>        return f&quot;Invalid YouTube URL: {url}&quot;<br>    video_id = match.group(1)<br><br>    # Try captions API<br>    try:<br>        from youtube_transcript_api import YouTubeTranscriptApi<br>        api = YouTubeTranscriptApi()<br>        try:<br>            data = api.fetch(video_id, languages=[&#39;en&#39;, &#39;en-US&#39;, &#39;en-GB&#39;])<br>        except Exception:<br>            data = list(api.list(video_id))[0].fetch()<br>        return &quot; &quot;.join(e.text for e in data)[:15000]<br>    except Exception:<br>        pass<br><br>    # Fallback: download audio and transcribe<br>    try:<br>        import yt_dlp<br>        import whisper<br>        with tempfile.TemporaryDirectory() as tmpdir:<br>            ydl_opts = {<br>                &quot;format&quot;: &quot;bestaudio/best&quot;,<br>                &quot;outtmpl&quot;: f&quot;{tmpdir}/audio.%(ext)s&quot;,<br>                &quot;postprocessors&quot;: [{&quot;key&quot;: &quot;FFmpegExtractAudio&quot;, &quot;preferredcodec&quot;: &quot;wav&quot;}],<br>                &quot;quiet&quot;: True,<br>            }<br>            with yt_dlp.YoutubeDL(ydl_opts) as ydl:<br>                ydl.extract_info(url, download=True)<br>            wav = next((f&quot;{tmpdir}/{f}&quot; for f in os.listdir(tmpdir) if f.endswith(&quot;.wav&quot;)), None)<br>            if wav:<br>                model = whisper.load_model(&quot;base&quot;)<br>                return model.transcribe(wav)[&quot;text&quot;][:15000]<br>    except Exception as e:<br>        return f&quot;Could not get transcript: {e}&quot;<br>    return &quot;No transcript available.&quot;</pre><h4>🛠️ Prompt engineering</h4><p>I refined my system prompts multiple times so that can have a better benchmark score.</p><pre>SYSTEM_PROMPT = &quot;&quot;&quot;You solve GAIA benchmark tasks. Answers are scored by EXACT STRING MATCH.<br><br>TOOLS:<br>- web_search(query): Search web<br>- visit_webpage(url): Read webpage<br>- read_file(task_id): Read files (images, PDFs, Excel, code)<br>- transcribe_audio(task_id): Audio to text<br>- youtube_transcript(url): YouTube captions<br><br>APPROACH:<br>1. Analyze the question<br>2. Use tools to find information if needed<br>3. Call final_answer() with ONLY the exact answer<br><br>CRITICAL - final_answer() format:<br>- NO explanations: final_answer(&quot;3&quot;) not final_answer(&quot;The answer is 3&quot;)<br>- Numbers: just digits<br>- Names: exact spelling from source<br>- Lists: comma-separated, alphabetical if asked<br>- Reversed text: read backwards, answer forwards (e.g., &quot;.thgir&quot; asks for &quot;right&quot;)<br>&quot;&quot;&quot;</pre><h4>🧹Post-Processing: The Safety Net</h4><p>Even with good prompts, LLMs sometimes still add explanations. Need to do clean it up:</p><pre>def _clean_answer(self, answer: str) -&gt; str:<br>        if not answer:<br>            return &quot;&quot;<br><br>        # Extract from final_answer(&quot;...&quot;) pattern<br>        import re<br>        match = re.search(r&#39;final_answer\([&quot;\&#39;](.+?)[&quot;\&#39;]\)&#39;, answer)<br>        if match:<br>            return match.group(1).strip()<br><br>        # Remove prefixes<br>        for prefix in [&quot;Final Answer:&quot;, &quot;final_answer:&quot;, &quot;Answer:&quot;, &quot;ANSWER:&quot;, &quot;=&gt;&quot;, &quot;Result:&quot;]:<br>            if answer.startswith(prefix):<br>                answer = answer[len(prefix):]<br><br>        return answer.strip(&quot; &#39;\&quot;&quot;)</pre><h4>🕸️ Put all together</h4><p><strong><em>For Below Parameters:</em></strong></p><ul><li>temperature 0.1: Low = deterministic. Exact match needs consistency.</li><li>add_base_tools=False: Full — control over what the agent can do.</li><li>max_steps=12 Enough for complex tasks, prevents infinite loops.</li></ul><pre>class BasicAgent:<br>    def __init__(self):<br>        print(&quot;Initializing BasicAgent...&quot;)<br><br>        model_id = os.getenv(&quot;MODEL_ID&quot;, &quot;anthropic/claude-sonnet-4-20250514&quot;)<br>        api_key = os.getenv(&quot;ANTHROPIC_API_KEY&quot;)<br>        api_base = os.getenv(&quot;ANTHROPIC_API_BASE&quot;)<br><br>        print(f&quot;Using model: {model_id}&quot;)<br><br>        model = LiteLLMModel(<br>            model_id=model_id,<br>            api_base=api_base,<br>            api_key=api_key,<br>            temperature=0.1,<br>        )<br><br>        self.agent = CodeAgent(<br>            model=model,<br>            tools=ALL_TOOLS,<br>            add_base_tools=False,<br>            additional_authorized_imports=[<br>                &quot;pandas&quot;, &quot;numpy&quot;, &quot;re&quot;, &quot;json&quot;, &quot;math&quot;,<br>                &quot;collections&quot;, &quot;itertools&quot;, &quot;datetime&quot;<br>            ],<br>            max_steps=12,<br>        )<br><br>        print(&quot;BasicAgent initialized.&quot;)<br>    </pre><p>This is Part II of a two-part series. <a href="https://medium.com/@christinacc/how-to-build-an-agent-part-i-what-is-an-agent-0aacd5fb89c2?postPublishedType=repub">Read Part I: What Is an Agen</a>t?</p><p><em>💡 Part of my </em><a href="https://huggingface.co/learn/agents-course"><em>Hugging Face Agents Course</em></a><em> journey. Code available on </em><a href="https://huggingface.co/spaces/Christinachenchen/Final_Assignment_Template"><em>Hugging Face Spaces</em></a><em>.</em></p><p>Found this useful? Let’s connect on <a href="https://www.linkedin.com/in/christina-cloud/">LinkedIn</a> 👋</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=de8642419cf9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Build an Agent Part I — What Is an Agent?]]></title>
            <link>https://medium.com/@christinacc/how-to-build-an-agent-part-i-what-is-an-agent-0aacd5fb89c2?source=rss-e773d7d7872e------2</link>
            <guid isPermaLink="false">https://medium.com/p/0aacd5fb89c2</guid>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[agentic-ai]]></category>
            <category><![CDATA[smolagents]]></category>
            <category><![CDATA[hugging-face]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Christina]]></dc:creator>
            <pubDate>Thu, 01 Jan 2026 12:59:48 GMT</pubDate>
            <atom:updated>2026-01-01T23:24:00.779Z</atom:updated>
            <content:encoded><![CDATA[<h3>How to Build an Agent Part I — What Is an Agent?</h3><p>I recently finished the <a href="https://huggingface.co/learn/agents-course/en/unit0/introduction">Hugging Face Agents Course</a> and it’s helped me solidify the core concepts. Following the “learn by doing” principle, I built an agent using smolagents, a lightweight framework and benchmarked it against <a href="https://huggingface.co/learn/agents-course/en/unit4/what-is-gaia">GAIA</a>.</p><h3>Who is this for?</h3><ul><li>Beginners who want to understand how agents actually work</li><li>Tech role transitioners like me 😍</li></ul><h3>Structure</h3><p>This blog is split into two parts:</p><ul><li><strong>Part I:</strong> What is an AI agent?</li><li><strong>Part II:</strong> How to build an AI agent?</li></ul><p>Before diving into code, I wanted to nail down the fundamentals. This post covers:</p><ul><li>The difference between an LLM and an agent</li><li>How the reasoning loop actually works</li><li>Getting started with the smolagents framework</li></ul><h3>🤖 LLMs vs Agents</h3><p>An LLM (large language model) is essentially a text processor that was trained on massive datasets, it can understand and generate natural language. Think of it as a brain with encyclopaedic knowledge but no hands 🙌.</p><p>An agent is that same LLM but with <strong>tools</strong> — the ability to actually <em>do</em> 👩🏻‍🔧things.</p><p>Here’s how I think about it:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KeZ9fPPLscy4BTKt1Fhdbg.png" /></figure><p>In practical terms, an AI agent is an LLM that can:</p><ul><li><strong>Use tools</strong> to interact with the outside world (search the web, read files, execute code)</li><li><strong>Reason in loops</strong> — observe results, think about what to do next, take action, repeat</li><li><strong>Decide autonomously</strong> when it has enough information to answer</li></ul><h3>⚙️ The Agent Reasoning Loop</h3><p>The heart of every AI agent is its <strong>reasoning loop</strong>. Different frameworks call it different things (ReAct, OODA, etc.), but the pattern is consistent:</p><pre>                    ┌─────────────────────────────────────┐<br>                    │           📥 User Query             │<br>                    └─────────────────┬───────────────────┘<br>                                      │<br>                                      ▼<br>                    ┌─────────────────────────────────────┐<br>            ┌──────▶│          🧠 Think/Reason            │<br>            │       └─────────────────┬───────────────────┘<br>            │                         │<br>            │                         ▼<br>            │       ┌─────────────────────────────────────┐<br>            │       │            Decision?                │<br>            │       └────────┬───────────────┬────────────┘<br>            │                │               │<br>            │    Need more info         Ready to answer<br>            │                │               │<br>            │                ▼               ▼<br>            │       ┌────────────────┐    ┌─────────────────┐<br>            │       │ 🔧 Act: Use    │    │  ✅ Final       │<br>            │       │     Tool       │    │     Answer      │<br>            │       └───────┬────────┘    └─────────────────┘<br>            │               │                     ▲<br>            │               ▼                     │<br>            │       ┌────────────────┐            │<br>            │       │ 👁️ Observe     │            │<br>            │       │    Results     │            │<br>            │       └───────┬────────┘            │<br>            │               │                     │<br>            └───────────────┘                     │<br>                                                  │<br>                    ⛔ Max Steps Reached ─────────┘</pre><p><strong>Think → Act → Observe → Repeat</strong></p><ol><li><strong>Think (Reason):</strong> The agent assesses the current state. What’s being asked? What do I know? What’s missing?</li><li><strong>Act:</strong> Based on that reasoning, it either:</li></ol><ul><li>Uses a tool (search, read a file, run code)</li><li>Returns the final answer</li></ul><p><strong>3. Observe:</strong> If a tool was called, the agent receives the output and adds it to its context.</p><p><strong>4. Repeat:</strong> Armed with new information, it loops back to Think. This continues until it can confidently answer.</p><blockquote><a href="https://github.com/huggingface/smolagents?tab=readme-ov-file#quick-demo">Here</a> is an simple demo from smolagents.</blockquote><h3>🔄 When Does the Loop Stop?</h3><p>Three scenarios:</p><ol><li>The agent calls final_answer() with a response</li><li>It hits the maximum step limit (preventing infinite loops)</li><li>An unrecoverable error occurs</li></ol><p>In my implementation, I set max_steps=12 - enough headroom for complex multi-step reasoning.</p><h3>🛠️ Smolagents</h3><p>Open-source agent framework from Hugging Face, lightweight, easy to start, simple to set up. very good for experiment.</p><p><strong>Core Components</strong></p><pre>┌─────────────────────────────────────────────────────────────┐<br>│                   smolagents Architecture                   │<br>├─────────────────────────────────────────────────────────────┤<br>│                                                             │<br>│                    ┌─────────────────┐                      │<br>│                    │    🧠 Model     │                      │<br>│                    │    (LiteLLM)    │                      │<br>│                    └────────┬────────┘                      │<br>│                             │                               │<br>│                             ▼                               │<br>│                    ┌─────────────────┐                      │<br>│                    │  🤖 CodeAgent   │                      │<br>│                    │                 │                      │<br>│                    │  • Reasoning    │                      │<br>│                    │  • Planning     │                      │<br>│                    │  • Execution    │                      │<br>│                    └────────┬────────┘                      │<br>│                             │                               │<br>│          ┌──────────────────┼──────────────────┐            │<br>│          ▼                  ▼                  ▼            │<br>│   ┌─────────────┐    ┌─────────────┐    ┌─────────────┐     │<br>│   │ 🔧 Tool 1   │    │ 🔧 Tool 2   │    │ 🔧 Tool 3   │     │<br>│   │ web_search  │    │ read_file   │    │    ...      │     │<br>│   └─────────────┘    └─────────────┘    └─────────────┘     │<br>│                                                             │<br>└─────────────────────────────────────────────────────────────┘</pre><ol><li><strong>Model:</strong> The LLM that powers reasoning. I used Claude Sonnet via LiteLLM, but you can swap in GPT-4, Llama, Mistral — whatever suits your use case.</li></ol><p><strong>2. Agent:</strong> The orchestrator that runs the reasoning loop. Smolagents offers two types:</p><ul><li>CodeAgent: Writes and executes Python code to use tools</li><li>ToolCallingAgent: Uses structured tool calls (JSON)</li></ul><p><strong>3. Tools:</strong> Functions the agent can call — each one is just a Python function decorated with @tool.</p><h4>CodeAgent vs ToolCallingAgent</h4><p>I chose CodeAgent for my GAIA project. Here&#39;s the difference:</p><ul><li>CodeAgent: Writes and executes Python code</li></ul><pre># Agent generates and executes this:<br>result = web_search(&quot;Paris population&quot;)<br>population = extract_number(result)<br>final_answer(str(population))</pre><ul><li>ToolCallingAgent: Uses structured JSON tool calls. One tool call at a time</li></ul><pre>{&quot;tool&quot;: &quot;web_search&quot;, &quot;args&quot;: {&quot;query&quot;: &quot;Paris population&quot;}}</pre><p>For the GAIA benchmark — which often requires chaining results and manipulating data — CodeAgent’s flexibility was essential.</p><h4>⎘ Next</h4><p>Go to <a href="https://medium.com/@christinacc/how-to-build-an-agent-part-ii-how-to-build-an-agent-de8642419cf9">Part II</a>, <em>how to build one?</em></p><p><em>💡 Part of my </em><a href="https://huggingface.co/learn/agents-course"><em>Hugging Face Agents Course</em></a><em> journey. Code available on </em><a href="https://huggingface.co/spaces/Christinachenchen/Final_Assignment_Template"><em>Hugging Face Spaces</em></a><em>.</em></p><p>Found this useful? Let’s connect on <a href="https://www.linkedin.com/in/christina-cloud/">LinkedIn</a> 👋</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0aacd5fb89c2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Apply for AWS All Builders Welcome Grant]]></title>
            <link>https://medium.com/@christinacc/how-to-apply-for-aws-all-builders-welcome-grant-5101e0c0be0d?source=rss-e773d7d7872e------2</link>
            <guid isPermaLink="false">https://medium.com/p/5101e0c0be0d</guid>
            <category><![CDATA[grant]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[reinvent]]></category>
            <category><![CDATA[netowrking]]></category>
            <dc:creator><![CDATA[Christina]]></dc:creator>
            <pubDate>Mon, 08 Dec 2025 18:24:50 GMT</pubDate>
            <atom:updated>2025-12-09T02:14:21.234Z</atom:updated>
            <content:encoded><![CDATA[<p>This year I was very lucky to receive the AWS All Builders Welcome Grant (ABW) for AWS re:Invent 2025. Honestly, it has been such an amazing experience as I met so many inspiring builders from all over the world.</p><p>Since many people still don’t know about this program, I wanted to put this guide together to help anyone who might want to apply next year. If you’re thinking about giving it a go, hopefully this will be useful 💛!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*hHynj-Ssay5_0_P6.png" /><figcaption>Me and ABW program Manager Norma Stevens 🎈</figcaption></figure><h3>✨ What is ABW?</h3><p>The <a href="https://reinvent.awsevents.com/all-builders-welcome/"><strong>All Builders Welcome Grant</strong></a> is designed for people in the <em>first five years</em> of their career. In short, it helps with financial barrier so you can attend AWS re:Invent (Dec 1–5, 2025).</p><p>It’s more than just a “free ticket” — it’s a whole support package to help you focus on learning, connecting, and showing up confidently as yourself.</p><p>Here’s what it includes:</p><ul><li>Full re:Invent conference pass</li><li>Return flights to Las Vegas</li><li>Hotel accommodation from 30 Nov to 5 Dec</li></ul><p>You will need a valid visa to enter USA. Unfortunately some people visa were rejected this year after receiving this grant.</p><h3>🧩 Prerequisites</h3><ul><li>Within the first five years of your career in cloud technology.</li><li>At least 21 years of age.</li><li>A genuine interest in AWS and building things (projects, community work, career development, etc.)</li><li>A clear story about your background and journey</li></ul><h3>📅 Open &amp; Closing Dates</h3><ul><li><strong>Applications Open:</strong> Late June in 2025</li><li><strong>Applications Close:</strong> Early Aug in 2025</li></ul><p>The timeline might shift next year, so keep an eye on AWS announcements.</p><h3>🌟 Some Thoughts for a Successful Application</h3><ol><li>Share your story authentically</li></ol><ul><li>Write about your journey in your own voice, clear on your challenges, and what motivates you to build.</li></ul><p>2. Highlight your activities in AWS.</p><ul><li>This could be through blogs, certifications, your job, tech talk, side projects, or community involvement.</li><li>Be specific, use clear examples with what you have achieved.</li></ul><p>3. Be clear about your goals.</p><ul><li>Explain why you want to attend re:Invent, what are you hoping to learn and how this will help your career path</li></ul><p>4. Show how you will give back.</p><ul><li>Whether it’s sharing knowledge, mentoring, organising meetups, or contributing to your team, show how you plan to use this opportunity to help others too.</li></ul><p>5. And it’s totally okay if you don’t get in the first time.</p><ul><li>I was rejected in 2024 on my first try (see below). After that, I kept learning, earned more certifications, and took ownership of automation projects using AWS. Then I applied again and got in. Keep trying and your moment will come ✨.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*mj5L7V4FYEOK2A0W.png" /></figure><h3>🕒 My Application Timeline</h3><p>I first saw the announcement in a Slack channel in late June → Submitted my application in mid-July → Received the confirmation email on 28 August.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*D6ZRw1BsAL4oePlZUyHNjw.png" /></figure><p>Once you receive the first <strong>“Congratulations”</strong> email, you’ll need to fill out a <strong>Confirmation Form</strong>.</p><p>The most important part of this stage is confirming whether you need a <strong>visa</strong> to enter the US.</p><p>After your visa situation is sorted, the registration emails for <strong>hotels and flights</strong> will start coming through.</p><p>If you’re from Australia or another country in the <a href="https://travel.state.gov/content/travel/en/us-visas/tourism-visit/visa-waiver-program.html"><strong>visa waiver program</strong></a>, you only need an approved <a href="https://esta.cbp.dhs.gov/"><strong>ESTA</strong></a>. After that, just follow the instructions in the “Registration for Hotels &amp; Flights” emails.</p><h3>🔮 What You Can Expect If You Get Selected</h3><ol><li>Flight booking email with travel agent</li></ol><ul><li>You will have your own attendee portal, where you can book hotel at Treasure Island (subject to change)</li></ul><p>2. Some Vouchers</p><ul><li>This year I received a Uber voucher. This voucher will be sent to your email, and you can activate it before you land in the US.</li></ul><p>3. Dedicated advisor</p><ul><li>Look closely on the slack channel details in your email. Your advisor will add you to a group and share some tips, checklist and insights when the days are close.</li></ul><p>4. Optional: Pre re:Invent Hike on 30th Nov(subject to change)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9VyYd09i6NFYQu57jHzUMg.png" /><figcaption>Red Rock Canyon</figcaption></figure><p>4. ABW Grant attendee Welcome night on 30th Nov</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*o02H8fHemapbjgoR1TZyOQ.png" /><figcaption>ABW Welcome Night</figcaption></figure><ul><li>A bus will pick everyone up in front of the hotel, there you will meet other attendees from all over the world. It’s quite fascinating when I recall as I had good conversations with two people also had career transition.</li></ul><p>5. ABW Grant Closing Ceremony on 4th Dec</p><ul><li>This year it was hosted at Wynn, a hotel close to Treasure Island. Plan to leave 20min early as it is quite a walking distance.</li></ul><p>6. During re:Invent time</p><ul><li>ABW also offers sessions like career path, speed networking, professional mentorship, and interviews tips. You can review these session details at specific “All Builders Welcome” section on your attendee portal.</li></ul><p>7. Conference networking</p><ul><li>Check out <a href="https://conferenceparties.com/reinvent2025/">https://conferenceparties.com/reinvent2025/</a> page and register the networking events you are interested in.</li></ul><h3>🌱 Things I Want to Share</h3><ol><li>Carefully read all the information in each email, and have a clear checklist of what you need to prepare, but pack lightly as you will need room for swags.</li><li>Have a clear goal for what you want to achieve at this event.</li></ol><ul><li>What are the top three things you want to gain from this opportunity? Interview insights? Career navigation? Mentorship? Networking? Special sessions?</li></ul><p>3. Try to find a buddy if you are a first-time re:Invent attendee.</p><ul><li>My buddy <a href="https://www.linkedin.com/in/danielgaina/">Daniel</a> and I helped each other navigate the venues, sessions, and even played card games together!</li></ul><p>4. Reserve seats early</p><ul><li>Workshops, chalk talks and breakout sessions fill up <em>very</em> quickly, and they’re not recorded. If you can’t secure a spot, be prepared to line up at least 20 minutes before the session. For one session I really wanted, I queued 30 minutes early and still barely made it in.</li><li>Back up session if you couldn’t make it</li></ul><p>5. Plan your sessions the night before and try not to jump between venues too much.</p><ul><li>MGM, Wynn, and Venetian look close on the map, but the walk can take 20–30 minutes <em>one way😅</em>. The best strategy is to stick to one venue per day so you’re not constantly rushing.</li><li>AWS Hero <a href="https://buymeacoffee.com/raphaelmanke">Raphael Manke</a> also made a re:Invent planner which is quite helpful with sessions, swags etc, see <a href="https://reinvent-planner.cloud/feed">https://reinvent-planner.cloud/feed</a></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/764/0*RbKgK46bLdM7eiPv.png" /><figcaption>Re:Invent Venue Map</figcaption></figure><p>6. Attend at least one keynote</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Bn93ecG69hIlwOcycBZE9g.png" /><figcaption>Werner’s last keynote ❤️‍🔥</figcaption></figure><ul><li>I was very lucky to attend Werner’s last keynote. His speech was super powerful (see <a href="https://www.youtube.com/watch?v=3Y1G9najGiI">https://www.youtube.com/watch?v=3Y1G9najGiI</a>), and definitely worth attending for.</li></ul><p>7. Networking intentionally</p><ul><li>Try your best to remember names even it’s hard, and get to know them more than just a name and country or job title. For me, the most meaningful part was hearing people’s personal stories.</li></ul><p>8. Wear comfortable shoes 👟</p><ul><li>Running shoes are best, as you will walk 20,000 steps most days without trying.</li></ul><p>9. Try to arrive one day early to unwind and familiarize with the route.</p><ul><li>All hotel casinos are like a maze, and it took me almost five days to stop walking in circles 😅.</li></ul><h3>🧘🏻‍♀️ Useful Links</h3><ul><li>AWS Hero <a href="https://www.linkedin.com/in/dahlqvistjimmy/">Jimmy</a>’s <a href="https://www.youtube.com/watch?v=sPfP4fqGnSc">YouTube</a></li><li>Kristine’s blog: <a href="https://www.linkedin.com/pulse/first-aws-reinvent-survival-guide-how-actually-enjoy-beyond-kristine-jeiee/?trackingId=OxnQbZiZROqSi5hS%2FpuGqA%3D%3D">first-aws-reinvent-survival-guide</a></li></ul><p>If you have any questions or just want to connect, feel free to reach out to me on LinkedIn:</p><p>👉 <strong>Christina Chen</strong> — <a href="https://www.linkedin.com/in/christina-cloud/">https://www.linkedin.com/in/christina-cloud/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5101e0c0be0d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Kubernetes Observability With NewRelic]]></title>
            <link>https://medium.com/@christinacc/kubernetes-observability-with-newrelic-d94e3d87e24b?source=rss-e773d7d7872e------2</link>
            <guid isPermaLink="false">https://medium.com/p/d94e3d87e24b</guid>
            <category><![CDATA[new-relic]]></category>
            <category><![CDATA[logging]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[monitor]]></category>
            <category><![CDATA[observability]]></category>
            <dc:creator><![CDATA[Christina]]></dc:creator>
            <pubDate>Sun, 13 Oct 2024 07:36:43 GMT</pubDate>
            <atom:updated>2024-10-13T09:20:29.579Z</atom:updated>
            <content:encoded><![CDATA[<h3>Kubernetes Observability With New Relic</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*77SIMFjcNxN9JjQtQGJqZA.png" /></figure><h3>🤔 What is New Relic?</h3><p>New Relic is a powerful observability platform offering full-stack monitoring across key areas such as <strong>browser performance</strong>, <strong>services</strong>, <strong>infrastructure</strong>, and <strong>synthetic monitoring</strong>. Its standout features include <strong>automatic anomaly detection</strong>, <strong>distributed tracing</strong>, <strong>service maps</strong>, and <strong>customizable dashboards</strong>, providing real-time visibility into how your services interact.</p><p>With <strong>service maps (example below)</strong>, for instance, you can visualize dependencies across your system, making it easier to spot bottlenecks and troubleshoot. In this post, I will demonstrate how to integrate New Relic with Kubernetes to monitor your entire cluster using a <strong>free-tier</strong> approach.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*P9lsHZ5FqmGszpqZq3K9sQ.png" /></figure><h3>Create Local K8s cluster</h3><h4>Using Minikube <strong>(No Cost Setup)</strong></h4><ul><li>To begin, create a local Kubernetes cluster using Minikube. This simple setup includes one control plane and one worker node.</li><li>If wanna see more details, check this <a href="https://minikube.sigs.k8s.io/docs/tutorials/multi_node/">multi-node Minikube tutorial</a>.</li></ul><pre># Start a basic Minikube cluster with one control plane<br>time minikube start<br><br># Create a multi-node cluster with Minikube<br>minikube start --nodes 2 -p multinode-demo<br><br># Verify cluster information &amp; copy the cluster name<br>kubectl config view --minify<br><br># Check the current cluster context<br>kubectl config current-context</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ibY3LT_hpF5T2q7xS0KxDA.png" /></figure><p>For testing, I initially enabled Kubernetes on Docker Desktop, but it threw some kubelet errors, likely due to the single-node setup. Switching to Minikube resolved the issue.</p><p><em>Alternatively, for Mac users, you can also install a lightweight Linux virtual machine using </em><a href="https://github.com/lima-vm/lima"><em>Lima</em></a><em>, which supports Kubernetes.</em></p><h3>😋 Create a New Relic Account</h3><ul><li>Before integrating Kubernetes with New Relic, you need an account. You can sign up for a free account <a href="https://newrelic.com/signup">here</a>.</li><li>There are various subscription plans available (see below), but the free version should be enough for testing and most observability needs.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BHZJUn8D2hufAXPMCPKeLg.png" /></figure><h3>Integrate Kubernetes with New Relic</h3><ol><li>Create a API user key</li><li>Go to NR console and integration kubernetes section. We have different methods and I use guided install as below:</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aMCVbFvPciMmBL6Zgr6VJQ.png" /></figure><p>3. Click ‘Guided’ and enter your cluster name &amp; above API key</p><p>4. Copy and paste the command New Relic provides like below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hOfGZlFp_JrMk5mcqu06Sw.png" /></figure><p>5. Continue through the setup with default options, and test the connection as prompted like below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KqlyUCuYykO93s1cCTdQ2Q.png" /></figure><p>6. Click ‘Next’</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*844ttE_b-H1jxF45HolUww.png" /></figure><p>7. Click <strong>See Your Data</strong> to visualize cluster metrics on your dashboard.</p><p>8. Navigate to <strong>Kubernetes</strong> to explore cluster-level insights and metrics.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*j2mO-fGLu8ZFU_F5DXbGLg.png" /></figure><h3><strong>Observability in Action</strong></h3><h4>Monitoring</h4><ul><li>With New Relic, you can monitor your cluster’s performance and health in real-time. Key metrics such as node and pod resource usage will be available on dashboards.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4p3UXKqg-HyZ0bhYs6x9zQ.png" /></figure><h3>Logging</h3><ul><li>Query Data with NRQL or data explorer</li><li>By using entity name and run queries</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qjGK12anJbyb19wjUH7RxQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7E9sUZhsCPl-MfKi1PJ72g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2VAbn_biavURLG8AT6WxsA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iVfOkbXziVDc6LwrkUJkbg.png" /></figure><h3>Alerting</h3><ul><li>New Relic comes with default alert policies for your Kubernetes environment. You can also customize these to suit your needs.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2PT8W920gKmRGOaUbnI7pw.png" /></figure><h3>Tracing</h3><ul><li>With distributed tracing, you can track how API requests travel through your entire system, helping you pinpoint delays and errors. Check out an example from the <a href="https://github.com/newrelic-experimental/relicstaurants">Relicstaurants GitHub repository</a>.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IiwoYp9O4_Gyat7mLtuN1g.png" /></figure><h3>New Relic Components</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*eQBefQQqtRGOjs2U" /></figure><p>Curious about how it works behind the scenes? When you use the New Relic CLI, it installs the <strong>nri-bundle</strong>, which includes the <strong>newrelic-infrastructure</strong> chart — think of it as a toolbox with key monitoring components.</p><p><strong>Core Components (Installed by Default):</strong></p><p>• <strong>newrelic-infrastructure</strong>: The core monitor for tracking node, pod, and control plane metrics.</p><p>• <strong>nrk8s-ksm</strong>: Monitors Kubernetes state, providing visibility into namespaces, deployments, replicasets, etc.</p><p>• <strong>nrk8s-kubelet</strong>: Collects node-level infrastructure metrics such as CPU, memory, and network usage.</p><p>• <strong>nrk8s-controlplane</strong>: Keeps an eye on control plane components like etcd and scheduler.</p><p><strong>Optional Components:</strong></p><p>• <strong>nri-metadata-injection</strong>: Adds Kubernetes metadata to your application’s telemetry data for enriched insights.</p><p>• <strong>kube-state-metrics</strong>: Gathers cluster-level metrics related to your Kubernetes environment.</p><p>• <strong>nri-kube-events</strong>: Captures and sends Kubernetes events to New Relic for real-time monitoring.</p><p>• <strong>newrelic-logging</strong>: Collects logs from Kubernetes components and workloads, allowing you to filter by namespace to optimize data ingestion.</p><ul><li><strong>nri-prometheus</strong>: Integrates with Prometheus, allowing you to send application metrics to New Relic.</li><li><strong>newrelic-pixie</strong>: Exports Pixie data to New Relic for long-term storage and observability, but only supports certain cluster types like GKE, EKS, and AKS (Minikube is not supported).</li></ul><p>In our use case, below bundle pods are deployed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Gw0sGGsblcPqHGFD4Me9uw.png" /></figure><p><strong>Conclusion</strong></p><p>With the integration of New Relic into your Kubernetes cluster, you can enjoy real-time observability, from resource usage metrics to logs and alerts.</p><p>This integration empowers you to troubleshoot faster, optimize performance, and make data-driven decisions across your infrastructure. Whether you’re running a small Minikube cluster or large-scale production environments, New Relic’s free tier offers powerful tools to monitor and manage your Kubernetes deployments.</p><blockquote>That’s it for now! Thank you for reading! If you found this post helpful, give it a 👏, and don’t forget to follow me here on Medium. Let’s stay connected on LinkedIn too! <a href="https://www.linkedin.com/in/christina-cloud/">LinkedIn: Christina Chen</a></blockquote><p>See you in the next post! 🚀</p><p><strong>References:</strong></p><p>• <a href="https://docs.newrelic.com/docs/kubernetes-pixie/kubernetes-integration/get-started/kubernetes-components/">New Relic Kubernetes Integration</a></p><p>• <a href="https://minikube.sigs.k8s.io/docs/tutorials/multi_node/">Minikube Multi-Node Tutorial</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d94e3d87e24b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[“Security Token is Invalid” Error Troubleshooting]]></title>
            <link>https://medium.com/@christinacc/security-token-is-invalid-error-troubleshooting-2418277e1ab2?source=rss-e773d7d7872e------2</link>
            <guid isPermaLink="false">https://medium.com/p/2418277e1ab2</guid>
            <category><![CDATA[api]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[awscurl]]></category>
            <category><![CDATA[sigv4]]></category>
            <category><![CDATA[security-token]]></category>
            <dc:creator><![CDATA[Christina]]></dc:creator>
            <pubDate>Sun, 18 Aug 2024 11:05:19 GMT</pubDate>
            <atom:updated>2024-08-18T11:32:29.988Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/510/0*efmTj2KBcqG258gC.png" /></figure><p>So, I recently ran into this “Security Token is invalid” error, even though I was logged into my AWS account via SSO just fine. Everything seemed to be working — I could run aws cli commands without any issues. But then I tried to hit the Prometheus query endpoint with this command:</p><pre>awscurl -X POST - region ap-southeast-2 - service aps &quot;${AMP_QUERY_ENDPOINT}?query=up&quot;</pre><p>And bam — error time:</p><pre>{&quot;message&quot;:&quot;The security token included in the request is invalid.&quot;}</pre><p>I did some research and found the answer:</p><blockquote>awscurl command is we are directly making a request to the AMP endpoint. Which means that we have to <a href="https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html">sign your request</a> with AWS credentials from the profile.</blockquote><p><strong>So, what is awscurl?</strong></p><ul><li>awscurl is a cool tool that works like curl, but it adds the AWS Signature Version 4 (SigV4) signing functionality to your requests.</li><li>When you’re making direct API calls to AWS services, you need to authenticate those requests to prove you have permission to do whatever you’re trying to do. That’s where SigV4 comes in.</li></ul><p><strong>What Exactly is SigV4?</strong></p><ul><li>AWS Signature Version 4 (SigV4) is a signing process that AWS uses to authenticate API requests.</li></ul><p><strong>How does SigV4 work in a nutshell?</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*7MqXuFR3nIs_2629.jpeg" /></figure><p>1. <strong>Create a Canonical Request</strong>: The request includes HTTP method, URI, query parameters, headers, and the payload (if any). This is the base of what will be signed.</p><p>2. <strong>Create a String to Sign</strong>: : Take the canonical request and hash it with some extra info like the date, region, and service.</p><p>3. <strong>Calculate the Signature</strong>: Using your AWS secret access key, you calculate a signature based on the string to sign.</p><p>4. <strong>Add the Signature to the Request</strong>: This signature is included in the Authorization header of your request, along with your access key ID and some other necessary info.</p><p>In above query, what does it mean?</p><pre>awscurl -X POST --region ap-southeast-2 --service aps &quot;${AMP_QUERY_ENDPOINT}?query=up&quot;</pre><p>• <strong>-X POST</strong>: Specifies the HTTP method (POST).</p><p>• <strong>— region ap-southeast-2</strong>: Specifies the AWS region you’re working in.</p><p>• <strong>— service aps</strong>: Specifies the AWS service (APS, which is Amazon Managed Prometheus in this case).</p><p>• <strong>${AMP_QUERY_ENDPOINT}?query=up</strong>: The actual endpoint URL with query parameters.</p><p><strong>awscurl will:</strong></p><p>1. <strong>Sign the request</strong> using your AWS credentials (access key, secret access key, and session token if necessary).</p><p>2. <strong>Send the signed request</strong> to the specified AWS service.</p><h4><strong>Getting the AWS Credentials</strong></h4><p>So, how do you get the credentials you need? Well, when you use aws sso login — profile &lt;profile-name&gt;, your auth token gets cached automatically in ~/.aws/sso/cache. This cache file holds all the secrets, session tokens, and other goodies.</p><ul><li>Here’s an example:</li></ul><pre>❯ aws sso login --profile &lt;profile-name&gt;<br>❯ cd ~/.aws/sso/cache<br>❯ ls<br>521fede2240cd1e9fbf3d8f5314491dbba3e018e.json b4060d3f7bf608cf7958c607cb5a0f900b9ff3c1.json</pre><p>There are two files, the first file contains all your login data, and the second one holds your credentials for each session.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GBTm_QO7Og8Wa6ggy7AiEw.png" /></figure><p><strong>Retrieve AWS Credentials</strong></p><ol><li>Export these credentials with below command:</li></ol><pre>aws configure export-credentials --profile &lt;profile-name&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nam01kV5Q3eoLmBcGRaDqQ.png" /></figure><p>2. Retrieve AWS Credentials as environment variable and rerun the query:</p><pre>eval &quot;$(aws configure export-credentials --profile &lt;profile-name&gt; --format env)&quot;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YwzDKOqfZ0l35incRu7mhA.png" /></figure><p>Now, with the right credentials in hand, I was able to successfully hit the Prometheus endpoint and get all my metrics.</p><h4>AWS CLI vs awscurl</h4><p>This brings up a key question: how does AWS CLI sign requests?</p><p>Here’s the answer from AWS documentation:</p><p>When you use the AWS CLI or SDKs to send API requests to AWS, the tools automatically handle the request signing using the access keys you provide. This means you don’t need to manually sign your requests — it’s all taken care of for you.</p><p><strong>Wrapping It Up</strong></p><p>That’s it for now! Hopefully, this helps anyone who runs into the same issue. If you found this useful, give it a 👏, and don’t forget to follow me here on Medium. Let’s stay connected on LinkedIn too!</p><p><a href="https://www.linkedin.com/in/christina-cloud/">LinkedIn: Christina Chen</a></p><p>See you in the next post! 🚀</p><p><strong>Reference Links:</strong></p><ul><li><a href="https://stackoverflow.com/questions/72483332/submitting-a-curl-command-from-an-ec2-instance-does-not-send-credentials-of-the">https://stackoverflow.com/questions/72483332/submitting-a-curl-command-from-an-ec2-instance-does-not-send-credentials-of-the</a>,</li><li><a href="https://docs.aws.amazon.com/prometheus/latest/userguide/AMP-compatible-APIs.html">https://docs.aws.amazon.com/prometheus/latest/userguide/AMP-compatible-APIs.html</a></li><li><a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_aws-signing.html">https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_aws-signing.html</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2418277e1ab2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AWS File transfer Methods]]></title>
            <link>https://medium.com/@christinacc/file-transfer-via-aws-sftp-5f281d030a3b?source=rss-e773d7d7872e------2</link>
            <guid isPermaLink="false">https://medium.com/p/5f281d030a3b</guid>
            <category><![CDATA[sftp]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[data-sync]]></category>
            <category><![CDATA[s3]]></category>
            <category><![CDATA[file-transfer]]></category>
            <dc:creator><![CDATA[Christina]]></dc:creator>
            <pubDate>Tue, 13 Aug 2024 13:56:53 GMT</pubDate>
            <atom:updated>2024-08-18T09:48:58.051Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/475/1*YOYx4NCMJVyG0w6G0B8LsQ.png" /></figure><p><strong>Introduction</strong></p><p>Transferring files securely and efficiently is a crucial requirement for many businesses. AWS provides multiple services to facilitate secure file transfer, including AWS Transfer Family (commonly referred to as AWS SFTP), AWS DataSync, and aws s3 sync. Each of these services has its unique strengths and use cases, making it essential to understand their differences and when to use each one.</p><p>In this blog, we’ll explore these file transfer methods, delve into their differences, and provide use cases to help you choose the right tool for your needs. Additionally, we’ll provide sample commands and code snippets for each method.</p><p><strong>AWS Transfer Family (AWS SFTP)</strong></p><p>AWS Transfer Family provides fully managed support for Secure File Transfer Protocol (SFTP), enabling you to securely transfer files directly into and out of Amazon S3. This service is ideal for organizations that need to transfer files using standard SFTP without worrying about managing the underlying infrastructure.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*5OeGHJRON-rpIs-1.png" /></figure><p><strong>Setting Up AWS SFTP</strong></p><ol><li>Create SFTP server</li></ol><ul><li>Start with public accessible type.</li><li>Protocols: select ‘SFTP’</li><li>Identity Provider type: choose ‘Service managed’, this means we store user identities and key in AWS transfer family. For other types, please check out below sftp links</li><li>Endpoint type: ‘Public accessible’</li><li>Domain: choose “S3”</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yRJEUWjgYOrvGh7JNo2SGw.png" /></figure><p>2. Create a User:</p><pre># create sftp user role &#39;sftp-user-role&#39; first<br># enable trust relationship with below policy<br># create ssh key pair with below command<br>ssh-keygen<br># past public key to public key section below<br></pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*i0uQePNgElBKfgGZkt-Avg.png" /></figure><ul><li>The user role also need to have trust entity as below:</li></ul><pre>{<br>    &quot;Version&quot;: &quot;2012-10-17&quot;,<br>    &quot;Statement&quot;: [<br>        {<br>            &quot;Effect&quot;: &quot;Allow&quot;,<br>            &quot;Principal&quot;: {<br>                &quot;Service&quot;: &quot;transfer.amazonaws.com&quot;<br>            },<br>            &quot;Action&quot;: &quot;sts:AssumeRole&quot;<br>        }<br>    ]<br>}</pre><p>3. Upload/Download Files Using SFTP</p><ul><li>Local directory: on-prem, or your local machine</li><li>Remote directory: sftp domain (s3, or efs)</li></ul><pre># connect to remote directory<br>sftp -i &lt;private-key-path&gt; sftp-user@sftp.example.com<br>sftp&gt; put /local/path/to/file /remote/path/<br>sftp&gt; get /remote/path/to/file /local/path/<br><br># useful command<br>rm *  # remove all files<br>ls -ld<br>pwd<br><br>mkdir test-folder/.  # only support<br>mkdir -p test-folder/test1/.  # not support<br><br># logout<br>exit</pre><p><strong>AWS DataSync</strong></p><p>AWS DataSync is a fully managed service that simplifies, automates, and accelerates copying large amounts of data between on-premises storage and AWS, as well as between different AWS storage services. It supports a wide range of use cases, including migrating data to the cloud, archiving data, and replicating data for business continuity.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*-zrCNQQpKyAEqA8o.png" /></figure><p><strong>Setting Up AWS DataSync</strong></p><ol><li><strong>Create a DataSync Task:</strong></li></ol><pre>aws datasync create-task --source-location-arn arn:aws:datasync:us-east-1:123456789012:location/loc-01234567890abcdef --destination-location-arn arn:aws:datasync:us-east-1:123456789012:location/loc-0987654321fedcba</pre><p>2. <strong>Start the DataSync Task:</strong></p><pre>aws datasync start-task-execution --task-arn arn:aws:datasync:us-east-1:123456789012:task/task-01234567890abcdef</pre><p><strong>AWS S3 Sync</strong></p><p>aws s3 sync is a command provided by the AWS CLI that synchronizes files between your local system and an S3 bucket or between two S3 buckets. It’s straightforward to use and ideal for simple file synchronization tasks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*PzUZogO_gI9oOjhc.png" /></figure><p><strong>Using aws s3 sync</strong></p><ol><li><strong>Sync Files from Local to S3:</strong></li></ol><pre>aws s3 sync /local/directory s3://your-bucket-name/directory</pre><p>2. <strong>Sync Files from S3 to Local:</strong></p><pre>aws s3 sync s3://your-bucket-name/directory /local/directory</pre><p><strong>Differences Between AWS SFTP, DataSync, and S3 Sync</strong></p><p>1. <strong>AWS SFTP:</strong></p><p>• <strong>Use Case:</strong> Best suited for businesses needing a managed SFTP solution to transfer files securely to and from Amazon S3.</p><p>• <strong>Key Features:</strong> SFTP protocol support, user management, native S3 integration.</p><p>• <strong>Best For:</strong> Organizations with existing SFTP workflows or those that require secure FTP file transfers.</p><p>2. <strong>AWS DataSync:</strong></p><p>• <strong>Use Case:</strong> Ideal for moving large datasets, migrating data, or replicating data between on-premises storage and AWS or between AWS services.</p><p>• <strong>Key Features:</strong> Automated data transfer, monitoring, error handling, and optimized network usage.</p><p>• <strong>Best For:</strong> Automate and accelerate moving large active datasets to AWS.</p><p>3. <strong>AWS S3 Sync:</strong></p><p>• <strong>Use Case:</strong> Simple and quick synchronization of files between local systems and S3 or between S3 buckets.</p><p>• <strong>Key Features:</strong> File synchronization, support for large files, efficient data transfer.</p><ul><li><strong>Best For:</strong> Developers and IT teams needing quick, one-off sync tasks or automated scripts for routine backups.</li></ul><p><strong>Use Case Example: Automating File Transfer with AWS SFTP and DataSync</strong></p><p>The example scenario is that the organization has a hybrid cloud architecture. We receive daily log files from on-premises servers that need to be processed and stored in Amazon S3.</p><p>Existing system uses SFTP for file transfers, but we also need to synchronize large datasets from an on-premises storage system to AWS for backup.</p><p>Here’s how we could automate this workflow:</p><p>1. <strong>Step 1:</strong> Set up AWS SFTP to receive the daily log files.</p><p>2. <strong>Step 2:</strong> Use AWS DataSync to regularly sync large datasets from your on-premises storage to Amazon S3.</p><p>This setup allows us to leverage the strengths of both AWS SFTP for secure file transfers and DataSync for efficient data movement, creating a robust, automated workflow.</p><p><strong>Conclusion</strong></p><p>Understanding the differences and use cases for AWS SFTP, DataSync, and aws s3 sync is crucial for optimizing your data transfer workflows. By choosing the right tool for the job, you can ensure secure, efficient, and reliable file transfers across your organization.</p><p><strong>Reference links:</strong></p><p><a href="https://docs.aws.amazon.com/transfer/latest/userguide/transfer-file.html#transfer-sftp-commands">https://docs.aws.amazon.com/transfer/latest/userguide/transfer-file.html#transfer-sftp-commands</a></p><ul><li><a href="https://docs.aws.amazon.com/transfer/latest/userguide/create-server-sftp.html">Create an SFTP-enabled server</a></li><li><a href="https://aws.amazon.com/datasync/">Data Transfer Service - AWS DataSync - AWS</a></li><li><a href="https://docs.aws.amazon.com/cli/latest/userguide/cli-services-s3-commands.html#using-s3-commands-managing-objects-sync">Use high-level (s3) commands with the AWS CLI</a></li></ul><p><a href="https://docs.aws.amazon.com/datasync/latest/userguide/create-task-how-to.html">https://docs.aws.amazon.com/datasync/latest/userguide/create-task-how-to.html</a></p><p>Thanks for reading! Let’s see you in the next article. Don’t forget to <strong>follow me via medium</strong> and leave a 👏 And Stay connected on <strong>LinkedIn: </strong><a href="https://www.linkedin.com/in/christina-cloud/">https://www.linkedin.com/in/christina-cloud/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5f281d030a3b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AWS Certified Data Engineer Associate — journey]]></title>
            <link>https://medium.com/@christinacc/aws-certified-data-engineer-associate-journey-f771984f7b6f?source=rss-e773d7d7872e------2</link>
            <guid isPermaLink="false">https://medium.com/p/f771984f7b6f</guid>
            <category><![CDATA[aws-data-engineering]]></category>
            <category><![CDATA[aws-data-analytics]]></category>
            <category><![CDATA[aws-certification]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Christina]]></dc:creator>
            <pubDate>Sun, 14 Apr 2024 12:52:44 GMT</pubDate>
            <atom:updated>2024-04-17T22:37:24.841Z</atom:updated>
            <content:encoded><![CDATA[<h3>AWS Certified Data Engineer Associate — journey</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/804/1*-aR26FNo9UL86wPJjG7ONg.png" /></figure><p>Today I passed the AWS Certified Data Engineer Associate exam. It’s been a challenging but fulfilling journey, and I’d like to share my experience and the awesome resources I used along the way.</p><p><strong>Exam Overview</strong></p><ul><li><strong>Duration:</strong> 130 minutes</li><li><strong>Format:</strong> 65 questions</li><li><strong>Cost:</strong> 150 USD</li><li><strong>Pass score</strong>: 720</li></ul><p><strong>Exam Domains:</strong></p><ul><li>Data Ingestion and Transformation (34%)</li><li>Data Store Management (26%)</li><li>Data Operations and Support (22%)</li><li>Data Security and Governance (18%)</li></ul><h4><strong>Resources That Made the Difference</strong></h4><ol><li><strong>YouTube Videos:</strong></li></ol><p>Since I was new to AWS Glue and data services, I turned to YouTube for guidance. It was a great way to visualize workflows with step-by-step guidance and understand data pipeline orchestration. If you’re also a beginner in this area, I highly recommend these two channels:</p><ul><li>Jay’s channel: <a href="https://www.youtube.com/@jayzern">https://www.youtube.com/@jayzern</a></li><li>John’s channel: <a href="https://www.youtube.com/@JohnnyChivers">https://www.youtube.com/@JohnnyChivers</a></li><li>EMR Tutorial: <a href="https://www.youtube.com/watch?v=8bOgOvz6Tcg">https://www.youtube.com/watch?v=8bOgOvz6Tcg</a></li><li>Glue Tutorial: <a href="https://www.youtube.com/watch?v=dQnRP6X8QAU">https://www.youtube.com/watch?v=dQnRP6X8QAU</a></li></ul><p><strong>2. AWS Skill Builder Courses:</strong></p><p>Below courses are from AWS skill builder, and they are very helpful to build a strong theoretical foundation</p><ul><li>Data Analytics Fundamentals (Part 1 &amp; 2): <a href="https://explore.skillbuilder.aws/">https://explore.skillbuilder.aws/</a></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Wuo4vHz5SuwFN4azR-pIDw.png" /></figure><ul><li>Exam Prep Standard Course: AWS Certified Data Engineer — Associate (DEA-C01): <a href="https://explore.skillbuilder.aws/learn/course/18546/exam-prep-standard-course-aws-certified-data-engineer-associate-dea-c01">https://explore.skillbuilder.aws/learn/course/18546/exam-prep-standard-course-aws-certified-data-engineer-associate-dea-c01</a></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/886/1*KsPprAW6QIx3VOLljaiFAA.png" /></figure><p><strong>3. Cloud Academy:</strong></p><p>This one is my favourite resource due to its comprehensive, step-by-step labs. These labs allowed me to practice without the added pressure of writing complex SQL code. I highly recommend the following course:</p><ul><li>AWS Certified Data Engineer — Associate (DEA-C01) Certification Preparation for AWS: <a href="https://cloudacademy.com/learning-paths/aws-certified-data-engineer-associate-dea-c01-certification-preparation-for-aws-1-12529/">https://cloudacademy.com/learning-paths/aws-certified-data-engineer-associate-dea-c01-certification-preparation-for-aws-1-12529/</a></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*m8T0X9xroS93Yz0CxP9xuA.png" /></figure><p><strong>4. Tutorials Dojo:</strong></p><p>Tutorials Dojo has been incredibly helpful throughout my AWS certifications. Their detailed explanations and relevant links made exam prep much easier.</p><ul><li>DEA-C01 practice exam: <a href="https://portal.tutorialsdojo.com/courses/aws-certified-data-engineer-associate-practice-exam-dea-c01/">https://portal.tutorialsdojo.com/courses/aws-certified-data-engineer-associate-practice-exam-dea-c01/</a></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nxRCoeBDCQuRKvXF35vvYA.png" /></figure><h3>My learning journey</h3><p>Getting started with the DEA exam back in March was tough as I didn’t have much data engineering background. But those resources made all the difference!</p><ol><li><strong>Understand Key Concepts of 5Vs</strong></li></ol><p><strong>Volume:</strong> amount of data.</p><ul><li>S3 for massive object storage</li><li>Kinesis for huge streaming data volumes.</li></ul><p><strong>Variety:</strong> Different data types</p><ul><li>Glue handles diverse formats (structured, semi-structured, etc.).</li><li>Athena queries data right in S3.</li><li>Consider Redshift Spectrum, Redshift Serverless, and Redshift Data Sharing.</li><li>Kinesis firehose can transform data in-flight by invoking lambda function</li></ul><p><strong>Velocity:</strong> How fast data is generated and moves.</p><ul><li>Kinesis handles real-time, high-speed data ingestion.</li><li>Aurora zero-ETL Integration with Amazon Redshift</li><li>Redshift ingestion streaming feature</li></ul><p><strong>Veracity:</strong> Data quality, accuracy, and integrity.</p><ul><li>Glue shines for data quality checks</li><li>EMR for cleaning and transformation</li><li>DataBrew for visual data preparation</li><li>DataZone for secure data governance</li></ul><p><strong>Value:</strong> The value you get from the data.</p><ul><li>Redshift materialized views &amp; auto-refreshing for smooth analytics</li><li>QuickSight for compelling dashboards</li></ul><p>2. <strong>Focus on Core Services</strong></p><p>Master the fundamentals of S3, Kinesis family, DynamoDB, EMR, Redshift, Glue, and Athena. These services are central to the exam, especially Glue and Redshift. Create own cheatsheet — I have Glue notes like below, and for each service, have a picture in your mind what looks like in AWS console or what’s the architecture is:</p><ul><li>Glue DataBrew: provides an excellent platform for visual data preparation, focusing on cleaning and normalization</li><li>Glue Data Catalog: metadata management, data discovery for cataloguing tasks, central metadata store.</li><li>Glue Studio — Provides a graphical interface for testing and development purpose without manaing underlying infrastructure.</li><li>Glue Data Quality: data validation and quality checks, data format validation and detection of typographical errors by using rules.</li><li>Glue sensitive data detection: Redact detected PII</li><li>Glue PySpark: can filter and process data based on specified criteria, this approach is more suited for straightforward data transformations and filtering tasks</li><li>Glue Flex: optimize costs on non-urgent or non-time sensitive data integration workloads.</li><li>Glue FindMatches ML transform: using a labeling file to guide matching. Use the labeled data to iteratively improve the transform’s ability to identify and group similar patient records.</li></ul><p>3. <strong>Integration is the key</strong></p><p>Relate the 5Vs across the entire data process workflow, including ingestion, transformation, orchestration, and utilization for analytics or ML model training, proved instrumental in my journey.</p><p><strong>4. Exam Key words</strong></p><p>Pay attention to keywords in practice exams and the real thing. Words like “real-time,” “streaming,” or “governance” are clues for narrowing down the right AWS service.</p><p>I hope sharing my journey and the resources that helped me will assist others who are also aiming for this certification.</p><p>Thanks for reading! Let’s see you in the next article. Don’t forget to <strong>follow me via medium</strong> and leave a 👏 And Stay connected on <strong>LinkedIn: </strong><a href="https://www.linkedin.com/in/christina-cloud/">https://www.linkedin.com/in/christina-cloud/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f771984f7b6f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Athena cheatsheet for a beginner]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-snippet">This is a simple Athena cheatsheet for a beginner.</p><p class="medium-feed-link"><a href="https://medium.com/@christinacc/athena-cheatsheet-cfcb6f5f3ccb?source=rss-e773d7d7872e------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@christinacc/athena-cheatsheet-cfcb6f5f3ccb?source=rss-e773d7d7872e------2</link>
            <guid isPermaLink="false">https://medium.com/p/cfcb6f5f3ccb</guid>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[athena]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[apache-flink]]></category>
            <dc:creator><![CDATA[Christina]]></dc:creator>
            <pubDate>Wed, 27 Mar 2024 20:50:41 GMT</pubDate>
            <atom:updated>2024-07-24T11:03:12.085Z</atom:updated>
        </item>
    </channel>
</rss>