<?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 Aitor Porcel Laburu on Medium]]></title>
        <description><![CDATA[Stories by Aitor Porcel Laburu on Medium]]></description>
        <link>https://medium.com/@aitor.porcellaburu?source=rss-65ce41fb7b3d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*X2lxI7SR3EshaKSdaUaI3g.jpeg</url>
            <title>Stories by Aitor Porcel Laburu on Medium</title>
            <link>https://medium.com/@aitor.porcellaburu?source=rss-65ce41fb7b3d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 22:39:40 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@aitor.porcellaburu/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[Large Language Model (LLM) Based Agents — Part 3: Short-Term and Long-Term Memory]]></title>
            <link>https://medium.com/@aitor.porcellaburu/large-language-model-llm-based-agents-part-3-short-term-and-long-term-memory-9235526342e3?source=rss-65ce41fb7b3d------2</link>
            <guid isPermaLink="false">https://medium.com/p/9235526342e3</guid>
            <category><![CDATA[llm-agent]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Aitor Porcel Laburu]]></dc:creator>
            <pubDate>Thu, 28 Nov 2024 17:15:05 GMT</pubDate>
            <atom:updated>2024-11-28T17:21:33.515Z</atom:updated>
            <content:encoded><![CDATA[<h3>Large Language Model (LLM) Based Agents — Part 3: Short-Term and Long-Term Memory</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/968/1*B_6mDN_Ev21IG_5CbzRmUA.png" /><figcaption>Representation of the different types of memory</figcaption></figure><h3>Introduction</h3><p>In this third part of our series of posts about LLM agents, we’ll discuss another fundamental aspect of their evolution: their ability to manage memory. To better understand this topic, we’ll separate memory into two key types: short-term and long-term memory.</p><p>If you’d like to visit the other editions of this post series, you can find them below:</p><ul><li><a href="https://medium.com/@aitor.porcellaburu/llm-based-agents-part-1-fd58d97a7b29">LLM-based Agents — Part 1 — What is a LLM Agent</a></li><li><a href="https://medium.com/@aitor.porcellaburu/large-language-model-llm-based-agents-part-2-the-react-approach-5bfd2f28e488">Large Language Model (LLM) Based Agents — Part 2 — The ReAct Approach</a></li></ul><p>If you prefer to read this post in Spanish, you can visit the version I wrote on my website about construction and data science <a href="https://miobra.com.ar/blog/agentes-llm-parte-3">here</a>.</p><h3>Short-Term Memory: The Model’s Context</h3><p>We can understand short-term memory in an LLM agent as the model’s context window. This window is the space where all relevant information for the task the agent is currently solving is stored. However, this memory is limited by the maximum length of the context window of the model being used, and as time passes and information begins to accumulate, it becomes increasingly difficult for the model to handle all the information effectively.</p><p>This memory is cumulative and temporary: new thoughts and actions are added to the context, but there’s no way to modify or delete previously stored information. Additionally, as mentioned before, it’s limited by the maximum length of the model’s context window (although new models like Llama 3.2 already handle context windows of 128k tokens, and models like Gemini 1.5 Pro have an incredible <a href="https://ai.google.dev/gemini-api/docs/long-context">2M token window</a>).</p><p>Another limitation of short-term memory is that it doesn’t persist once the current task ends. For example, an LLM agent might solve a complex problem today, but if it isn’t specifically trained to remember this solution, it will have to start from scratch the next time it encounters this problem. In a way, this behavior is similar to Dory from <a href="https://en.wikipedia.org/wiki/Finding_Nemo">Finding Nemo</a>: while the agent can do something incredible today, it will quickly forget what it achieved.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/332/1*6nkryNQ1cZnkPayGIkU81g.png" /></figure><h3>Long-Term Memory: Reflection and Persistent Learning</h3><p>Long-term memory is a way to overcome the limitations previously described for short-term memory. With this memory, the agent can store important information beyond the immediate context, which is especially useful in tasks that require continuous learning and iterative improvement.</p><p>This memory is similar to how humans write a diary or document our work: we store relevant information to consult and use it in the future. Similarly, an LLM agent can save information about past tasks, decisions made, or problems encountered and use this data in future interactions. For example, an agent that fails a code test can reflect on its error, log the cause, and apply that knowledge the next time it tries to solve a similar task.</p><p>This capacity for reflection and learning from past experiences allows agents to improve with each interaction. Unlike classic reinforcement learning, where the agent receives a numerical reward, these agents can learn using the execution result of code or textual feedback from a user. This represents a new form of learning: instead of having to retrain the model and adjust its weights, the agent updates its knowledge using language, thus modifying the agent’s future behavior.</p><p>Long-term memory can have a significant impact on the development of more complex and autonomous agents. One example of this is the <a href="https://voyager.minedojo.org/">Voyager</a> project, where an agent learns skills within the Minecraft environment, such as building a sword. This skill is then stored in its long-term memory, allowing it to reuse it when necessary, without having to learn it from scratch each time.</p><p>Another example is the use of generative agents that simulate the lives of humans in a small town. These agents maintain a detailed record of all important events in their lives (a kind of intimate diary), and use this record to make future decisions. This form of episodic memory allows them to behave consistently and learn from their interactions, which is crucial for simulating realistic human behaviors.</p><p>Finally, it’s interesting to think about long-term memory and the language model’s own structure as two complementary forms of knowledge storage. LLM agents can learn and improve in two ways: by adjusting their internal parameters (through model fine-tuning) or by recording important information in a long-term memory that can be retrieved in the future. This combination allows for a more powerful and flexible approach to continuous learning, where both the model’s weights and memory collaborate to optimize the agent’s behavior.</p><h3>Conclusions</h3><p>In this article, we discussed the two types of memory in agents: short-term and long-term memory, and how the latter can be used for the agent to learn dynamically by recording learnings, without the need to retrain the model by adjusting its weights.</p><p>In the next edition, we’ll talk about the CoALA framework, a very interesting approach that develops the concept of “cognitive agents”, which would be a more evolved version of LLM agents.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9235526342e3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Large Language Model (LLM) Based Agents — Part 2 — The ReAct Approach]]></title>
            <link>https://medium.com/@aitor.porcellaburu/large-language-model-llm-based-agents-part-2-the-react-approach-5bfd2f28e488?source=rss-65ce41fb7b3d------2</link>
            <guid isPermaLink="false">https://medium.com/p/5bfd2f28e488</guid>
            <category><![CDATA[llm-agent]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[react]]></category>
            <dc:creator><![CDATA[Aitor Porcel Laburu]]></dc:creator>
            <pubDate>Tue, 19 Nov 2024 07:57:43 GMT</pubDate>
            <atom:updated>2024-11-19T07:57:43.974Z</atom:updated>
            <content:encoded><![CDATA[<h3>Large Language Model (LLM) Based Agents — Part 2 — The ReAct Approach</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/968/1*-e6gWlfL6C8OBGEYkuF56g.png" /><figcaption>Representation of LLM agents blending reasoning, action, and collaboration in a futuristic, high-tech setting.</figcaption></figure><h3>Introduction</h3><p>In this second part of our series on Large Language Model (LLM) based agents, we’ll talk about the evolution of these agents and explore the ReAct approach, a new paradigm that combines reasoning and action. This approach expands the possibilities of agents by tackling complex tasks in a more human-like and adaptable manner.</p><p><em>If you missed the first part, where we explained what LLM agents are and analyzed different paradigms, </em><a href="https://medium.com/@aitor.porcellaburu/llm-based-agents-part-1-fd58d97a7b29"><em>we invite you to check it out at this link</em></a><em>.</em></p><p>If you prefer to read this post in Spanish, you can visit the version I wrote on my website about construction and data science <a href="https://miobra.com.ar/blog/agentes-llm-parte-2">here</a>.</p><h3>The Evolution of Reasoning in LLM Agents</h3><p>The field of LLM agents reached a turning point in 2020 with the release of GPT-3, which demonstrated unprecedented capabilities in generating coherent text at scale. Initially, applications fell into two distinct categories:</p><ul><li><strong>Reasoning Tasks:</strong> Solving complex problems, answering questions, and performing logical analysis.</li><li><strong>Action Tasks:</strong> Interacting in specific environments, such as games or robotic control.</li></ul><p>The real breakthrough came when these approaches began to merge, giving rise to integrated reasoning agents. These agents don’t just process information or execute actions — they develop a complete cognitive process before acting, similar to human thinking.</p><h4>Overcoming Traditional Limitations</h4><p>Early language models faced challenges with seemingly simple tasks, like performing mathematical calculations or handling outdated knowledge. Various solutions were proposed to overcome these limitations, such as:</p><p><strong>Chain of Thought Reasoning</strong></p><ul><li>Enables breaking down complex problems into manageable logical steps</li><li>Improves accuracy in tasks requiring multiple stages of reasoning</li></ul><p><strong>Integration of External Tools</strong></p><ul><li>Augments the model’s capabilities with specialized programs that it can use to solve complex tasks</li><li>Example: Using calculators for precise mathematical operations</li></ul><p><strong>Retrieval-Augmented Generation (RAG)</strong></p><ul><li>Accesses up-to-date information from external sources</li><li>Significantly reduces model “hallucinations” by explicitly requiring responses based only on provided information</li><li>Improves response quality through enriched context</li></ul><p>The incorporation of these solutions enabled models to improve their performance across various areas, and when combined with the ReAct approach described below, they pave the way for highly powerful agents.</p><h3>Towards a Unified Approach: ReAct</h3><p>The emergence of the ReAct approach marks a turning point in LLM agent development. This revolutionary paradigm overcomes a fundamental limitation: the artificial separation between reasoning and action. Instead of treating these capabilities as independent processes, ReAct integrates them into a dynamic and continuous cycle.</p><p>The mechanics are elegant in their simplicity: at each step of the process, the agent combines reflective thinking with concrete action. Imagine a virtual assistant investigating a complex historical question:</p><ol><li><em>Thought</em>: “The question involves events across multiple periods. I need to verify exact dates.”</li><li><em>Action</em>: Performs a specific search about the chronology.</li><li><em>Thought</em>: “These events are connected in an unexpected way. I should investigate this connection further.”</li><li><em>Action</em>: Consults additional sources about the relationship between events.</li></ol><p>This strategy is particularly valuable in open environments, where information isn’t always readily available and actions need to be adapted based on context. ReAct enables agents to explore, receive feedback, and adjust their reasoning and actions iteratively, approaching the way humans solve problems: we observe, reflect, act, and adjust our approach based on results.</p><p>A notable aspect of this approach is its versatility: it’s not limited to answering questions but can be applied to any task that can be transformed into text. For instance, in a video game, a model could describe on-screen scenes through text, analyze the situation using logical reasoning, and generate necessary actions to interact within the game environment.</p><p>The possibilities of this paradigm are immense. The key lies in converting observations into structured text, processing it with a language model, and translating the resulting decisions into precise actions. This cycle opens new opportunities in fields such as applied artificial intelligence, robotics, and interactive environments.</p><p>If you’d like to learn more about ReAct agents, you can explore <a href="https://langchain-ai.github.io/langgraph/concepts/agentic_concepts/">Langgraph</a>, which offers an implementation of this type of agent or you could read the <a href="https://arxiv.org/pdf/2210.03629">ReAct paper</a>.</p><h3>Conclusions</h3><p>In this article, we described several important points in the evolution of LLM agents, highlighting strategies such as Chain of Thought reasoning, the use of external tools, and retrieval-augmented generation, which helped mitigate some of the agents’ limitations.</p><p>We also explored the ReAct approach, a methodology that combines reasoning and action in an iterative cycle, allowing agents to tackle complex problems with greater flexibility and adaptability.</p><p>This approach not only optimizes problem-solving but also opens new possibilities in applications like video games, interaction in open environments, and scientific exploration. Converting observations into text and using language models to reflect and act represents a significant advancement in the design of intelligent agents.</p><p>In the next article, we’ll discuss another crucial component of LLM agents: memory, both short and long-term, and how this capability makes LLM agents even more powerful.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5bfd2f28e488" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[LLM-based Agents — Part 1]]></title>
            <link>https://medium.com/@aitor.porcellaburu/llm-based-agents-part-1-fd58d97a7b29?source=rss-65ce41fb7b3d------2</link>
            <guid isPermaLink="false">https://medium.com/p/fd58d97a7b29</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[llm-agent]]></category>
            <category><![CDATA[large-language-models]]></category>
            <dc:creator><![CDATA[Aitor Porcel Laburu]]></dc:creator>
            <pubDate>Thu, 14 Nov 2024 07:56:22 GMT</pubDate>
            <atom:updated>2024-11-19T11:53:03.353Z</atom:updated>
            <content:encoded><![CDATA[<h3>LLM-based Agents — Part 1</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/968/1*3uHBxZZJHeCP1EjVOVHprA.png" /><figcaption>Representation of an LLM Agent</figcaption></figure><p>There’s been a lot of talk lately about LLM-based agents, but what exactly are they? What’s the difference between an LLM and an Agent? What is the ReAct paradigm? What are the minimum elements a system needs to be considered an agent? What is memory? What’s the difference between short-term and long-term memory?</p><p>In the following posts, I’ll try to develop these concepts. In this first part, we’ll discuss what an LLM agent is, the different approaches to agents, and why LLM agents represent a major breakthrough.</p><p>If you prefer to read this post in Spanish, you can visit the version I wrote on my website about construction and data science <a href="https://miobra.com.ar/blog/agentes-llm-parte-1">here</a>.</p><p>You can continue reading about LLM agents here:</p><ul><li><a href="https://medium.com/@aitor.porcellaburu/large-language-model-llm-based-agents-part-2-the-react-approach-5bfd2f28e488">Large Language Model (LLM) Based Agents — Part 2 — The ReAct Approach | by Aitor Porcel Laburu | Nov, 2024 | Medium</a></li></ul><h3>What is an LLM Agent?</h3><p>To understand what an LLM agent is, we can start by analyzing its two key components: “agent” and “LLM.”</p><p>An agent could be defined as an intelligent system that interacts with an environment. This environment could be physical (as in the case of robots) or digital, like video game characters or chatbots. These agents act based on the information they receive and make decisions to fulfill their objectives. It’s important to note that the definition of “intelligent” has changed over time: what was once considered advanced, like a chatbot with simple rules, seems quite unimpressive when compared to current models like GPT-4 and Claude 3.5 Sonnet.</p><h3>History and Paradigms of Agents</h3><p>Before diving deeper into LLM agents, let’s do a quick review of the historical evolution of agents and how the paradigm changed at each stage. In this evolution, we can identify 3 main stages: symbolic AI, deep and reinforcement learning, and LLM agents.</p><ul><li><strong>Symbolic Agents</strong>: Agents based on this approach relied on manually programmed rules to interact with the environment. They were capable of handling specific problems through the use of symbolic logic, which allowed for the design of agents that could appear very intelligent in highly controlled contexts. The most representative example from this era is <a href="https://es.wikipedia.org/wiki/ELIZA">ELIZA</a>. ELIZA was one of the first artificial intelligence programs developed in the 1960s, simulating human conversation following simple rules, imitating a therapist through responses based on predefined patterns.</li><li><strong>Deep Learning and Reinforcement Learning (RL) Based Agents</strong>: After a period known as the “AI winter,” where progress was scarce, the deep learning revolution arrived. This paradigm proposed the use of deep neural networks to process enormous amounts of data. This progress was also accompanied by the use of reinforcement learning, which allowed training agents to solve complex tasks, such as playing Atari games or defeating humans at Go.</li><li><strong>LLM Agents:</strong> With the arrival of powerful language models like GPT-3 (and later GPT-4, Claude 3.5 Sonnet, etc.), the concept of LLM agents began to develop. These are agents capable of reasoning and acting using language models trained on massive amounts of data. These agents not only process text but can also interact with their environment using language as a form of reasoning and action.</li></ul><h3>Differences Between Agent Paradigms</h3><h4><strong>Symbolic Agents:</strong></h4><ul><li>These agents use programmed rules to convert observations into actions, making them highly context-dependent and lacking generative capability as they need specific rules for each task.</li><li>To act, they first transform observations into a symbolic state and then apply rules to derive an action.</li></ul><h4><strong>Reinforcement Learning Agents:</strong></h4><ul><li>These agents use neural networks to map observations to actions based on reward feedback. Although they are better at generalizing than symbolic agents, they require significant time and power to train, and are usually restricted to specific tasks they were trained for.</li><li>To act, they map observations using neural networks to create embeddings (vectors or matrices) which they then use to determine actions to take.</li></ul><h4><strong>LLM Agents:</strong></h4><ul><li>Unlike the previous two types of agents, these use language as an intermediate representation. This allows them to reason about context and problems in a much more natural and human-like way, thus achieving greater flexibility and adaptability in solving complex tasks.</li></ul><p>The symbolic and RL agent paradigms have limitations due to their specific nature:</p><ul><li>Symbolic agents require a great design effort to define all necessary rules, making them inflexible and impractical in dynamic environments.</li><li>RL agents need an enormous amount of training, and although they can be effective, they tend to be limited to very specific tasks. Additionally, the lack of knowledge transfer from one domain to another is often a significant problem.</li></ul><p>In this sense, LLM agents stand out for their ability to leverage all the prior knowledge contained in language models, making it easier to create agents with less effort and more capable of generalizing. These models already have incorporated an enormous amount of real-world knowledge due to the large body of text they were trained on.</p><p>Moreover, LLM agents’ ability to reason about context and act flexibly allows them to solve complex tasks that previous paradigms couldn’t efficiently address.</p><h3>Conclusions</h3><p>In this first part of the article, we defined what an LLM, an agent, and an LLM agent are. We also discussed different approaches to designing agents and the advantages that LLM agents present compared to their predecessors.</p><p>In part 2 of this article, we’ll talk about the specific evolution of LLM agents and the ReAct approach, which combines a reasoning stage with an action stage, simulating the way humans solve problems.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fd58d97a7b29" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to pass the SnowPro Core Certification]]></title>
            <link>https://medium.com/@aitor.porcellaburu/how-to-pass-the-snowpro-core-certification-86e435f012dd?source=rss-65ce41fb7b3d------2</link>
            <guid isPermaLink="false">https://medium.com/p/86e435f012dd</guid>
            <category><![CDATA[snowpro]]></category>
            <category><![CDATA[snowflake]]></category>
            <category><![CDATA[snowpro-core-exam]]></category>
            <category><![CDATA[data-engineering]]></category>
            <dc:creator><![CDATA[Aitor Porcel Laburu]]></dc:creator>
            <pubDate>Mon, 06 Nov 2023 18:56:07 GMT</pubDate>
            <atom:updated>2023-11-06T18:58:19.794Z</atom:updated>
            <content:encoded><![CDATA[<p>Two weeks ago, I earned my SnowPro Core certification with a score of 862/1000 points. I’ve been there, through the study sessions and the exam jitters, and now I want to share my experience with you. If you’re setting your sights on this certification, my insights might just make your path a little clearer.</p><p>This article is the culmination of a series I’ve put together about the SnowCore Pro. Previously, I’ve covered the Level Up guides in detail. If you think those could be of use, I’ve listed them here for easy access:</p><ul><li><a href="https://medium.com/@aitor.porcellaburu/snowpro-core-exam-prep-answers-to-snowflakes-key-concepts-level-up-guide-524ec30ebbe8">SnowPro Core Exam Prep: Answers to Snowflake’s Key Concepts LEVEL UP Guide | by Aitor Porcel Laburu | Jun, 2023 | Medium</a></li><li><a href="https://medium.com/@aitor.porcellaburu/snowpro-core-exam-prep-answers-to-snowflakes-level-up-snowflake-ecosystem-88b22c27abe3">SnowPro Core Exam Prep: Answers to Snowflake’s LEVEL UP: Snowflake Ecosystem | by Aitor Porcel Laburu | Jun, 2023 | Medium</a></li><li><a href="https://medium.com/@aitor.porcellaburu/snowpro-core-exam-prep-answers-to-snowflakes-level-up-account-options-assurances-aa193f46a3ff">SnowPro Core Exam Prep: Answers to Snowflake’s LEVEL UP: Account Options &amp; Assurances | by Aitor Porcel Laburu | Jul, 2023 | Medium</a></li><li><a href="https://medium.com/@aitor.porcellaburu/snowpro-core-exam-prep-answers-to-snowflakes-level-up-container-hierarchy-details-74ed1b5f45f2">SnowPro Core Exam Prep: — Answers to Snowflake’s LEVEL UP: Container Hierarchy | by Aitor Porcel Laburu | Jul, 2023 | Medium</a></li><li><a href="https://medium.com/p/3ad16426ec29">SnowPro Core Exam Prep — Answers to Snowflake’s LEVEL UP: Query &amp; Results History | by Aitor Porcel Laburu | Aug, 2023 | Medium</a></li><li><a href="https://medium.com/p/2fd7324eb32f">SnowPro Core Exam Prep — Answers to Snowflake’s LEVEL UP: Context | by Aitor Porcel Laburu | Sep, 2023 | Medium</a></li><li><a href="https://medium.com/p/736cc4b13958">Snowpro Core — LEVEL UP: Resource Monitoring | by Aitor Porcel Laburu | Sep, 2023 | Medium</a></li><li><a href="https://medium.com/p/3ecf170ca4c5">SnowPro Core Exam Prep — Answers to Snowflake’s LEVEL UP: Data Loading | by Aitor Porcel Laburu | Nov, 2023 | Medium</a></li><li><a href="https://medium.com/p/cb9c60959b61">SnowPro Core Exam Prep — Answers to Snowflake’s LEVEL UP: Backup and Recovery | by Aitor Porcel Laburu | Nov, 2023 | Medium</a></li></ul><h3>Overview</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fGHu_keD1jejglUS2-ocwA.png" /><figcaption>SnowPro Core Certification</figcaption></figure><p>The SnowPro Core Certification demonstrates an individual’s knowledge to apply specific core expertise implementing and migrating to Snowflake. A SnowPro Core Certified individual has a thorough understanding of the Snowflake’s Platform and has the knowledge necessary to design, develop, and manage secure, scalable Snowflake solutions to drive business objectives.</p><p><a href="https://learn.snowflake.com/en/certifications/snowpro-core/">https://learn.snowflake.com/en/certifications/snowpro-core/</a></p><ul><li>Total Number of Questions: 100</li><li>Question Types: Multiple Select, Multiple Choice</li><li>Time Limit: 115 minutes</li><li>Languages: English and Japanese</li><li>Passing Score: 750 + Scaled Scoring from 0–1000</li></ul><p><strong>Some practical information about the exam:</strong></p><ul><li>The test must be performed with Pearson. It can be either by installing a control software on your computer or by going to an authorized Pearson location (I chose the latter option).</li><li>You can’t access Snowflake documentation or have notes during the exam.</li><li>During the exam you can flag questions and review them at the end.</li></ul><h3>Official study guide</h3><p>It covers the exam content and format, the subject domain breakdowns, the exam outline with objectives and topics, the study and training assets for exam preparation, and some sample questions.</p><p>The guide also provides links to various resources such as Snowflake documentation, videos, blogs, and whitepapers that can help candidates prepare for the exam.</p><p>Enroll in the course to get the most updated version: <a href="https://learn.snowflake.com/courses/course-v1:snowflake+SPSG-CORE+B/about">[COF-C02] SnowPro Core Certification Exam Study Guide</a></p><h3>The source of Truth</h3><p>The ultimate source of truth is the Snowflake documentation. To pass the exam, you need to have read it and know how to navigate through it.</p><p>Snowflake documentation: <a href="https://docs.snowflake.com/">Snowflake Documentation</a></p><h3>How do you get started?</h3><p>I would recommend starting with a general course that serves as an introduction to Snowflake. Even if you have been using it for a while, there are tools you may not have used in your role. I started with this course: <a href="https://www.udemy.com/course/ultimate-snowpro-core-certification-course-exam/">https://www.udemy.com/course/ultimate-snowpro-core-certification-course-exam/</a></p><p>If you want to explore other courses from Udemy, you can access this link: <a href="https://www.udemy.com/topic/snowflake-snowpro-core-certification/">https://www.udemy.com/topic/snowflake-snowpro-core-certification/</a></p><h3>Level up courses</h3><p>They are free courses provided by Snowflake (you can check all of them at the end of the study guide). For example, the following is about key concepts: <a href="https://learn.snowflake.com/courses/course-v1:snowflake+LVLUP-102+A/about">Level Up: Snowflake Key Concepts</a></p><p>In my case, I used them as a review to read the Snowflake documentation in detail.</p><p>At the beginning of this article, I shared the links to the articles with the answers to the Level Up guides.</p><h3>Practice before the exam</h3><p>I suggest tackling plenty of practice tests. For me, I went through numerous practice exams and kept at it until I consistently scored above 85% and could complete them in under thirty minutes (then I got 86% in the certification, but it took me more than an hour to solve it).</p><ol><li>It contains an exam of 100 questions, and it is the course that I recommend starting: <a href="https://www.udemy.com/course/ultimate-snowpro-core-certification-course-exam/">https://www.udemy.com/course/ultimate-snowpro-core-certification-course-exam/</a>.</li><li>600 questions: <a href="https://www.udemy.com/course/snowflake-snowpro-core-certification-practice-exams/">https://www.udemy.com/course/snowflake-snowpro-core-certification-practice-exams/</a></li><li>600 questions: <a href="https://www.udemy.com/course/snowflake-snowpro-core-certification-exam-practice-sets/">https://www.udemy.com/course/snowflake-snowpro-core-certification-exam-practice-sets/</a></li><li>50 questions, but some are outdated: <a href="https://www.whizlabs.com/blog/snowflake-snowpro-core-certification-free-questions/">50 Free Questions — SnowFlake SnowPro Core Certification</a></li><li>300 questions, it is a complete course, but I only used the practice exams: <a href="https://www.udemy.com/course/snowpro-core-certification-preparation/">https://www.udemy.com/course/snowpro-core-certification-preparation/</a></li><li>50 questions: <a href="https://plazagonzalo.medium.com/snowflake-snowpro-core-practice-exam-c1e71abcdab0">https://plazagonzalo.medium.com/snowflake-snowpro-core-practice-exam-c1e71abcdab0</a></li><li>50 questions: <a href="https://plazagonzalo.medium.com/snowflake-snowpro-core-solved-exam-5bb2a86ae682">Snowflake SnowPro Core Complete Exam</a></li></ol><p>Total: <strong>~1750 questions</strong> (actually a bit more because several exams have &gt;100 questions).</p><h3>The Exam Experience</h3><p>As I mentioned earlier, the exam consists of 100 questions. It poses a greater challenge compared to the practice tests. However, thorough practice will likely prepare you to confidently tackle 40–50% of the actual exam questions. With those under your belt, you’ll have the extra time and mental bandwidth to thoughtfully work through the rest.</p><h3>Exam Tips</h3><p>This is very personal, but I share my general strategies that I use to pass exams:</p><h4>Master the Method</h4><p>Repeatedly diving into practice exams does more than just build your confidence. It imprints the core concepts in your mind. For each exam I tackled, I followed up with a review of the correct answers, then double-checked the related Snowflake documentation to cement my understanding.</p><h4>Tackle the Knowns First</h4><p>This is advice I also gave to my university students: first solve everything you know, skip each question you are not sure about (answer using less than 20 seconds per question).</p><h4>Circle Back with Focus</h4><p>After your initial pass, revisit the questions you skipped. Give yourself a full minute for each. If the answer still eludes you, mark it for a final review.</p><h4>The Final Frontier</h4><p>In the last review, focus only on the most difficult questions. You can keep reviewing them until you run out of time or get tired of thinking.</p><p>In my opinion, this triple review allows you to:</p><ul><li>Have a first idea of how much you answer without effort: if you are sure of 50% of the answers in the first review, you only need to get 25% more, relax.</li><li>Relate concepts: Often when thinking about one question you find the answer to another question, or even you can get the answer based on how another question is formulated.</li></ul><h4>Intuition Can Be Your Ally</h4><p>Stuck on a question? Engage your common sense. Ask yourself, “Does this seem logical?” or “If I were engineering Snowflake, what would I do?” This perspective might just guide you to the right answer.</p><h4>Relax</h4><p>Remember, an exam is just that — an exam. It’s not a measure of your worth as a professional or individual. Sometimes, a bit of luck is also in play. If you don’t clear the bar on your first go, there’s always a second shot at it.</p><p>And that’s it, best of luck getting your SnowPro certification. If you have any questions or comments, please feel free to send me a message on <a href="https://www.linkedin.com/in/aitorporcellaburu/">LinkedIn</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=86e435f012dd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SnowPro Core Exam Prep — Answers to Snowflake’s LEVEL UP: Backup and Recovery]]></title>
            <link>https://medium.com/@aitor.porcellaburu/snowpro-core-exam-prep-answers-to-snowflakes-level-up-backup-and-recovery-cb9c60959b61?source=rss-65ce41fb7b3d------2</link>
            <guid isPermaLink="false">https://medium.com/p/cb9c60959b61</guid>
            <category><![CDATA[snowpro]]></category>
            <category><![CDATA[snowflake]]></category>
            <category><![CDATA[snowpro-core-exam]]></category>
            <category><![CDATA[data-engineering]]></category>
            <dc:creator><![CDATA[Aitor Porcel Laburu]]></dc:creator>
            <pubDate>Fri, 03 Nov 2023 07:36:58 GMT</pubDate>
            <atom:updated>2023-11-03T07:36:58.428Z</atom:updated>
            <content:encoded><![CDATA[<h3>SnowPro Core Exam Prep — Answers to Snowflake’s LEVEL UP: Backup and Recovery</h3><p>And here we are, with the ninth and last answer guide of the Level Up guides to prepare for the SnowPro Core certification. This time we will answer the questions to the “<a href="https://learn.snowflake.com/en/courses/uni-lvlup-108/">Level Up: Backup and Recovery — Snowflake</a>” guide.</p><p>If you want to consult the 8 previous editions, you can find them below:</p><ul><li><a href="https://medium.com/@aitor.porcellaburu/snowpro-core-exam-prep-answers-to-snowflakes-key-concepts-level-up-guide-524ec30ebbe8">SnowPro Core Exam Prep: Answers to Snowflake’s Key Concepts LEVEL UP Guide | by Aitor Porcel Laburu | Jun, 2023 | Medium</a></li><li><a href="https://medium.com/@aitor.porcellaburu/snowpro-core-exam-prep-answers-to-snowflakes-level-up-snowflake-ecosystem-88b22c27abe3">SnowPro Core Exam Prep: Answers to Snowflake’s LEVEL UP: Snowflake Ecosystem | by Aitor Porcel Laburu | Jun, 2023 | Medium</a></li><li><a href="https://medium.com/@aitor.porcellaburu/snowpro-core-exam-prep-answers-to-snowflakes-level-up-account-options-assurances-aa193f46a3ff">SnowPro Core Exam Prep: Answers to Snowflake’s LEVEL UP: Account Options &amp; Assurances | by Aitor Porcel Laburu | Jul, 2023 | Medium</a></li><li><a href="https://medium.com/@aitor.porcellaburu/snowpro-core-exam-prep-answers-to-snowflakes-level-up-container-hierarchy-details-74ed1b5f45f2">SnowPro Core Exam Prep: — Answers to Snowflake’s LEVEL UP: Container Hierarchy | by Aitor Porcel Laburu | Jul, 2023 | Medium</a></li><li><a href="https://medium.com/p/3ad16426ec29">SnowPro Core Exam Prep — Answers to Snowflake’s LEVEL UP: Query &amp; Results History | by Aitor Porcel Laburu | Aug, 2023 | Medium</a></li><li><a href="https://medium.com/p/2fd7324eb32f">SnowPro Core Exam Prep — Answers to Snowflake’s LEVEL UP: Context | by Aitor Porcel Laburu | Sep, 2023 | Medium</a></li><li><a href="https://medium.com/p/736cc4b13958">Snowpro Core — LEVEL UP: Resource Monitoring | by Aitor Porcel Laburu | Sep, 2023 | Medium</a></li><li><a href="https://medium.com/p/3ecf170ca4c5">SnowPro Core Exam Prep — Answers to Snowflake’s LEVEL UP: Data Loading | by Aitor Porcel Laburu | Nov, 2023 | Medium</a></li></ul><p>Disclaimer: all images presented below are from the level up course.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*dh2q0HtGwBcFLfQ0K-aDng.png" /><figcaption>Types of failures and how Snowflake mitigates these.</figcaption></figure><h3>1) In what ways does Snowflake protect my data from user errors?</h3><h4><strong>Time Travel</strong></h4><p>Snowflake Time Travel enables accessing historical data (i.e. data that has been changed or deleted) at any point within a defined period. It serves as a powerful tool for performing the following tasks:</p><ul><li>Restoring data-related objects (tables, schemas, and databases) that might have been accidentally or intentionally deleted.</li><li>Duplicating and backing up data from key points in the past.</li><li>Analyzing data usage/manipulation over specified periods of time.</li></ul><p>Using Time Travel, you can perform the following actions within a defined period of time:</p><ul><li>Query data in the past that has since been updated or deleted.</li><li>Create clones of entire tables, schemas, and databases at or before specific points in the past.</li><li>Restore tables, schemas, and databases that have been dropped.</li></ul><p>Once the defined period of time has elapsed, the data is moved into Snowflake Fail-safe and these actions can no longer be performed.</p><p>A key component of Snowflake Time Travel is the data retention period.</p><p>When data in a table is modified, including deletion of data or dropping an object containing data, Snowflake preserves the state of the data before the update. The data retention period specifies the number of days for which this historical data is preserved and, therefore, Time Travel operations (SELECT, CREATE … CLONE, UNDROP) can be performed on the data.</p><p>The standard retention period is 1 day (24 hours) and is automatically enabled for all Snowflake accounts:</p><p><strong>For Snowflake Standard Edition:</strong></p><ul><li>The retention period can be set to 0 (or unset back to the default of 1 day) at the account and object level (i.e. databases, schemas, and tables).</li></ul><p><strong>For Snowflake Enterprise Edition (and higher):</strong></p><ul><li>For transient databases, schemas, and tables, the retention period can be set to 0 (or unset back to the default of 1 day). The same is also true for temporary tables.</li><li>For permanent databases, schemas, and tables, the retention period can be set to any value from 0 up to 90 days.</li></ul><p>A user with the ACCOUNTADMIN role can also set the MIN_DATA_RETENTION_TIME_IN_DAYS at the account level. This parameter setting enforces a minimum data retention period for databases, schemas, and tables. Setting MIN_DATA_RETENTION_TIME_IN_DAYS does not alter or replace the DATA_RETENTION_TIME_IN_DAYS parameter value. It may, however, change the effective data retention period for objects. When MIN_DATA_RETENTION_TIME_IN_DAYS is set at the account level, the data retention period for an object is determined by MAX(DATA_RETENTION_TIME_IN_DAYS, MIN_DATA_RETENTION_TIME_IN_DAYS).</p><p>Source: <a href="https://docs.snowflake.com/en/user-guide/data-time-travel">https://docs.snowflake.com/en/user-guide/data-time-travel</a></p><h4><strong>Fail-safe</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*BWJBIqWtUKVqcXk4pjwt6g.png" /><figcaption>Continuous data protection lifecycle</figcaption></figure><p>Fail-safe provides a (non-configurable) 7-day period during which historical data may be recoverable by Snowflake. This period starts immediately after the Time Travel retention period ends. Note, however, that a long-running Time Travel query will delay moving any data and objects (tables, schemas, and databases) in the account into Fail-safe, until the query completes.</p><p>Source: <a href="https://docs.snowflake.com/en/user-guide/data-failsafe">https://docs.snowflake.com/en/user-guide/data-failsafe</a></p><h4><strong>Zero-copy cloning:</strong></h4><p>Snowflake’s zero-copy cloning feature provides a convenient way to quickly take a “snapshot” of any table, schema, or database and create a derived copy of that object which initially shares the underlying storage. This can be extremely useful for creating instant backups that do not incur any additional costs (until changes are made to the cloned object).</p><p>Source: <a href="https://docs.snowflake.com/en/user-guide/tables-storage-considerations#cloning-tables-schemas-and-databases">https://docs.snowflake.com/en/user-guide/tables-storage-considerations#cloning-tables-schemas-and-databases</a></p><h3>2) Which automatic Snowflake features help to provide business continuity for different types of system failures?</h3><ul><li>Planned failovers: A planned failover is a pre-scheduled event where Snowflake switches from the primary event where Snowflake switches from the primary site to the secondary site in order to perform maintenance or upgrade the system.</li><li>Unplanned failovers: An unplanned failover, on the other hand, is triggered automatically by Snowflake when the primary site becomes unavailable due to a disaster.</li><li>Migration: Migrate your Snowflake account to a new region or cloud platform without any interruption to your business operations. This can be beneficial during mergers and acquisitions for maintaining business continuity or when aligning with a revised cloud strategy.</li><li>Multiple readable secondaries: Replicate your account objects and databases to multiple accounts different regions and cloud platforms to reduce the risk of regional or cloud platform outages.</li></ul><p>Source: <a href="https://learn.snowflake.com/courses/course-v1:snowflake+LVLUP-108+A/about">https://learn.snowflake.com/courses/course-v1:snowflake+LVLUP-108+A/about</a></p><h3>3) What are the differences between Time Travel and Fail-Safe?</h3><p>Time Travel is a feature that allows you to work with historical data and perform various tasks related to data restoration, duplication, backup, and analysis within a defined period. Fail-safe, on the other hand, is a fail-safe mechanism that kicks in after Time Travel and provides a fixed 7-day period for data recovery before the data is potentially permanently deleted.</p><h3>4) How can I use zero-copy cloning to protect data?</h3><p>Snowflake’s zero-copy cloning feature provides a convenient way to quickly take a “snapshot” of any table, schema, or database and create a derived copy of that object which initially shares the underlying storage. This can be extremely useful for creating instant backups that do not incur any additional costs (until changes are made to the cloned object).</p><p>Source: <a href="https://docs.snowflake.com/en/user-guide/tables-storage-considerations#cloning-tables-schemas-and-databases">https://docs.snowflake.com/en/user-guide/tables-storage-considerations#cloning-tables-schemas-and-databases</a></p><h3>5) What are key requirements for database replication-failover-failback?</h3><p>Replication and Failover/Failback</p><p>Replication uses two Snowflake objects, replication group and failover group, to replicate a group of objects with point-in-time consistency from a source account to one or more target accounts. A replication group allows customers to specify what to replicate, where to replicate to, and how often. This means specifying which objects to replicate, to which regions or cloud platforms, at customizable scheduled intervals. A failover group enables the replication and failover of the account objects in a group.</p><p>In the case of failover, account replication enables the failover of your account to a different region or cloud platform. Each replication and failover group has its own replication schedule, allowing you to set the frequency for replication at different intervals for different groups of objects. In the case of failover groups, it also enables failover of groups individually. You can choose to failover all failover groups, or only select failover groups.</p><p>Source: <a href="https://docs.snowflake.com/en/user-guide/replication-intro#replication-and-failover-failback">https://docs.snowflake.com/en/user-guide/replication-intro#replication-and-failover-failback</a></p><p>Replication can be enabled for any existing permanent or transient database. Enabling replication designates the database as a <strong>primary database</strong>. Any number of databases in an account can be designated a primary database. Likewise, a primary database can be replicated to any number of accounts in your organization. This involves creating a secondary database as a replica of a specified primary database in each of the target accounts. These accounts are typically located in other regions, on the same or a different cloud platform, or they can be in the same region as the source account.</p><p>All DML/DDL operations are executed on the primary database. Each read-only, secondary database can be refreshed periodically with a snapshot of the primary database, replicating all data as well as DDL operations on database objects (i.e. schemas, tables, views, etc.).</p><p>Source: <a href="https://docs.snowflake.com/en/user-guide/database-replication-intro#what-is-a-primary-database">https://docs.snowflake.com/en/user-guide/database-replication-intro#what-is-a-primary-database</a></p><p>Current Limitations of Replication:</p><ul><li>The refresh operation fails if an external table exists in a primary database.</li><li>Databases created from shares cannot be replicated.</li><li>The refresh operation fails if a primary database contains an event table.</li></ul><p>Source: <a href="https://docs.snowflake.com/en/user-guide/database-replication-intro#current-limitations-of-replication">https://docs.snowflake.com/en/user-guide/database-replication-intro#current-limitations-of-replication</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cb9c60959b61" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SnowPro Core Exam Prep — Answers to Snowflake’s LEVEL UP: Data Loading]]></title>
            <link>https://medium.com/@aitor.porcellaburu/snowpro-core-exam-prep-answers-to-snowflakes-level-up-data-loading-3ecf170ca4c5?source=rss-65ce41fb7b3d------2</link>
            <guid isPermaLink="false">https://medium.com/p/3ecf170ca4c5</guid>
            <category><![CDATA[snowflake]]></category>
            <category><![CDATA[level-up]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[snowpro-core-exam]]></category>
            <dc:creator><![CDATA[Aitor Porcel Laburu]]></dc:creator>
            <pubDate>Thu, 02 Nov 2023 18:19:10 GMT</pubDate>
            <atom:updated>2023-11-02T18:32:18.935Z</atom:updated>
            <content:encoded><![CDATA[<h3>SnowPro Core Exam Prep — Answers to Snowflake’s LEVEL UP: Data Loading</h3><p>Here we are — the eighth stop on our SnowPro Core certification prep tour. This time, we’ll talk about “<a href="https://medium.com/learn.snowflake.com/en/courses/uni-lvlup-106/">Data Loading</a>”. To get the full picture, visit the earlier chapters here:</p><ul><li><a href="https://medium.com/@aitor.porcellaburu/snowpro-core-exam-prep-answers-to-snowflakes-key-concepts-level-up-guide-524ec30ebbe8">SnowPro Core Exam Prep: Answers to Snowflake’s Key Concepts LEVEL UP Guide | by Aitor Porcel Laburu | Jun, 2023 | Medium</a></li><li><a href="https://medium.com/@aitor.porcellaburu/snowpro-core-exam-prep-answers-to-snowflakes-level-up-snowflake-ecosystem-88b22c27abe3">SnowPro Core Exam Prep: Answers to Snowflake’s LEVEL UP: Snowflake Ecosystem | by Aitor Porcel Laburu | Jun, 2023 | Medium</a></li><li><a href="https://medium.com/@aitor.porcellaburu/snowpro-core-exam-prep-answers-to-snowflakes-level-up-account-options-assurances-aa193f46a3ff">SnowPro Core Exam Prep: Answers to Snowflake’s LEVEL UP: Account Options &amp; Assurances | by Aitor Porcel Laburu | Jul, 2023 | Medium</a></li><li><a href="https://medium.com/@aitor.porcellaburu/snowpro-core-exam-prep-answers-to-snowflakes-level-up-container-hierarchy-details-74ed1b5f45f2">SnowPro Core Exam Prep: — Answers to Snowflake’s LEVEL UP: Container Hierarchy | by Aitor Porcel Laburu | Jul, 2023 | Medium</a></li><li><a href="https://medium.com/p/3ad16426ec29">SnowPro Core Exam Prep — Answers to Snowflake’s LEVEL UP: Query &amp; Results History | by Aitor Porcel Laburu | Aug, 2023 | Medium</a></li><li><a href="https://medium.com/p/2fd7324eb32f">SnowPro Core Exam Prep — Answers to Snowflake’s LEVEL UP: Context | by Aitor Porcel Laburu | Sep, 2023 | Medium</a></li><li><a href="https://medium.com/p/736cc4b13958">Snowpro Core — LEVEL UP: Resource Monitoring | by Aitor Porcel Laburu | Sep, 2023 | Medium</a></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fGHu_keD1jejglUS2-ocwA.png" /></figure><h3>1) How do I load my data into Snowflake?</h3><p>First, one should upload the files to an internal or external stage. One can:</p><h4><strong>Load Data Using the Web Interface</strong></h4><p>You can use Snowsight or Classic Console to load files with structured data (e.g. CSV, TSV) or semi-structured data (e.g. JSON, Avro, ORC, Parquet, or XML).</p><p>Use the web interface to load data from files up to 50MB in size. To load larger files, or large numbers of files, use the Snowflake client, SnowSQL. Refer to Bulk Loading Using COPY.</p><h4><strong>Use SQL to load the data (PUT)</strong></h4><p>Uploads (i.e. stages) data files from a local directory/folder on a client machine to one of the following Snowflake stages:</p><ul><li>Named internal stage.</li><li>Internal stage for a specified table.</li><li>Internal stage for the current user.</li></ul><p>Once files are staged, the data in the files can be loaded into a table using the COPY INTO &lt;table&gt; command.</p><p>Sources: <a href="https://docs.snowflake.com/en/sql-reference/commands-file">https://docs.snowflake.com/en/sql-reference/commands-file</a> &amp; <a href="https://docs.snowflake.com/en/user-guide/data-load-web-ui">https://docs.snowflake.com/en/user-guide/data-load-web-ui</a></p><p>Afterward, you can transfer the information onto a table.</p><h4>Bulk vs Continuous Loading</h4><p>Snowflake provides the following main solutions for data loading. The best solution may depend upon the volume of data to load and the frequency of loading.</p><h4><strong>Bulk Loading Using the COPY Command</strong></h4><p>This option enables loading batches of data from files already available in cloud storage, or copying (i.e. staging) data files from a local machine to an internal (i.e. Snowflake) cloud storage location before loading the data into tables using the COPY command.</p><p><strong>Compute Resources</strong></p><ul><li>Bulk loading relies on user-provided virtual warehouses, which are specified in the COPY statement. Users are required to size the warehouse appropriately to accommodate expected loads.</li></ul><p><strong>Simple Transformations During a Load</strong></p><p>Snowflake supports transforming data while loading it into a table using the COPY command. Options include:</p><ul><li>Column reordering</li><li>Column omission</li><li>Casts</li><li>Truncating text strings that exceed the target column length</li><li>There is no requirement for your data files to have the same number and ordering of columns as your target table.</li></ul><h4><strong>Continuous Loading Using Snowpipe</strong></h4><p>This option is designed to load small volumes of data (i.e. micro-batches) and incrementally make them available for analysis. Snowpipe loads data within minutes after files are added to a stage and submitted for ingestion. This ensures users have the latest results, as soon as the raw data is available.</p><p><strong>Compute Resources</strong></p><ul><li>Snowpipe uses compute resources provided by Snowflake (i.e. a serverless compute model). These Snowflake-provided resources are automatically resized and scaled up or down as required, and are charged and itemized using per-second billing. Data ingestion is charged based upon the actual workloads.</li></ul><p><strong>Simple Transformations During a Load</strong></p><ul><li>The COPY statement in a pipe definition supports the same COPY transformation options as when bulk loading data.</li><li>In addition, data pipelines can leverage Snowpipe to continously load micro-batches of data into staging tables for transformation and optimization using automated tasks and the change data capture (CDC) information in streams.</li></ul><p><strong>Data Pipelines for Complex Transformations</strong></p><ul><li>A data pipeline enables applying complex transformations to loaded data. This workflow generally leverages Snowpipe to load “raw” data into a staging table and then uses a series of table streams and tasks to transform and optimize the new data for analysis.</li></ul><h4><strong>Loading Data from Apache Kafka Topics</strong></h4><p>The Snowflake Connector for Kafka enables users to connect to an Apache Kafka server, read data from one or more topics, and load that data into Snowflake tables.</p><p>Source: <a href="https://docs.snowflake.com/en/user-guide/data-load-overview">https://docs.snowflake.com/en/user-guide/data-load-overview</a></p><h3>2) What types of data storage can Snowflake load from?</h3><h4>External Stages</h4><p>Loading data from any of the following cloud storage services is supported regardless of the cloud platform that hosts your Snowflake account:</p><ul><li>Amazon S3</li><li>Google Cloud Storage</li><li>Microsoft Azure</li></ul><p>A named external stage is a database object created in a schema. This object stores the URL to files in cloud storage, the settings used to access the cloud storage account, and convenience settings such as the options that describe the format of staged files. Create stages using the CREATE STAGE command.</p><h4>Internal Stage</h4><p>Snowflake maintains the following stage types in your account:</p><ul><li>User: A user stage is allocated to each user for storing files. This stage type is designed to store files that are staged and managed by a single user but can be loaded into multiple tables. User stages cannot be altered or dropped.</li><li>Table: A table stage is available for each table created in Snowflake. This stage type is designed to store files that are staged and managed by one or more users but only loaded into a single table. Table stages cannot be altered or dropped.</li><li>Note that a table stage is not a separate database object; rather, it is an implicit stage tied to the table itself. A table stage has no grantable privileges of its own. To stage files to a table stage, list the files, query them on the stage, or drop them, you must be the table owner (have the role with the OWNERSHIP privilege on the table).</li><li>Named: A named internal stage is a database object created in a schema. This stage type can store files that are staged and managed by one or more users and loaded into one or more tables. Because named stages are database objects, the ability to create, modify, use, or drop them can be controlled using security access control privileges. Create stages using the CREATE STAGE command.</li></ul><p>Upload files to any of the internal stage types from your local file system using the PUT command.</p><p>Sources: <a href="https://docs.snowflake.com/en/user-guide/data-load-overview#external-stages">https://docs.snowflake.com/en/user-guide/data-load-overview#external-stages</a> &amp; <a href="https://docs.snowflake.com/en/user-guide/data-load-overview#internal-stages">https://docs.snowflake.com/en/user-guide/data-load-overview#internal-stages</a></p><h3>3) What is a “stage” in Snowflake?</h3><p>Snowflake refers to the location of data files in cloud storage as a stage.</p><p>Source: <a href="https://docs.snowflake.com/en/user-guide/data-load-overview#supported-file-locations">https://docs.snowflake.com/en/user-guide/data-load-overview#supported-file-locations</a></p><h3>4) Why would I choose one loading method over another?</h3><p><strong>Bulk Loading Using the COPY Command:</strong> This option enables loading batches of data from files already available in cloud storage, or copying (i.e. staging) data files from a local machine to an internal (i.e. Snowflake) cloud storage location before loading the data into tables using the COPY command.</p><p><strong>Continuous Loading Using Snowpipe:</strong> This option is designed to load small volumes of data (i.e. micro-batches) and incrementally make them available for analysis. Snowpipe loads data within minutes after files are added to a stage and submitted for ingestion. This ensures users have the latest results, as soon as the raw data is available.</p><p>Source: <a href="https://docs.snowflake.com/en/user-guide/data-load-overview#bulk-vs-continuous-loading">https://docs.snowflake.com/en/user-guide/data-load-overview#bulk-vs-continuous-loading</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*A1OMZdxpc7Ar_1CdrOhAvQ.png" /></figure><p>Source: <a href="https://www.snowflake.com/blog/best-practices-for-data-ingestion">https://www.snowflake.com/blog/best-practices-for-data-ingestion</a></p><h3>5) What are some best practices for data loading?</h3><p>1) Consider auto-ingest Snowpipe for continuous loading.</p><p>2) Consider auto-ingest Snowpipe for initial loading as well. It may be best to use a combination of both COPY and Snowpipe to get your initial data in.</p><p>3) Use file sizes above 10 MB and preferably in the range of 100 MB to 250 MB; however, Snowflake can support any size file. Keeping files below a few GB is better to simplify error handling and avoid wasted work. This is not a hard limit and you can always use our error handling capabilities such as ON_ERROR = CONTINUE.</p><p>4) Keep max field size capped at 16 MB. Ingestion is bound by a Snowflake-wide field size limit of 16 MB.</p><p>5) Keep your data ingestion process simple by utilizing our native features to ingest your data as is, without splitting, merging, or converting files. Snowflake supports ingesting many different data formats and compression methods at any file volume. Features such as schema detection and schema evolution (currently in private preview) can help simplify data loading directly into structured tables.</p><p>6) Average measurements across customers are not likely to predict latency and cost. Measuring for a sample of your data is a much more reliable approach beyond the indicative numbers.</p><p>7) Do check file loading success/failure for Snowpipe using COPY_HISTORY or other options, such as subscribing to Snowpipe error notifications. Also occasionally check SYSTEM$PIPE_STATUS for the health of the Snowpipe.</p><p>8) Do not expect in-order loading with Snowpipe. Files are loaded concurrently and asynchronously in multiple chunks, so reordering is possible. If an order is essential, use event timestamp in data if possible, or use COPY and load sequentially.</p><p>9) Leverage your existing object path partitioning for COPY when possible. Using the most explicit path allows COPY to efficiently list and load your data as quickly as possible. Even though Snowflake can scalably list and load large volumes of data; you can avoid wasted compute and API calls by using path partitioning, especially when you already loaded the previous days, months, and years data which will just be ignored for deduplication.</p><p>10) Use cloud provider event filtering to reduce the amount of notification noise, ingestion latency, and costs from unwanted notifications with filtering on prefix or suffix events before it is sent to Snowpipe. Leverage the native cloud event filtering before using Snowpipe’s more powerful regex pattern filtering.</p><p>Source: <a href="https://www.snowflake.com/blog/best-practices-for-data-ingestion">https://www.snowflake.com/blog/best-practices-for-data-ingestion</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3ecf170ca4c5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Snowpro Core— LEVEL UP: Resource Monitoring]]></title>
            <link>https://medium.com/@aitor.porcellaburu/snowpro-core-level-up-resource-monitoring-736cc4b13958?source=rss-65ce41fb7b3d------2</link>
            <guid isPermaLink="false">https://medium.com/p/736cc4b13958</guid>
            <category><![CDATA[snowflake]]></category>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[snowpro]]></category>
            <dc:creator><![CDATA[Aitor Porcel Laburu]]></dc:creator>
            <pubDate>Thu, 14 Sep 2023 16:25:13 GMT</pubDate>
            <atom:updated>2023-09-14T16:25:13.947Z</atom:updated>
            <content:encoded><![CDATA[<p>You’re now viewing the seventh set of articles dedicated to SnowPro Core certification, which includes responses to the <a href="https://learn.snowflake.com/courses/course-v1:snowflake+LVLUP-107+A/about">‘Level Up: Resource Monitoring’</a> guide. If you wish to explore earlier versions, the links below will take you there:</p><ul><li><a href="https://medium.com/@aitor.porcellaburu/snowpro-core-exam-prep-answers-to-snowflakes-key-concepts-level-up-guide-524ec30ebbe8">SnowPro Core Exam Prep: Answers to Snowflake’s Key Concepts LEVEL UP Guide | by Aitor Porcel Laburu | Jun, 2023 | Medium</a></li><li><a href="https://medium.com/@aitor.porcellaburu/snowpro-core-exam-prep-answers-to-snowflakes-level-up-snowflake-ecosystem-88b22c27abe3">SnowPro Core Exam Prep: Answers to Snowflake’s LEVEL UP: Snowflake Ecosystem | by Aitor Porcel Laburu | Jun, 2023 | Medium</a></li><li><a href="https://medium.com/@aitor.porcellaburu/snowpro-core-exam-prep-answers-to-snowflakes-level-up-account-options-assurances-aa193f46a3ff">SnowPro Core Exam Prep: Answers to Snowflake’s LEVEL UP: Account Options &amp; Assurances | by Aitor Porcel Laburu | Jul, 2023 | Medium</a></li><li><a href="https://medium.com/@aitor.porcellaburu/snowpro-core-exam-prep-answers-to-snowflakes-level-up-container-hierarchy-details-74ed1b5f45f2">SnowPro Core Exam Prep: — Answers to Snowflake’s LEVEL UP: Container Hierarchy | by Aitor Porcel Laburu | Jul, 2023 | Medium</a></li><li><a href="https://medium.com/p/3ad16426ec29">SnowPro Core Exam Prep — Answers to Snowflake’s LEVEL UP: Query &amp; Results History | by Aitor Porcel Laburu | Aug, 2023 | Medium</a></li><li><a href="https://medium.com/p/2fd7324eb32f">SnowPro Core Exam Prep — Answers to Snowflake’s LEVEL UP: Context | by Aitor Porcel Laburu | Sep, 2023 | Medium</a></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fGHu_keD1jejglUS2-ocwA.png" /><figcaption>Snowpro core certification</figcaption></figure><h3>1) What do resource monitors measure?</h3><p>To help control costs and avoid unexpected credit usage caused by running warehouses, Snowflake provides resource monitors. A virtual warehouse consumes Snowflake credits while it runs.</p><p>A resource monitor can be used to monitor credit usage by virtual warehouses and the cloud services needed to support those warehouses. If desired, the warehouse can be suspended when it reaches a credit limit.</p><p>The number of credits consumed depends on the size of the warehouse and how long it runs.</p><p>Limits can be set for a specified interval or date range. When these limits are reached and/or are approaching, the resource monitor can trigger various actions, such as sending alert notifications and/or suspending user-managed warehouses.</p><p>Resource monitors can only be created by account administrators (i.e. users with the ACCOUNTADMIN role); however, account administrators can choose to enable users with other roles to view and modify resource monitors using SQL.</p><p>Source: <a href="https://docs.snowflake.com/en/user-guide/resource-monitors">https://docs.snowflake.com/en/user-guide/resource-monitors</a></p><h3>2) What actions can resource monitors trigger based on usage thresholds?</h3><p>Resource monitors support the following actions:</p><ul><li>Notify &amp; Suspend: Send a notification (to all account administrators with notifications enabled) and suspend all assigned warehouses after all statements being executed by the warehouse(s) have completed.</li><li>Notify &amp; Suspend Immediately: Send a notification (to all account administrators with notifications enabled) and suspend all assigned warehouses immediately, which cancels any statements being executed by the warehouses at the time.</li><li>Notify: Perform no action, but send an alert notification (to all account administrators with notifications enabled).</li></ul><p>Source: <a href="https://docs.snowflake.com/en/user-guide/resource-monitors#actions">https://docs.snowflake.com/en/user-guide/resource-monitors#actions</a></p><h3>3) Who can create resource monitors?</h3><p>By default, resource monitors can only be created by account administrators and, therefore, can only be viewed and maintained by them.</p><p>However, roles that have been granted the following privileges on specific resource monitors can view and modify the resource monitor as needed using SQL:</p><ul><li>MONITOR</li><li>MODIFY</li></ul><p>Note that only account administrators can view and manage resource monitors via the Classic Console.</p><p>Source: <a href="https://docs.snowflake.com/en/user-guide/resource-monitors#access-control-privileges-for-resource-monitors">https://docs.snowflake.com/en/user-guide/resource-monitors#access-control-privileges-for-resource-monitors</a></p><h3>4) What are the scheduling options for resource monitor tracking and actions?</h3><p>The default schedule for a resource monitor specifies that it starts monitoring credit usage immediately and the used credits reset back to 0 at the beginning of each calendar month (i.e. the start of the standard Snowflake billing cycle).</p><p>However, you can optionally customize the schedule for a resource monitor using the following properties:</p><h4>Frequency</h4><p>The interval at which the used credits reset relative to the specified start date.</p><p>Supported values:</p><ul><li>Daily</li><li>Weekly</li><li>Monthly</li><li>Yearly</li><li>Never (used credits never reset; assigned warehouses continue using credits until the credit quota is reached)</li></ul><h4>Start</h4><p>Date and time (i.e. timestamp) when the resource monitor starts monitoring the assigned warehouses.</p><p>Supported values:</p><ul><li>Immediately (i.e. current timestamp)</li><li>Later (i.e. any future timestamp)</li></ul><p>In addition, Snowflake uses this date to determine when to reset the used credits, based on the specified frequency. Note, however, that regardless of the time specified in the start date and time, resource monitors reset at 12:00 AM UTC. For example, if the start is 15-July-2019 (Monday) at 8:00 AM:</p><ul><li>Frequency = Monthly: Used credits reset at 12:00 AM UTC on the 15th of each following month.</li><li>Frequency = Weekly: Used credits reset at 12:00 AM UTC on each following Monday.</li></ul><p>Note that, if you specify the last day of a month as the start date, Snowflake resets the used credits on the last day of all following months, regardless of the number of days in the month. For example, if you set the start date to January 31, Snowflake subsequently resets the used credits for the resource monitor on February 28 (or February 29 in a leap year), March 31, April 30, and so on.</p><h4>End</h4><p>Date and time (i.e. timestamp) when Snowflake suspends the warehouses associated with the resource monitor, regardless of whether the used credits reached any of the thresholds defined for the resource monitor’s actions (see next section in this topic).</p><p>Supported values: Any future timestamp.</p><p>Note that this property is not commonly used.</p><p>Source: <a href="https://docs.snowflake.com/en/user-guide/resource-monitors#schedule">https://docs.snowflake.com/en/user-guide/resource-monitors#schedule</a></p><h3>5) How are notifications enabled for resource monitors?</h3><p>As an account administrator, you must enable notifications for yourself in the Classic Console before you can receive any notifications generated by resource monitors.</p><p>Before you can enable email notifications, you must verify your email address.</p><p>To enable notifications in the Classic Console:</p><ul><li>Use the ACCOUNTADMIN system role. If you aren’t, in the drop-down menu next to your name in the upper-right corner, select Switch role » ACCOUNTADMIN.</li><li>In the same drop-down menu, select Preferences » Notifications.</li><li>Select one of the options.</li></ul><p>Source: <a href="https://docs.snowflake.com/en/user-guide/resource-monitors#enabling-receipt-of-notifications-for-account-administrators">https://docs.snowflake.com/en/user-guide/resource-monitors#enabling-receipt-of-notifications-for-account-administrators</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=736cc4b13958" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SnowPro Core Exam Prep — Answers to Snowflake’s LEVEL UP: Context]]></title>
            <link>https://medium.com/@aitor.porcellaburu/snowpro-core-exam-prep-answers-to-snowflakes-level-up-context-2fd7324eb32f?source=rss-65ce41fb7b3d------2</link>
            <guid isPermaLink="false">https://medium.com/p/2fd7324eb32f</guid>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[snowpro]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[snowflake]]></category>
            <dc:creator><![CDATA[Aitor Porcel Laburu]]></dc:creator>
            <pubDate>Tue, 05 Sep 2023 16:37:12 GMT</pubDate>
            <atom:updated>2023-09-05T16:37:12.886Z</atom:updated>
            <content:encoded><![CDATA[<h3>SnowPro Core Exam Prep — Answers to Snowflake’s LEVEL UP: Context</h3><p>Here is the sixth version of the articles related to SnowPro Core certification, containing the answers to the guide “<a href="https://learn.snowflake.com/courses/course-v1:snowflake+LVLUP-202+A/about">Level Up: Context</a>” The earlier versions are accessible through the provided links below:</p><ul><li><a href="https://medium.com/@aitor.porcellaburu/snowpro-core-exam-prep-answers-to-snowflakes-key-concepts-level-up-guide-524ec30ebbe8">SnowPro Core Exam Prep: Answers to Snowflake’s Key Concepts LEVEL UP Guide | by Aitor Porcel Laburu | Jun, 2023 | Medium</a></li><li><a href="https://medium.com/@aitor.porcellaburu/snowpro-core-exam-prep-answers-to-snowflakes-level-up-snowflake-ecosystem-88b22c27abe3">SnowPro Core Exam Prep: Answers to Snowflake’s LEVEL UP: Snowflake Ecosystem | by Aitor Porcel Laburu | Jun, 2023 | Medium</a></li><li><a href="https://medium.com/@aitor.porcellaburu/snowpro-core-exam-prep-answers-to-snowflakes-level-up-account-options-assurances-aa193f46a3ff">SnowPro Core Exam Prep: Answers to Snowflake’s LEVEL UP: Account Options &amp; Assurances | by Aitor Porcel Laburu | Jul, 2023 | Medium</a></li><li><a href="https://medium.com/@aitor.porcellaburu/snowpro-core-exam-prep-answers-to-snowflakes-level-up-container-hierarchy-details-74ed1b5f45f2">SnowPro Core Exam Prep: — Answers to Snowflake’s LEVEL UP: Container Hierarchy | by Aitor Porcel Laburu | Jul, 2023 | Medium</a></li><li><a href="https://medium.com/p/3ad16426ec29">SnowPro Core Exam Prep — Answers to Snowflake’s LEVEL UP: Query &amp; Results History | by Aitor Porcel Laburu | Aug, 2023 | Medium</a></li></ul><h3>1) What are two ways you can set context parameters from within the Worksheets area of the WebUI?</h3><h4>Classic console:</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*pYc-YmDyxXU-YapFE-Vhyw.png" /></figure><h4>Snowsight:</h4><p>Set the session context for a worksheet to define the role and warehouse to use to run the contents of a worksheet. The worksheet context is preserved for future sessions.</p><p>The role context for a worksheet determines which operations can be performed on Snowflake objects based on the access control privileges granted to the role.</p><p>To set the session context for a worksheet, do the following:</p><ul><li>Sign in to Snowsight.</li><li>Select Worksheets to open the list of worksheets.</li><li>Open a worksheet.</li><li>Open the context selector.</li><li>Select a role to run the worksheet as.</li><li>Select a warehouse that the role has privileges to use.</li><li>Select anywhere outside the drop-down to close the context selector.</li></ul><p>Notes</p><ul><li>You cannot choose multiple roles. The context selector does not support secondary roles. To enable secondary roles in a SQL worksheet, run USE SECONDARY ROLES.</li><li>Each worksheet is a unique session and can use roles different from the role you select on the user menu (your active role). Changing your active role does not change the role assigned to the worksheet with the context selector.</li></ul><p>Sources: <a href="https://docs.snowflake.com/en/user-guide/ui-worksheet">https://docs.snowflake.com/en/user-guide/ui-worksheet</a> &amp; <a href="https://docs.snowflake.com/en/user-guide/ui-snowsight-worksheets#change-the-session-context-for-a-worksheet">https://docs.snowflake.com/en/user-guide/ui-snowsight-worksheets#change-the-session-context-for-a-worksheet</a></p><h3>2) What is the command keyword used to set context parameters via the SQL Pane (as opposed to the drop menu)?</h3><h4>Using SQL:</h4><p>You can also set the context using the USE command: <em>USE &lt;object&gt;</em></p><ul><li>Specifies the role, warehouse, database, or schema to use for the current session:</li><li>The role for a session determines the objects that can be accessed in queries and other SQL statements executed in the session.</li><li>A warehouse is required for a session to execute queries and other DML statements, including loading/unloading data, in the session.</li><li>If a database or schema are not specified for a session, any objects referenced in queries and other SQL statements executed in the session must be fully-qualified with the database and schema, also known as the namespace, for the object.</li></ul><p>Source: <a href="https://docs.snowflake.com/en/sql-reference/sql/use">https://docs.snowflake.com/en/sql-reference/sql/use</a></p><h3>3) What command is used with a context function like CURRENT_DATABASE() in order to return the current database name into the results pane?</h3><p>You can use select and CURRENT_DATABASE() to get the current database name, for example:</p><p><em>SELECT CURRENT_WAREHOUSE(), CURRENT_DATABASE(), CURRENT_SCHEMA();</em></p><p>Source: <a href="https://docs.snowflake.com/en/sql-reference/functions/current_database">https://docs.snowflake.com/en/sql-reference/functions/current_database</a></p><h3>4) What context function will tell you the cloud infrastructure provider and the geographic region for your Snowflake account?</h3><p><em>SELECT CURRENT_REGION()</em></p><p>Output:</p><p><em>| CURRENT_REGION() | AWS_US_WEST_2 |</em></p><p>Source: <a href="https://docs.snowflake.com/en/sql-reference/functions/current_region">https://docs.snowflake.com/en/sql-reference/functions/current_region</a></p><h3>5) Which context function can give you a unique id that refers to your current browser tab?</h3><p><em>CURRENT_CLIENT();</em></p><p>Examples:</p><ul><li><strong>Call CURRENT_CLIENT from within SnowSQL</strong>:</li></ul><p><em>SELECT CURRENT_CLIENT();</em></p><p>Output:</p><p><em>| CURRENT_CLIENT() | SnowSQL 1.1.18 |</em></p><ul><li><strong>Call CURRENT_CLIENT from within the Worksheet in the Classic Console:</strong></li></ul><p><em>SELECT CURRENT_CLIENT();</em></p><p>Output: Snowflake UI 1434236365</p><p>Source: <a href="https://docs.snowflake.com/en/sql-reference/functions/current_client">https://docs.snowflake.com/en/sql-reference/functions/current_client</a></p><h3>6) Which context function gives you a unique id that is roughly equivalent to your current worksheet?</h3><p><em>CURRENT_SESSION()</em></p><ul><li>Example:</li></ul><p><em>SELECT CURRENT_SESSION();</em></p><p>Output: <em>|CURRENT_SESSION() | 34359980038 |</em></p><p>Source: <a href="https://docs.snowflake.com/en/sql-reference/functions/current_session">https://docs.snowflake.com/en/sql-reference/functions/current_session</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2fd7324eb32f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Run Llama 2 7b and 13b for free in Kaggle using GPTQ]]></title>
            <link>https://medium.com/@aitor.porcellaburu/run-llama-2-7b-and-13b-for-free-in-kaggle-using-gptq-e5f9821a6c6d?source=rss-65ce41fb7b3d------2</link>
            <guid isPermaLink="false">https://medium.com/p/e5f9821a6c6d</guid>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[llama-2]]></category>
            <category><![CDATA[gptq]]></category>
            <dc:creator><![CDATA[Aitor Porcel Laburu]]></dc:creator>
            <pubDate>Mon, 04 Sep 2023 11:11:38 GMT</pubDate>
            <atom:updated>2023-09-04T11:11:38.411Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QKJivQ0XWksRgSq0_rMRAg.png" /><figcaption>Hugging Face</figcaption></figure><p>Continuing with the previous post on how to run LLM for free in Google Colab/Kaggle (<a href="https://medium.com/p/84dd64a0a23a">Run open-source LLM for free in Google Colab/Kaggle | by Aitor Porcel Laburu | Medium</a>), this time I bring you two notebooks on how to run Llama 2 7B and 13B in Kaggle for free using Hugging Face. In order to do this, we’re going to use the versions of Llama 2 that were transformed using GPTQ (Post-Training Quantization for Generative Pre-trained Transformers).</p><p>In particular, we’re going to use two models quantized by <a href="https://huggingface.co/TheBloke">The Bloke</a> (this user has uploaded hundreds of quantized models to Hugging Face, so shoutout to him).</p><h3>Generative Pre-trained Transformer Quantization</h3><p>GPTQ stands for “Generative Pre-trained Transformer Quantization”. It is a technique for quantizing the weights of a Transformer model. Quantization is the process of reducing the number of bits used to represent the weights of a model and this can be done without significantly impacting the accuracy of the model.</p><p>GPTQ is a post-training quantization (PTQ) algorithm, which means that it is applied to a pre-trained model. This makes it a more efficient way to quantize LLMs, as it does not require the model to be retrained from scratch.</p><p>In case you want to read more about this technique, you can read the following post: <a href="https://towardsdatascience.com/4-bit-quantization-with-gptq-36b0f4f02c34">4-bit Quantization with GPTQ</a></p><p>Or the paper about this technique: <a href="https://arxiv.org/abs/2210.17323">GPTQ: Accurate Post-Training Quantization for Generative Pre-trained Transformers</a></p><h3>Llama 2?</h3><p>Llama 2 is an open-source large language model (LLM) developed by Meta AI and Microsoft. It is a successor to Llama 1, which was released in the first quarter of 2023. Llama 2 is trained on a massive dataset of text and code, and it can generate text, translate languages, write different kinds of creative content, and answer your questions in an informative way.</p><p>Key features of Llama 2:</p><ul><li>It is trained on 2 trillion words, which is significantly more than Llama 1. This makes it better at understanding and generating language.</li><li>It is available for free for research and commercial use. This means that anyone can use it to build new products and services.</li><li>It is open-source, which means that the code is available for anyone to inspect and modify. This helps to ensure that Llama 2 is accountable and transparent.</li></ul><h3>Notebooks to run the models in Kaggle</h3><h4>Notebook with the Llama 2 7B GPTQ model:</h4><p><a href="https://www.kaggle.com/aitorporcel/llama-2-7b-chat-gptq">Llama-2–7b-Chat-GPTQ | Kaggle</a></p><h4>Notebook with the Llama 2 13B GPTQ model:</h4><p><a href="https://www.kaggle.com/aitorporcel/llama-2-13b-chat-gptq">Llama-2–13b-Chat-GPTQ | Kaggle</a></p><p>Anyway, it is true that the speed of inference could be better (in my tests, the models took approximately 5 minutes in the case of the 7B parameter model and 10 minutes in the case of the 13B parameter model).</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e5f9821a6c6d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SnowPro Core Exam Prep - Answers to Snowflake’s LEVEL UP: Query & Results History]]></title>
            <link>https://medium.com/@aitor.porcellaburu/snowpro-core-exam-prep-answers-to-snowflakes-level-up-query-results-history-3ad16426ec29?source=rss-65ce41fb7b3d------2</link>
            <guid isPermaLink="false">https://medium.com/p/3ad16426ec29</guid>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[snowflake]]></category>
            <category><![CDATA[snowpro]]></category>
            <dc:creator><![CDATA[Aitor Porcel Laburu]]></dc:creator>
            <pubDate>Thu, 24 Aug 2023 09:16:29 GMT</pubDate>
            <atom:updated>2023-08-24T09:16:29.604Z</atom:updated>
            <content:encoded><![CDATA[<p>Here is the fifth edition of articles on SnowPro Core certification, with the responses to the guide <a href="https://learn.snowflake.com/courses/course-v1:snowflake+LVLUP-201+A/">Level Up: Query &amp; Results History</a>.<br>The previous editions can be found at the following links:</p><ul><li><a href="https://medium.com/@aitor.porcellaburu/snowpro-core-exam-prep-answers-to-snowflakes-key-concepts-level-up-guide-524ec30ebbe8">SnowPro Core Exam Prep: Answers to Snowflake’s Key Concepts LEVEL UP Guide | by Aitor Porcel Laburu | Jun, 2023 | Medium</a></li><li><a href="https://medium.com/@aitor.porcellaburu/snowpro-core-exam-prep-answers-to-snowflakes-level-up-snowflake-ecosystem-88b22c27abe3">SnowPro Core Exam Prep: Answers to Snowflake’s LEVEL UP: Snowflake Ecosystem | by Aitor Porcel Laburu | Jun, 2023 | Medium</a></li><li><a href="https://medium.com/@aitor.porcellaburu/snowpro-core-exam-prep-answers-to-snowflakes-level-up-account-options-assurances-aa193f46a3ff">SnowPro Core Exam Prep: Answers to Snowflake’s LEVEL UP: Account Options &amp; Assurances | by Aitor Porcel Laburu | Jul, 2023 | Medium</a></li><li><a href="https://medium.com/@aitor.porcellaburu/snowpro-core-exam-prep-answers-to-snowflakes-level-up-container-hierarchy-details-74ed1b5f45f2">SnowPro Core Exam Prep: — Answers to Snowflake’s LEVEL UP: Container Hierarchy | by Aitor Porcel Laburu | Jul, 2023 | Medium</a></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fGHu_keD1jejglUS2-ocwA.png" /></figure><h3>1) Where (in the WebUI) do I go to view recent query results and query profile information?</h3><h4><strong>Snowsight:</strong></h4><p>The Activity area of Snowsight, the Snowflake web interface, lets you:</p><ul><li><strong>Monitor queries executed by users in your account.</strong></li><li><strong>View details about queries.</strong></li><li>View performance data.</li><li>Explore each step of an executed query.</li><li>Monitor the status of data loading using COPY INTO (bulk loading) and pipes (continuous loading).</li><li>View details about instances of bulk and continuous data loading.</li><li>Navigate to the copy history for individual tables.</li></ul><h4><strong>Classic interface:</strong></h4><p>The History tab page allows you to view and drill into the details of all queries executed in the last 14 days. The page displays a historical listing of queries, including queries executed from SnowSQL or other SQL clients. The default information displayed for each query includes:</p><ul><li>Current status of queries: waiting in queue, running, succeeded, failed.</li><li>SQL text of your query.</li><li>Query ID.</li><li>Information about the warehouse used to execute the query.</li><li>Query start and end time, as well as duration.</li><li><strong>Information about the query, including number of bytes scanned and number of rows returned.</strong></li></ul><p>Sources: <a href="https://docs.snowflake.com/en/user-guide/ui-snowsight-activity#query-history">https://docs.snowflake.com/en/user-guide/ui-snowsight-activity#query-history</a> &amp; <a href="https://docs.snowflake.com/en/user-guide/ui-history">https://docs.snowflake.com/en/user-guide/ui-history</a></p><h3>2) How far in the past am I able to view query profiles and results using the WebUI?</h3><p><strong>Classic interface:</strong> The History page displays queries executed in the last 14 days, starting with the most recent ones. You can use the End Time filter to display queries based on a specified date; however, if you specify a date earlier than the last 14 days, no results are returned.</p><p><strong>Snowsight:</strong> The Query History page lets you view and drill into the details of queries executed in your Snowflake account in the last 14 days. Due to the data retention policy for sessions, the Query History does not list the user who executed a query if that query ran more than 7 days ago.</p><p>If you need to obtain information for older queries, try executing a query against the QUERY_HISTORY view in the Account Usage schema.</p><p>Sources: <a href="https://docs.snowflake.com/en/user-guide/ui-snowsight-activity#query-history">https://docs.snowflake.com/en/user-guide/ui-snowsight-activity#query-history</a> &amp; <a href="https://docs.snowflake.com/en/user-guide/ui-history#overview-of-features">https://docs.snowflake.com/en/user-guide/ui-history#overview-of-features</a></p><h3>3) Can I view my co-worker’s queries?</h3><p>Yes, but no the results:</p><p>Classic console: You can view results only for queries you have executed. If you have privileges to view queries executed by another user, the Query Detail page displays the details for the query, but, for data privacy reasons, the page does not display the actual query result.</p><p>Sources: <a href="https://docs.snowflake.com/en/user-guide/ui-history#viewing-query-details-and-results">https://docs.snowflake.com/en/user-guide/ui-history#viewing-query-details-and-results</a></p><h3>4) Can I view the queries run by my company’s ETL tool that connects using JDBC?</h3><p>Yes, you can see all the queries run.</p><h3>5) Can I download query results from this morning without having to run the query again?</h3><p>Yes.</p><p>Classic console: Snowflake persists the result of a query for a period of time, after which the result is purged. This limit is not adjustable. For more information, see Using Persisted Query Results.</p><p>Sources: <a href="https://docs.snowflake.com/en/user-guide/ui-history#viewing-query-details-and-results">https://docs.snowflake.com/en/user-guide/ui-history#viewing-query-details-and-results</a></p><h3>6) Can I download the results of my coworker’s query from this morning?</h3><p>No.</p><p>Classic console: You can view results only for queries you have executed. If you have privileges to view queries executed by another user, the Query Detail page displays the details for the query, but, for data privacy reasons, the page does not display the actual query result.</p><p>Sources: <a href="https://docs.snowflake.com/en/user-guide/ui-history#viewing-query-details-and-results">https://docs.snowflake.com/en/user-guide/ui-history#viewing-query-details-and-results</a></p><h3>7) I need to quickly look at this week’s queries but only for a particular warehouse, and I want to visually compare queuing time for each query, can I do this from the WebUI?</h3><p>Yes.</p><p>Snowsight: Use Filters, located in the upper-right corner of the page, to set additional filters for queries. You can filter by:</p><ul><li>SQL Text</li><li>Query ID</li><li>Warehouse</li><li>Duration</li><li>Session ID</li><li>Query Tag</li><li>Client generated statements</li><li>Queries executed by user tasks</li></ul><p>Sources: <a href="https://docs.snowflake.com/en/user-guide/ui-snowsight-activity#query-history">https://docs.snowflake.com/en/user-guide/ui-snowsight-activity#query-history</a></p><h3>8) Extra information about query history:</h3><p>QUERY_HISTORY View: This Account Usage view can be used to query Snowflake query history by various dimensions (time range, session, user, warehouse, etc.) within the last 365 days (1 year).</p><p>Source: <a href="https://docs.snowflake.com/en/sql-reference/account-usage/query_history">https://docs.snowflake.com/en/sql-reference/account-usage/query_history</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3ad16426ec29" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>