Skip to main content

Posts

Showing posts from July, 2026

Semantic Search (in progress)

Semantic Search Explained Semantic search is a search technique that finds information based on the meaning and context of a query rather than just matching exact keywords. Instead of asking: "Does this document contain the word 'car'?" Semantic search asks: "Does this document discuss the concept of automobiles or vehicles?" How It Works User Query      │      ▼ Convert query into an embedding (vector)      │      ▼ Vector Database (Search for nearest vectors)      │      ▼ Retrieve semantically similar documents      │      ▼ (Optional) Send results to an LLM for answer generation (RAG) Keyword Search vs Semantic Search Feature Keyword Search Semantic Search Matches Exact words Meaning and intent Handles synonyms ❌ No ✅ Yes Handles spelling variations Limited Good Understands context ❌ No ✅ Yes Search method Text matching Vector simil...

Retrieval-Augmented Generation (in progress)

How Retrieval-Augmented Generation Improves Large Language Models Retrieval-Augmented Generation (RAG) is an AI technique that combines information retrieval with text generation .  Instead of relying only on what the language model learned during training, RAG retrieves relevant information from an external knowledge source (such as documents, databases, or the web) and uses that information to generate more accurate, up-to-date, and context-aware responses. Components of RAG 1. Knowledge Base PDFs Word documents Websites Databases Wikis Internal company documents 2. Embedding Model Converts text into numerical vectors (embeddings). 3. Vector Database Stores embeddings for efficient similarity search. Examples: Pinecone Chroma FAISS Weaviate Milvus 4. Retriever Finds the most relevant documents based on the user's query. 5. Large Language Model (LLM) Uses the retrieved documents as context to produce the final answer. How RAG Works Example Suppose you ask: "What is t...

Vector Databases: A Complete Guide (in progress)

How Vector Databases Power AI, LLMs, and Semantic Search A vector database is a specialized database designed to store, index, and search vector embeddings. Instead of searching by exact keywords or IDs, it searches by meaning (semantic similarity). Vector databases have become a core component of modern AI applications such as ChatGPT, recommendation systems, semantic search, image search, and Retrieval-Augmented Generation (RAG). What is a Vector? A vector is simply a list of numbers that represents the meaning of data. For example, the sentence: "The cat is sleeping on the sofa." might become: [0.12, -0.45, 0.87, 0.91, ..., 0.33] Instead of storing the sentence alone, AI models convert it into hundreds or thousands of numbers. Common embedding sizes: 384 dimensions 768 dimensions 1024 dimensions 1536 dimensions 3072 dimensions The closer two vectors are, the more similar their meanings. Why Not Use SQL? Suppose your database contains: Text I l...

OpenAI Embedding Models (in progress)

OpenAI Embedding Models: From Text to Vector Representations OpenAI text embedding models convert text into dense numerical vectors (embeddings) that capture semantic meaning. Instead of matching keywords, applications compare these vectors to find text with similar meaning. What are embeddings? An embedding is a list of floating-point numbers representing the meaning of text. For example: Input: "The customer wants to cancel their subscription." Embedding: [0.024, -0.183, 0.761, ..., 0.092] Humans can't interpret these numbers directly, but machine learning algorithms can compare them. Available OpenAI Embedding Models The primary embedding models are: Model Dimensions Best For Cost text-embedding-3-small 1,536 (or fewer with dimension reduction) General-purpose search, RAG, classification Lowest text-embedding-3-large 3,072 (or fewer with dimension reduction) Highest-quality semantic search and retrieval Higher text-embedding-3-small Pros Fas...

AI Technology stack

AI Technology Stack Explained: The Layers Making AI Work Level 1: Data Layer The foundation of every AI system. Components Text Images Audio Video Documents Databases Sensors IoT devices Purpose Collect information for training and inference. Examples Customer support tickets PDFs Product catalogues Medical records Level 2: Data Processing Layer Raw data must be cleaned and prepared. Tasks Remove duplicates Handle missing values Convert formats Tokenisation Feature extraction Normalisation Output Clean, structured data suitable for AI models. Level 3: Machine Learning Layer The system learns patterns from historical data. Types Supervised Learning Unsupervised Learning Reinforcement Learning Deep Learning Algorithms Decision Trees Random Forest Neural Networks Support Vector Machines Gradient Boosting Level 4: Embedding Layer This is one of the most important layers in Generative AI. An embedding converts text, images, or audio into numerical vectors that capture sem...

BCG Matrix (Boston Consulting Group Matrix) - Strategic Planning Framework

The BCG Matrix (also called the Growth-Share Matrix) is a strategic planning framework developed by the Boston Consulting Group (BCG). It helps businesses evaluate their product portfolio or business units and decide where to invest, maintain, harvest, or divest resources. 1. ⭐ Stars High Market Share + High Market Growth Characteristics Market leaders in fast-growing industries Generate significant revenue Require continuous investment to maintain leadership Strategy Invest heavily Expand market share Innovate continuously Examples A rapidly growing AI product leading its market A flagship smartphone during its growth phase 2. 🐄 Cash Cows High Market Share + Low Market Growth Characteristics Established products in mature markets Generate consistent profits Require relatively low investment Strategy Maintain market position Maximise profits Use cash to fund Stars and Question Marks Examples Microsoft Windows Coca-Cola Classic 3. ❓ Question Marks (Problem Child...

What is Remarketing (Retargeting)

The Second Chance Strategy: How Remarketing Recaptures Lost Opportunities Remarketing or Retargeting is a digital marketing strategy that targets people who have previously interacted with your business but did not complete a desired action , such as making a purchase or signing up. Instead of marketing to new audiences, remarketing focuses on bringing back interested visitors and encouraging them to convert. Example: A visitor browses a laptop on your website. They leave without purchasing. Later, they see ads for that same laptop on Google, Facebook, Instagram, or YouTube. They return and complete the purchase. Remarketing vs Retargeting Although many marketers use these terms interchangeably, there is a subtle difference. Remarketing Traditionally refers to email campaigns to previous customers. Uses customer databases. Often customer retention focused. Retargeting Traditionally refers to display ads shown to previous website visitors. Uses browse...

Mission, Vision, and Strategy

Mission, Vision, and Strategy are three closely related concepts that define why an organization exists, where it wants to go, and how it plans to get there. Many people confuse them, but each serves a distinct purpose. A simple way to remember them is: Mission = Why we exist today Vision = Where we want to be in the future Strategy = How we will get there 1. Mission A mission statement explains the organization's current purpose. It answers the question: "Why do we exist?" It describes: What the organization does Who it serves What value it provides What makes it important A mission is focused on the present. Characteristics of a Good Mission Clear Simple Action-oriented Customer-focused Easy to remember Relevant to everyday work Mission Formula A mission often follows this pattern: We help (customers) by providing (product/service) so they can (benefit). Example: We provide affordable healthcare to improve the quality of life in our communities . Real Examples G...

Ansoff Matrix - Strategic Planning Framework

Ansoff Matrix: A Complete Guide to the Strategic Planning Framework The Ansoff Matrix, also known as the Product–Market Expansion Matrix, is a strategic planning framework developed by Igor Ansoff in 1957. It helps organizations identify the best growth strategy by considering whether they are selling existing or new products to existing or new markets. It remains one of the most widely used strategic frameworks in business planning, marketing, and corporate strategy. What is the Ansoff Matrix? The Ansoff Matrix helps answer one fundamental question: "How should a business grow?" It classifies growth strategies into four categories based on two dimensions: The Four Growth Strategies 1. Market Penetration Existing Products + Existing Markets Goal: Increase sales of current products within the current market. Strategies Increase advertising Competitive pricing Customer loyalty programs Improve customer experience Increase purchase frequency Upselling and cross-selling W...

Stakeholder Management Master Framework

From Stakeholders to Strategic Partners: Mastering Relationship Management 1. Who Is a Stakeholder? A stakeholder is any person, group, or organization that can influence, affect, or be affected by an initiative, decision, project, product, service, or organization. Common Stakeholder Types: Internal Senior management Employees Project and product teams Finance IT Operations Legal HR External Customers Partners Suppliers Regulators Investors Agencies Community 2. Strategic Stakeholder Relationship Management Strategic Stakeholder Relationship Management (SSRM) is the deliberate process of identifying, understanding, prioritizing, engaging, and developing stakeholder relationships to create alignment, trust, collaboration, and mutual value in support of organizational objectives. It connects: Organizational Strategy + Stakeholder Needs + Relationships + Influence + Trust + Business Outcomes It goes beyond simply communicating with stakeholders. It focuses on developing relationship...