Large Language Models (LLMs): Four Critical Modeling Stages

Large Language Models Modeling Stages

Large language models (LLMs) have fundamentally transformed our digital landscape, powering everything from chatbots and search engines to code generators and creative writing assistants. Yet behind every seemingly effortless AI conversation lies a sophisticated multi-stage modeling process that transforms raw text into intelligent, task-specific systems capable of human-like understanding and generation. Understanding the LLM modeling stages described later in this blog is crucial to be able to create pre-trained model and finetune them. Let’s explore and learn about these LLM modeling stages. Stage 1: Preprocessing – Laying the Foundation The preprocessing stage involves transforming raw text data into a format suitable for model training. This includes segmenting the raw text …

Continue reading

Posted in Large Language Models. Tagged with , .

Agentic Workflow Design Patterns Explained with Examples

agentic workflow design patterns

As Large Language Models (LLMs) evolve into autonomous agents, understanding agentic workflow design patterns has become essential for building robust agentic AI systems. These patterns represent proven architectural approaches that determine how AI agents coordinate, make decisions, and solve complex problems. These design patterns can be used in several use cases including enterprise automation, software development, research analysis, content creation, customer service, and process orchestration. The following nine design patterns represent foundational architectures that can be used for building agentic workflow systems. Learn from this visual animation – Agentic Workflow Design Patterns. Policy-Only Workflows Uses LLMs as direct policy models to generate actions or plans without search or feedback loops. …

Continue reading

Posted in agentic ai, AI. Tagged with .

What is Data Strategy?

key characteristics effective data strategy

In today’s data-driven business landscape, organizations are constantly seeking ways to harness the power of their information assets. Yet many struggle with a fundamental question: what exactly is data strategy, and how can it drive meaningful business outcomes? In this blog, we will learn about how do we think and create data strategy. In next blogs, I will expand further on key components of data strategy. In case, you would like to discuss or learn, feel free to reach out to me on Linkedin. Defining Data Strategy When we talk about data strategy, we’re specifically talking about data strategy for business – strategy designed to achieve desired business objectives. At …

Continue reading

Posted in Data, Data Strategy. Tagged with , , .

Mathematics Topics for Machine Learning Beginners

mathematics for machine learning

In this blog, you would get to know the essential mathematical topics you need to cover to become good at AI & machine learning. These topics are grouped under four core areas including linear algebra, calculus, multivariate calculus and probability theory & statistics. Linear Algebra Linear algebra is arguably the most important mathematical foundation for machine learning. At its core, machine learning is about manipulating large datasets, and linear algebra provides the tools to do this efficiently. Vector Spaces and Operations Matrices: Your Data’s Best Friend Eigenvalues and Eigenvectors Matrix Decompositions Calculus Machine learning is fundamentally about optimization – finding the best parameters that minimize error in the loss function. …

Continue reading

Posted in Data Science, Deep Learning, Machine Learning. Tagged with , .

Questions to Ask When Thinking Like a Product Leader

product thinking questions product leader

This blog represents a list of questions you can ask when thinking like a product leader. The topic includes identifying problem & opportunity, getting business impact clarity, understanding different aspects of user experience & design, success & measurement criteria, etc. If you are starting on with an exercise to solve a business problem and therefore exploring and selecting a product, you might find these questions useful. Core Problem & Opportunity Product leaders must first establish a crystal-clear understanding of the problem they’re solving and the opportunity it represents. This foundational work involves deeply understanding your target users, their pain points, and the real-world scenarios where your solution will add value. …

Continue reading

Posted in Product Management. Tagged with .

Three Approaches to Creating AI Agents: Code Examples

Approaches to building AI agents

AI agents are autonomous systems combining three core components: a reasoning engine (powered by LLM), tools for external actions, and memory to maintain context. Unlike traditional AI-powered chatbots (created using DialogFlow, AWS Lex), agents can interact with end user based on planning multi-step workflows, use specialized tools, and make decisions based on previous results. In this blog, we will learn about different approaches for building agentic systems. The blog represents Python code examples to explain each of the approaches for creating AI agents. Before getting into the blog, lets quickly look at the set up code which will be basis for code used in the approaches. To explain different approaches, …

Continue reading

Posted in agentic ai, LangChain, Large Language Models, Python. Tagged with , , , .

What is Embodied AI? Explained with Examples

Embodied AI concepts

Artificial Intelligence (AI) has evolved significantly, from its early days of symbolic reasoning to the emergence of large language models that rely on internet-scale data. Now, a new frontier is taking shape— Embodied AI that leverages Agentic AI. These systems move beyond static data processing to actively interact with and learn from the real world. Embodied AI, in particular, refers to intelligent agentic AI systems with physical presence—robots, drones, humanoids—that sense, reason, and act in physical environments. Together with Agentic AI, which emphasizes autonomy, goal-directed behavior, and decision-making over time, these developments represent a shift toward more dynamic, adaptive, and human-like forms of intelligence that integrate perception, cognition, and action. …

Continue reading

Posted in agentic ai. Tagged with .

Retrieval Augmented Generation (RAG) & LLM: Examples

Retrieval augmented Generation RAG pattern for LLMs

Last updated: 25th Jan, 2025 Have you ever wondered how to seamlessly integrate the vast knowledge of Large Language Models (LLMs) with the specificity of domain-specific knowledge stored in file storage, relational databases, graph databases, vector databases, etc? As the world of LLMs continues to evolve, the need for more sophisticated and contextually relevant responses from LLMs becomes paramount. Lack of contextual knowledge can result in LLM hallucination thereby producing inaccurate, unsafe, and factually incorrect responses. This is where question & context augmentation to prompts is used for contextually sensitive answer generation with LLMs, and, the retrieval-augmented generation method, comes into the picture. For data scientists and product managers keen …

Continue reading

Posted in Generative AI, Machine Learning, NLP. Tagged with , , .

How to Setup MEAN App with LangChain.js

mean app with langchain.js

Hey there! As I venture into building agentic MEAN apps with LangChain.js, I wanted to take a step back and revisit the core concepts of the MEAN stack. LangChain.js brings AI-powered automation and reasoning capabilities, enabling the development of agentic AI applications such as intelligent chatbots, automated customer support systems, AI-driven recommendation engines, and data analysis pipelines. Understanding how it integrates into the MEAN stack is essential for leveraging its full potential in creating these advanced applications. So, I put together this quick learning blog to share what I’ve revisited. The MEAN stack is a popular full-stack JavaScript framework that consists of MongoDB, Express.js, Angular, and Node.js. Each component plays …

Continue reading

Posted in agentic ai, LangChain, MEAN. Tagged with , , , .

Build AI Chatbots for SAAS Using LLMs, RAG, Multi-Agent Frameworks

ai powered chatbots for SAAS using LLM, RAG and Multi-agent frameworks

Software-as-a-Service (SaaS) providers have long relied on traditional chatbot solutions like AWS Lex and Google Dialogflow to automate customer interactions. These platforms required extensive configuration of intents, utterances, and dialog flows, which made building and maintaining chatbots complex and time-consuming. The need for manual intent classification and rule-based conversation logic often resulted in rigid and limited chatbot experiences, unable to handle dynamic user queries effectively. With the advent of generative AI, SaaS providers are increasingly adopting Large Language Models (LLMs), Retrieval-Augmented Generation (RAG), and multi-agent frameworks such as LangChain, LangGraph, and LangSmith to create more scalable and intelligent AI-driven chatbots. This blog explores how SaaS providers can leverage these technologies …

Continue reading

Posted in agentic ai, Large Language Models. Tagged with , .

Creating a RAG Application Using LangGraph: Example Code

building rag application using Langgraph

Retrieval-Augmented Generation (RAG) is an innovative generative AI method that combines retrieval-based search with large language models (LLMs) to enhance response accuracy and contextual relevance. Unlike traditional retrieval systems that return existing documents or generative models that rely solely on pre-trained knowledge, RAG technique dynamically integrates context as retrieved information related to query with LLM outputs. LangGraph, an advanced extension of LangChain, provides a structured workflow for developing RAG applications. This guide will walk through the process of building a RAG system using LangGraph with example implementations. Setting Up the Environment To get started, we need to install the necessary dependencies. The following commands will ensure that all required LangChain …

Continue reading

Posted in agentic ai, LangChain, Large Language Models, RAG. Tagged with , , , .

Building a RAG Application with LangChain: Example Code

Building a RAG application using LangChain Framework

The combination of Retrieval-Augmented Generation (RAG) and powerful language models enables the development of sophisticated applications that leverage large datasets to answer questions effectively. In this blog, we will explore the steps to build an LLM RAG application using LangChain. Prerequisites Before diving into the implementation, ensure you have the required libraries installed. Execute the following command to install the necessary packages: Setting Up Environment Variables LangChain integrates with various APIs to enable tracing and embedding generation, which are crucial for debugging workflows and creating compact numerical representations of text data for efficient retrieval and processing in RAG applications. Set up the required environment variables for LangChain and OpenAI: Step …

Continue reading

Posted in LangChain, Large Language Models, RAG. Tagged with , , .

Building an OpenAI Chatbot with LangChain

Building Custom OpenAI Chatbot using LangChain

Have you ever wondered how to use OpenAI APIs to create custom chatbots? With advancements in large language models (LLMs), anyone can develop intelligent, customized chatbots tailored to specific needs. In this blog, we’ll explore how LangChain and OpenAI LLMs work together to help you build your own AI-driven chatbot from scratch. Prerequisites Before getting started, ensure you have Python (version 3.8 or later) installed and the required libraries. You can install the necessary packages using the following command: Setting Up OpenAI API Key To use OpenAI’s services, you need an API key, which you can obtain by signing up at OpenAI’s website (OpenAI) and generating a key from the …

Continue reading

Posted in LangChain, Large Language Models, OpenAI. Tagged with , , .

How Indexing Works in LLM-Based RAG Applications

Indexing in RAG applications

When building a Retrieval-Augmented Generation (RAG) application powered by Large Language Models (LLMs), which combine the ability to generate human-like text with advanced retrieval mechanisms for precise and contextually relevant information, effective indexing plays a pivotal role. It ensures that only the most contextually relevant data is retrieved and fed into the LLM, improving the quality and accuracy of the generated responses. This process reduces noise, optimizes token usage, and directly impacts the application’s ability to handle large datasets efficiently. RAG applications combine the generative capabilities of LLMs with information retrieval, making them ideal for tasks such as question-answering, summarization, or domain-specific problem-solving. This blog will walk you through the …

Continue reading

Posted in AI, Generative AI, Large Language Models. Tagged with , .

What are AI Agents? How do they work?

how does AI agent work

Artificial Intelligence (AI) agents have started becoming an integral part of our lives. Imagine asking your virtual assistant whether you need an umbrella tomorrow, or having it remind you of an important meeting—these agents now help us with weather forecasts, managing daily tasks, and much more. But what exactly are these AI agents, and how do they work? In this blog post, we’ll break down the inner workings of AI agents using an easy-to-understand framework. Let’s explore the key components of an AI agent and how they collaborate to enable seamless interactions, such as providing weather updates or managing tasks efficiently. What are AI Agents? AI agents are artificial entities …

Continue reading

Posted in agentic ai. Tagged with .

Agentic AI Design Patterns Examples

agentic ai design patterns examples

In the ever-evolving landscape of agentic AI workflows and applications, understanding and leveraging design patterns is crucial for building effective and innovative solutions. Agentic AI design patterns provide structured approaches to solving complex problems. They enhance the capabilities of AI agents by enabling reasoning, planning, collaboration, and tool integration. For instance, you can think of these patterns as a blueprint for constructing a well-oiled team of specialists in a workplace—each with unique roles and tools, working in harmony to tackle a project efficiently and innovatively. Imagine a team of engineers collaborating on designing a new car, where one member focuses on aerodynamics, another on engine performance, and a third on …

Continue reading

Posted in agentic ai, Large Language Models. Tagged with , .