<?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 Remya P on Medium]]></title>
        <description><![CDATA[Stories by Remya P on Medium]]></description>
        <link>https://medium.com/@remya.p?source=rss-b8da40334213------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*dmbNkD5D-u45r44go_cf0g.png</url>
            <title>Stories by Remya P on Medium</title>
            <link>https://medium.com/@remya.p?source=rss-b8da40334213------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 04:07:36 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@remya.p/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[Beyond PDFs: Building Multimodal, Intelligent Data Workflows with Docling Pipelines]]></title>
            <link>https://medium.com/@remya.p/beyond-pdfs-building-multimodal-intelligent-data-workflows-with-docling-pipelines-fa60991b7906?source=rss-b8da40334213------2</link>
            <guid isPermaLink="false">https://medium.com/p/fa60991b7906</guid>
            <category><![CDATA[docling]]></category>
            <category><![CDATA[docling-pipelines]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[rags]]></category>
            <dc:creator><![CDATA[Remya P]]></dc:creator>
            <pubDate>Wed, 02 Dec 2026 13:57:25 GMT</pubDate>
            <atom:updated>2026-12-02T13:57:25.279Z</atom:updated>
            <content:encoded><![CDATA[<p>By <a href="https://github.com/docling-project/docling-pipelines">Docling-pipelines</a></p><p>Building an AI-powered search or Retrieval-Augmented Generation (RAG) application involves much more than connecting a language model to a vector database. The real challenge often begins much earlier: preparing enterprise data so that it can be reliably consumed, searched, and retrieved by AI applications.</p><p>Enterprise information is rarely available in a single format. It is spread across PDFs, scanned documents, spreadsheets, presentations, images, audio recordings, video files, and other business content. Preparing this information for AI requires multiple processing steps — extracting content, handling sensitive information, improving data quality, structuring content, generating embeddings, and storing it for retrieval.</p><p>This is where <strong>Docling pipelines</strong> comes in.</p><blockquote><strong>Docling pipelines</strong> is an open-source, operator-driven framework backed by IBM that brings these data preparation activities together into configurable workflows.</blockquote><p>Rather than building and maintaining separate scripts for every processing stage, teams can compose reusable operators into workflows that transform different types of content into data suitable for search and RAG applications.</p><p>In this article, we’ll explore some of the capabilities that make Docling pipelines useful for building flexible data preparation workflows, including multimodal extraction, data quality processing, LLM flexibility, intelligent chunking, and enterprise-oriented use cases.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Tbyi5fuSTMtmoc4zPiURjQ.png" /><figcaption><strong>Figure 1. From diverse data sources to AI-powered applications:</strong> A conceptual view of how information from multiple sources is transformed into connected knowledge fragments and made available for AI-driven search and applications.</figcaption></figure><h3>A Rich Operator Ecosystem for Real-World Data Processing</h3><p>One of the key capabilities of Docling pipelines is its collection of reusable operators. Each operator is designed to perform a specific processing task, allowing teams to build workflows suited to their data and application requirements.</p><p>The operator ecosystem covers different stages of the data preparation lifecycle:</p><ul><li><strong>Ingestion:</strong> Bring content into the workflow from supported sources such as local files, cloud storage, document platforms, and web data.</li><li><strong>Extraction:</strong> Extract text and structured content from documents and other supported media formats.</li><li><strong>Data Quality:</strong> Apply processing such as classification, sensitive information detection, redaction, deduplication, and readability checks, where supported by the configured operators.</li><li><strong>Processing</strong>: chunking (with optional LLM summarisation of chunks) and embedding generation.</li><li><strong>Routing and Logic:</strong> Direct data through different processing paths based on configured rules and conditions.</li><li><strong>Storage:</strong> Persist processed content and embeddings in supported vector databases or other storage destinations.</li></ul><p>The advantage of this operator-based approach is flexibility. A workflow for a knowledge management application may focus on document extraction, chunking, and embedding, while an invoice processing workflow may require entity extraction, normalisation, and filtering.</p><p>Instead of creating an entirely new implementation for each use case, teams can combine and configure operators to meet their specific requirements.</p><h3>Going Beyond Traditional Text Extraction with VLMs</h3><p>Traditional document extraction approaches work well for many text-based documents. However, enterprise documents often contain more complex content, including scanned pages, tables, charts, handwritten annotations, and mixed layouts.</p><p>Extracting meaningful information from these documents can require more than conventional text extraction.</p><p>Docling pipelines supports Visual Language Model (VLM)-based extraction through its extraction capabilities. VLMs can help interpret visual and structural information in documents, making them useful for content that may not be represented adequately as plain text.</p><p>Depending on the configured integration and model, examples include:</p><ul><li><strong>Granite Docling:</strong> A document-focused vision-language model from IBM.</li><li><strong>DeepSeek OCR:</strong> An OCR-oriented model that can be used for document extraction scenarios.</li><li><strong>Pixtral, Qwen, and Phi:</strong> Models that may be used for visual and document understanding through supported integrations.</li></ul><p>This flexibility makes it possible to select an extraction approach based on the nature of the input rather than relying on one method for every document.</p><p>For example, a workflow processing scanned financial reports may need to preserve information from tables and complex layouts, while a workflow processing digitally generated text documents may use a more conventional extraction approach.</p><h3>Bringing Audio and Video into the Same Data Workflow</h3><p>Enterprise knowledge is not limited to written documents. Important information is also captured in meeting recordings, presentations, interviews, training sessions, and other audio and video content.</p><p>Making this information searchable traditionally requires a separate transcription and processing workflow.</p><p>Docling pipelines supports audio transcription through its extraction capabilities, including integrations with Whisper models. Supported configurations can use different model sizes and variants, depending on the environment and requirements.</p><p>For example, audio and video content can be transcribed into text, which can then be passed through subsequent data preparation stages such as quality processing, chunking, embedding, and storage.</p><p>Consider a legal or enterprise knowledge management scenario:</p><ul><li>Contracts and policies are available as PDF documents.</li><li>Board meetings and discussions are recorded as audio or video.</li><li>Supporting presentations are available as slide decks.</li></ul><p>These sources contain valuable information, but it is difficult to search across them when each format is processed independently.</p><p>A common data preparation workflow can help bring supported content types into a consistent downstream processing path. This makes it possible to build a searchable knowledge base that includes information from both documents and recorded conversations.</p><h3>Flexibility in Choosing LLM Providers</h3><p>Different applications have different requirements when it comes to model selection. Some teams prefer locally hosted models, while others need enterprise-managed inference services or externally hosted models.</p><p>Docling pipelines provides configurable model integrations, including LiteLLM-based integrations for supported operators. This helps teams work with different model providers without having to build a completely separate integration for every model.</p><p>Depending on the operator and its supported configuration, examples of model providers and platforms include:</p><ul><li>Ollama for locally hosted models.</li><li>IBM watsonx.ai for IBM enterprise AI services.</li><li>OpenAI models.</li><li>Anthropic models.</li><li>AWS Bedrock.</li><li>Google Vertex AI.</li><li>Azure OpenAI.</li><li>Hugging Face inference services.</li></ul><p>The specific providers and models available depend on the operator, integration, and configuration being used.</p><p>This flexibility is useful when teams need to evaluate different models, adapt to changing requirements, or choose between local and hosted inference options.</p><p>For example, a team may start experimenting with a locally hosted model and later evaluate an enterprise model provider for a particular processing requirement. The configured integration can be changed without having to redesign the entire data preparation workflow, although provider-specific configuration may still be required.</p><h3>Choosing the Right Chunking Strategy</h3><p>Chunking is an important step in preparing content for RAG applications. It determines how extracted content is divided into smaller pieces before embedding and indexing.</p><p>A poor chunking strategy can separate related information, break contextual relationships, or produce chunks that are not useful for retrieval.</p><p>Docling pipelines provides multiple chunking approaches to support different requirements:</p><p><strong>1. Simple Chunking</strong></p><p>Divides content into fixed-size chunks using a configured character count and overlap. It is straightforward and useful when predictable chunk sizes are important.</p><p><strong>2. Semantic Chunking</strong></p><p>Uses embedding-based similarity to identify content boundaries based on changes in meaning or topic. This can help keep related information together.</p><p><strong>3. Hybrid Chunking</strong></p><p>Uses Docling’s document-aware chunking capabilities to preserve structural information such as headings, paragraphs, and tables. This is useful when document structure contributes to the meaning of the content.</p><p><strong>LLM-Based Chunk Summarisation</strong></p><p>In addition to chunking strategies, summarisation can be used to generate additional contextual information for chunks. With a configured summarisation workflow, summaries can be stored alongside the original chunk content to support downstream retrieval scenarios.</p><p>The appropriate strategy depends on the source material and the retrieval requirements. For example, a simple approach may be sufficient for relatively uniform text, while structured reports and complex documents may benefit from document-aware chunking.</p><h3>From Capabilities to Enterprise Use Cases</h3><p>The combination of ingestion, extraction, quality processing, chunking, embeddings, and storage makes Docling pipelines applicable to a range of data preparation scenarios.</p><p>Here are a few examples.</p><h3>1. Enterprise Knowledge Management</h3><p>Enterprise teams often maintain large collections of policies, technical documents, reports, and internal knowledge articles.</p><p>A workflow can ingest documents from supported sources, extract their content, classify them, apply sensitive information processing, generate chunks and embeddings, and store the resulting data for search and RAG applications.</p><p>This provides a foundation for building knowledge assistants that can retrieve information from enterprise content.</p><h3>2. Invoice and Financial Document Processing</h3><p>Invoices and financial documents contain structured information such as vendor names, amounts, dates, and line items.</p><p>A data preparation workflow can extract relevant information, apply entity processing and normalisation, filter unwanted records, and store structured information alongside searchable content.</p><p>This can help prepare financial documents for downstream search, analysis, and automation applications.</p><h3>3. Multimedia Knowledge Capture</h3><p>Organisations generate knowledge through meetings, presentations, training sessions, and supporting documents.</p><p>A workflow can combine supported audio and video transcription capabilities with document extraction. The resulting content can then pass through common downstream processing stages such as quality checks, chunking, and embedding.</p><p>This provides a way to make information from multiple content formats available through a common search experience.</p><h3>4. Sensitive and Compliance-Oriented Data Processing</h3><p>Enterprise applications often need to consider sensitive information before content is made available for retrieval.</p><p>Docling pipelines includes data processing capabilities such as PII detection and redaction through supported operators and integrations. These can be incorporated into a workflow before embedding and storage.</p><p>For example, a team can configure a pipeline to identify and redact sensitive information before passing processed content to subsequent stages.</p><p>The exact governance, deployment, and model-inference requirements will depend on the enterprise environment and its configured integrations.</p><h3>Building Workflows That Can Evolve</h3><p>Data preparation requirements rarely remain static. New document formats emerge, model providers evolve, and applications require additional processing stages as their needs grow.</p><p>An operator-based workflow makes it easier to accommodate these changes.</p><p>Teams can extend an existing workflow by introducing additional operators, changing processing configurations, or adjusting the sequence of operations to support new requirements.</p><p>Docling pipelines also provides a declarative workflow definition using JSON-based Directed Acyclic Graphs (DAGs). Operators represent individual processing steps, while edges define dependencies between them.</p><p>The execution engine manages workflow dependencies and supports parallel execution where the workflow allows it. The project also provides different execution and orchestration configurations, including local execution options and supported Prefect-based deployment approaches.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rVKiE0BfkttYOVxIHrZn5g.png" /><figcaption><em>Figure 2. Docling pipelines architecture — showing the relationship between workflow definitions, operators, data exchange, and execution/orchestration components.</em></figcaption></figure><p>This architecture provides a foundation for building modular workflows that can be adapted as data processing requirements change.</p><h3>The Bottom Line</h3><p>Building reliable AI applications requires more than choosing the right language model. The quality, structure, and accessibility of the data supplied to those models play an equally important role.</p><p>Docling pipelines brings together reusable operators and configurable workflows to help teams prepare diverse content for AI applications. From document and multimodal extraction to data quality processing, chunking, embeddings, and storage, it provides building blocks for creating data preparation workflows that can evolve with application requirements.</p><p>Whether the goal is to build an enterprise knowledge base, prepare financial documents, or make information from recorded meetings searchable, Docling pipelines offers a flexible foundation for transforming raw content into AI-ready data.</p><p>Explore the project and get started:</p><p><strong>GitHub:</strong> <a href="https://github.com/docling-project/docling-pipelines">https://github.com/docling-project/docling-pipelines</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fa60991b7906" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From Raw Documents to Search-Ready Chunks — A Deep Dive into Functional Operators in Docling…]]></title>
            <link>https://medium.com/@remya.p/from-raw-documents-to-search-ready-chunks-a-deep-dive-into-functional-operators-in-docling-db335bf2a349?source=rss-b8da40334213------2</link>
            <guid isPermaLink="false">https://medium.com/p/db335bf2a349</guid>
            <category><![CDATA[docling]]></category>
            <category><![CDATA[unstructured-data]]></category>
            <category><![CDATA[docling-pipelines]]></category>
            <category><![CDATA[ibm]]></category>
            <category><![CDATA[open-source]]></category>
            <dc:creator><![CDATA[Remya P]]></dc:creator>
            <pubDate>Thu, 10 Sep 2026 04:47:54 GMT</pubDate>
            <atom:updated>2026-09-10T04:47:54.719Z</atom:updated>
            <content:encoded><![CDATA[<h3>From Raw Documents to Search-Ready Chunks — A Deep Dive into Functional Operators in Docling Pipelines</h3><p>How Functional Operators in Docling Pipelines split, hash, embed, and route your documents through every stage of a production AI pipeline.</p><p>By <a href="https://github.com/IBM/docling-pipelines"><strong>Docling-pipelines</strong></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Osak2qLeTlXa8op0-7XVww.png" /></figure><p>If you’ve read <a href="https://medium.com/u/6ea0b614880d">Aditya Rohan Singh</a> article <a href="https://medium.com/@adityars_28497/build-modular-document-processing-flows-with-docling-pipelines-and-ibm-bob-8a215ed702f4">“Build and Verify an AI-Ready Search Pipeline with Docling Pipelines and IBM Bob”</a>, you already know how a five-operator flow turns a folder of PDFs into a fully searchable OpenSearch index.</p><p>This article zooms in on one family of operators: the <strong>Functional Operators</strong>. These are the operators that do the heavy structural lifting between extraction and storage — splitting, routing, joining, embedding, and curating data as it flows through the pipeline DAG. Every production pipeline uses at least two of them.</p><h4>The Functional Operators You Should Know</h4><p><strong>Docling Pipelines</strong> ships with five functional operators covered in this article:</p><ul><li><strong>chunker</strong> (ChunkerOperator) — Splits extracted text into optimal, retrieval-ready segments.</li><li><strong>branching</strong> (BranchingOperator) — Forks processing execution into multiple conditional paths.</li><li><strong>entity_curation</strong> (EntityCurationOperator) — Normalizes extracted entities against a structured document schema.</li><li><strong>merge</strong> (MergeOperator) — Rejoins branched execution paths back into a single stream.</li><li><strong>embeddings</strong> (EmbeddingsOperator) — Vectorizes text chunks for downstream semantic search.</li></ul><p>Let’s meet each of them.</p><h4>1. Chunker (chunker)</h4><p>The chunker sits immediately after the extract operator in virtually every RAG pipeline. It solves a fundamental problem: language models have context limits, but your documents don’t.</p><p>The operator offers three strategies:</p><p><strong>Simple</strong> — fixed-size character splitting with configurable overlap. The right default for most use cases. Fast, predictable, and deterministic.</p><pre>{<br>  &quot;type&quot;: &quot;chunker&quot;,<br>  &quot;name&quot;: &quot;chunk&quot;,<br>  &quot;config&quot;: {<br>    &quot;chunk_type&quot;: &quot;simple&quot;,<br>    &quot;chunk_size&quot;: 512,<br>    &quot;chunk_overlap&quot;: 50,<br>    &quot;retain_original_content&quot;: false<br>  },<br>  &quot;depends_on&quot;: [&quot;extract&quot;]<br>}</pre><p><strong>Semantic</strong> — uses an Ollama embedding model to detect natural breakpoints in meaning. Chunks respect conceptual boundaries rather than character counts. Ideal for dense documents like legal contracts or research papers.</p><pre>{<br>  &quot;type&quot;: &quot;chunker&quot;,<br>  &quot;name&quot;: &quot;chunk&quot;,<br>  &quot;config&quot;: {<br>    &quot;chunk_type&quot;: &quot;semantic&quot;,<br>    &quot;semantic_embeddings_model&quot;: &quot;granite4&quot;,<br>    &quot;breakpoint_threshold_type&quot;: &quot;percentile&quot;,<br>    &quot;breakpoint_threshold_amount&quot;: 95.0<br>  },<br>  &quot;depends_on&quot;: [&quot;extract&quot;]<br>}</pre><p><strong>Hybrid</strong> <strong>(Docling)</strong> — uses Docling’s HybridChunker which understands document structure (headings, sections, tables). Token-based rather than character-based. Best when Docling was used for extraction and structural metadata is still available.</p><pre>{<br>  &quot;type&quot;: &quot;chunker&quot;,<br>  &quot;name&quot;: &quot;chunk&quot;,<br>  &quot;config&quot;: {<br>    &quot;chunk_type&quot;: &quot;hybrid&quot;,<br>    &quot;chunk_size&quot;: 512,<br>    &quot;chunk_overlap&quot;: 50,<br>    &quot;docling_tokenizer&quot;: &quot;sentence-transformers/all-MiniLM-L6-v2&quot;<br>  },<br>  &quot;depends_on&quot;: [&quot;extract&quot;]<br>}</pre><p>The chunker replaces the content column with a chunked_content column by default. Set retain_original_content: true if a downstream operator also needs the full-document text.</p><p><strong>Why it matters: </strong>Retrieval quality degrades sharply when chunks are too large (multiple unrelated topics) or too small (no context). Picking the right strategy is often the single highest-leverage tuning decision in a RAG pipeline.</p><h4>2. Branching (branching)</h4><p>The branching operator forks the DAG into multiple sub-flows based on document metadata. Each branch is a conditional filter — only documents matching the criteria proceed down that path.</p><p>A common and powerful pattern is to run document_classifier first, tag each document with a document_type, then use branching to route each document type to a different processing path:</p><pre>{<br>  &quot;type&quot;: &quot;branching&quot;,<br>  &quot;name&quot;: &quot;doc_type_branch&quot;,<br>  &quot;config&quot;: {<br>    &quot;branches&quot;: {<br>      &quot;invoice_branch&quot;: {<br>        &quot;link_name&quot;: &quot;invoices&quot;,<br>        &quot;criteria_json&quot;: {<br>          &quot;criteria_list&quot;: [<br>            { &quot;variable&quot;: &quot;document_type&quot;, &quot;operator&quot;: &quot;=&quot;, &quot;value&quot;: &quot;invoice&quot; }<br>          ],<br>          &quot;logical_operator&quot;: &quot;AND&quot;<br>        }<br>      },<br>      &quot;contract_branch&quot;: {<br>        &quot;link_name&quot;: &quot;contracts&quot;,<br>        &quot;criteria_json&quot;: {<br>          &quot;criteria_list&quot;: [<br>            { &quot;variable&quot;: &quot;document_type&quot;, &quot;operator&quot;: &quot;!=&quot;, &quot;value&quot;: &quot;invoice&quot; }<br>          ],<br>          &quot;logical_operator&quot;: &quot;AND&quot;<br>        }<br>      }<br>    }<br>  },<br>  &quot;depends_on&quot;: [&quot;extract&quot;]<br>}</pre><p>Downstream operators reference the branch output using dotted notation:</p><pre>&quot;depends_on&quot;: [&quot;doc_type_branch.invoice_branch&quot;]</pre><p>Branches can use AND or OR logic to combine multiple criteria. An unconditional branch (empty criteria_list) acts as a passthrough default arm.</p><p><strong>Why it matters:</strong> Not all documents need the same treatment. Invoices need entity extraction and schema normalisation. Contracts need semantic chunking for full-text retrieval. Branching lets you apply specialist processing per document type without building separate pipelines.</p><h4>3. Embeddings (embeddings)</h4><p>The embeddings operator generates a vector for every chunk. It supports two providers:</p><ul><li>litellm — access to 100+ providers through a unified interface: Ollama, OpenAI, HuggingFace, Cohere, AWS Bedrock, Azure OpenAI, and more.</li><li>watsonx — IBM watsonx.ai embedding models.</li></ul><pre>{<br>  &quot;type&quot;: &quot;embeddings&quot;,<br>  &quot;name&quot;: &quot;embed&quot;,<br>  &quot;config&quot;: {<br>    &quot;provider&quot;: &quot;litellm&quot;,<br>    &quot;provider_config&quot;: {<br>      &quot;model_id&quot;: &quot;openai/nomic-embed-text&quot;,<br>      &quot;api_base&quot;: &quot;http://localhost:11434/v1&quot;,<br>      &quot;api_key&quot;: &quot;ollama&quot;<br>    },<br>    &quot;embeddings_column&quot;: &quot;embeddings&quot;,<br>    &quot;overlap_ratio&quot;: 0.1<br>  },<br>  &quot;depends_on&quot;: [&quot;merge_results&quot;]<br>}</pre><p>In most flows the embeddings operator is placed after the merge — all branches complete their specialist processing, rejoin, and then a single embeddings step generates vectors for everything. This is the pattern used across the sample flows in the repository.</p><p>The overlap_ratio controls how the operator handles chunks that exceed the model&#39;s token limit — it further subdivides them with that fractional overlap and averages the resulting sub-vectors.</p><p><strong>Why it matters:</strong> The vector is your document’s semantic fingerprint. Everything downstream — KNN retrieval, similarity ranking, hybrid search — depends on the quality and consistency of these vectors.</p><h4>4. Merge (merge)</h4><p>The merge operator rejoins two or more branches back into a single stream once parallel processing is complete. Two strategies are available:</p><ul><li>rows — concatenates tables vertically. Use when branches processed independently and you want all results in one table.</li><li>columns — joins tables horizontally on the document ID. Use when parallel branches produced different enrichments for the same documents.</li></ul><pre>{<br>  &quot;type&quot;: &quot;merge&quot;,<br>  &quot;name&quot;: &quot;merge_results&quot;,<br>  &quot;config&quot;: {<br>    &quot;merge_type&quot;: &quot;rows&quot;,<br>    &quot;input_links&quot;: [<br>      { &quot;link_name&quot;: &quot;chunk_invoices&quot; },<br>      { &quot;link_name&quot;: &quot;chunk_contracts&quot; }<br>    ]<br>  },<br>  &quot;depends_on&quot;: [&quot;chunk_invoices&quot;, &quot;chunk_contracts&quot;]<br>}</pre><p>The input_links reference the names of the upstream nodes listed in depends_on — the last node in each branch. At least two links are required.</p><p><strong>Why it matters:</strong> Without merge, every branch must terminate independently into separate indices. Merge lets you fan out for specialised processing and fan back in for a unified embeddings step and shared storage.</p><h4>5. Entity Curation (entity_curation)</h4><p>Entity curation normalises and structures the raw JSON entities produced by an LLM extraction step against a declared document class schema. It sits after extract_operator with entity extraction enabled, and uses the document_type column — set by document_classifier — to select the correct schema.</p><pre>{<br>  &quot;type&quot;: &quot;entity_curation&quot;,<br>  &quot;name&quot;: &quot;curate_entities&quot;,<br>  &quot;config&quot;: {<br>    &quot;entities_column&quot;: &quot;entities&quot;,<br>    &quot;document_type_column&quot;: &quot;document_type&quot;<br>  },<br>  &quot;depends_on&quot;: [&quot;doc_type_branch.invoice_branch&quot;]<br>}</pre><p>It applies:</p><ul><li><strong>Field filtering </strong>— only schema-defined fields are retained</li><li><strong>Type transformations </strong>— uppercase normalisation, date parsing, currency conversion</li><li><strong>Nested structure handling</strong> — line items and sub-objects are processed correctly</li></ul><p>Without a matching schema it writes an empty dict and passes data through unchanged — safe to include in mixed-type pipelines.</p><p><strong>Why it matters:</strong> LLMs extract entities in inconsistent formats. Without curation, the same date field might come back as &quot;2024-01-15&quot;, &quot;January 15 2024&quot;, or &quot;15/01/24&quot; across documents. Entity curation enforces consistency before values reach storage.</p><h4>A Real-World Use Case: Document-Type Routing</h4><p>Here is a concrete production pattern that combines all five functional operators. An enterprise document store contains a mix of invoices and contracts. Invoices need entity extraction and schema normalisation before chunking. Contracts go straight to semantic chunking for full-text search. Both end up in the same OpenSearch index.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yG1RZlXUJGxj5y-LUssXKg.png" /></figure><p>The document_classifier runs first on the raw ingested document to tag each file with a document_type. The extract operator then runs with entity extraction enabled. The branching operator routes each document down the correct path based on the document_type tag — invoices through entity curation and simple chunking, contracts directly to semantic chunking. The merge operator rejoins both streams before a single shared embeddings and storage step.</p><p>The full flow JSON:</p><pre>{<br>  &quot;flow_name&quot;: &quot;document-type-routing&quot;,<br>  &quot;global_config&quot;: {<br>    &quot;doc_column&quot;: &quot;content&quot;,<br>    &quot;storage&quot;: &quot;in-memory&quot;,<br>    &quot;execute_type&quot;: &quot;local&quot;,<br>    &quot;force_ingest&quot;: true,<br>    &quot;disable_validation&quot;: true,<br>    &quot;enable_micro_batching&quot;: false<br>  },<br>  &quot;flow&quot;: [<br>    {<br>      &quot;type&quot;: &quot;ingest_source&quot;,<br>      &quot;name&quot;: &quot;ingest&quot;,<br>      &quot;config&quot;: {<br>        &quot;provider&quot;: &quot;filesystem&quot;,<br>        &quot;connection_params&quot;: { &quot;paths&quot;: [&quot;./your-documents&quot;] },<br>        &quot;include_filter&quot;: &quot;pdf&quot;<br>      }<br>    },<br>    {<br>      &quot;type&quot;: &quot;document_classifier&quot;,<br>      &quot;name&quot;: &quot;classify&quot;,<br>      &quot;config&quot;: {<br>        &quot;provider&quot;: &quot;litellm&quot;,<br>        &quot;provider_config&quot;: {<br>          &quot;model_id&quot;: &quot;openai/granite4:latest&quot;,<br>          &quot;api_base&quot;: &quot;http://localhost:11434/v1&quot;,<br>          &quot;api_key&quot;: &quot;ollama&quot;<br>        },<br>        &quot;output_column&quot;: &quot;document_type&quot;<br>      },<br>      &quot;depends_on&quot;: [&quot;ingest&quot;]<br>    },<br>    {<br>      &quot;type&quot;: &quot;extract_operator&quot;,<br>      &quot;name&quot;: &quot;extract&quot;,<br>      &quot;config&quot;: {<br>        &quot;text_extraction&quot;: { &quot;provider&quot;: &quot;docling_library&quot; },<br>        &quot;entity_extraction&quot;: {<br>          &quot;provider&quot;: &quot;litellm&quot;,<br>          &quot;provider_config&quot;: {<br>            &quot;model_id&quot;: &quot;openai/granite4:latest&quot;,<br>            &quot;api_base&quot;: &quot;http://localhost:11434/v1&quot;,<br>            &quot;api_key&quot;: &quot;ollama&quot;<br>          },<br>          &quot;output_column&quot;: &quot;entities&quot;<br>        }<br>      },<br>      &quot;depends_on&quot;: [&quot;classify&quot;]<br>    },<br>    {<br>      &quot;type&quot;: &quot;branching&quot;,<br>      &quot;name&quot;: &quot;doc_type_branch&quot;,<br>      &quot;config&quot;: {<br>        &quot;branches&quot;: {<br>          &quot;invoice_branch&quot;: {<br>            &quot;link_name&quot;: &quot;invoices&quot;,<br>            &quot;criteria_json&quot;: {<br>              &quot;criteria_list&quot;: [<br>                { &quot;variable&quot;: &quot;document_type&quot;, &quot;operator&quot;: &quot;=&quot;, &quot;value&quot;: &quot;invoice&quot; }<br>              ],<br>              &quot;logical_operator&quot;: &quot;AND&quot;<br>            }<br>          },<br>          &quot;contract_branch&quot;: {<br>            &quot;link_name&quot;: &quot;contracts&quot;,<br>            &quot;criteria_json&quot;: {<br>              &quot;criteria_list&quot;: [<br>                { &quot;variable&quot;: &quot;document_type&quot;, &quot;operator&quot;: &quot;!=&quot;, &quot;value&quot;: &quot;invoice&quot; }<br>              ],<br>              &quot;logical_operator&quot;: &quot;AND&quot;<br>            }<br>          }<br>        }<br>      },<br>      &quot;depends_on&quot;: [&quot;extract&quot;]<br>    },<br>    {<br>      &quot;type&quot;: &quot;entity_curation&quot;,<br>      &quot;name&quot;: &quot;curate_entities&quot;,<br>      &quot;config&quot;: {<br>        &quot;entities_column&quot;: &quot;entities&quot;,<br>        &quot;document_type_column&quot;: &quot;document_type&quot;<br>      },<br>      &quot;depends_on&quot;: [&quot;doc_type_branch.invoice_branch&quot;]<br>    },<br>    {<br>      &quot;type&quot;: &quot;chunker&quot;,<br>      &quot;name&quot;: &quot;chunk_invoices&quot;,<br>      &quot;config&quot;: { &quot;chunk_type&quot;: &quot;simple&quot;, &quot;chunk_size&quot;: 512, &quot;chunk_overlap&quot;: 50 },<br>      &quot;depends_on&quot;: [&quot;curate_entities&quot;]<br>    },<br>    {<br>      &quot;type&quot;: &quot;chunker&quot;,<br>      &quot;name&quot;: &quot;chunk_contracts&quot;,<br>      &quot;config&quot;: { &quot;chunk_type&quot;: &quot;semantic&quot;, &quot;semantic_embeddings_model&quot;: &quot;nomic-embed-text&quot; },<br>      &quot;depends_on&quot;: [&quot;doc_type_branch.contract_branch&quot;]<br>    },<br>    {<br>      &quot;type&quot;: &quot;merge&quot;,<br>      &quot;name&quot;: &quot;merge_results&quot;,<br>      &quot;config&quot;: {<br>        &quot;merge_type&quot;: &quot;rows&quot;,<br>        &quot;input_links&quot;: [<br>          { &quot;link_name&quot;: &quot;chunk_invoices&quot; },<br>          { &quot;link_name&quot;: &quot;chunk_contracts&quot; }<br>        ]<br>      },<br>      &quot;depends_on&quot;: [&quot;chunk_invoices&quot;, &quot;chunk_contracts&quot;]<br>    },<br>    {<br>      &quot;type&quot;: &quot;embeddings&quot;,<br>      &quot;name&quot;: &quot;embed&quot;,<br>      &quot;config&quot;: {<br>        &quot;provider&quot;: &quot;litellm&quot;,<br>        &quot;provider_config&quot;: {<br>          &quot;model_id&quot;: &quot;openai/nomic-embed-text&quot;,<br>          &quot;api_base&quot;: &quot;http://localhost:11434/v1&quot;,<br>          &quot;api_key&quot;: &quot;ollama&quot;<br>        },<br>        &quot;embeddings_column&quot;: &quot;embeddings&quot;,<br>        &quot;overlap_ratio&quot;: 0.1<br>      },<br>      &quot;depends_on&quot;: [&quot;merge_results&quot;]<br>    },<br>    {<br>      &quot;type&quot;: &quot;vectordb&quot;,<br>      &quot;name&quot;: &quot;store&quot;,<br>      &quot;config&quot;: {<br>        &quot;provider&quot;: &quot;opensearch&quot;,<br>        &quot;doc_id_column&quot;: &quot;doc_id_hash&quot;,<br>        &quot;embeddings_column&quot;: &quot;embeddings&quot;,<br>        &quot;vector_dimension&quot;: 768,<br>        &quot;create_index&quot;: true,<br>        &quot;provider_config&quot;: {<br>          &quot;index_name&quot;: &quot;doc-type-routing&quot;,<br>          &quot;host&quot;: &quot;localhost&quot;,<br>          &quot;port&quot;: 9200,<br>          &quot;use_ssl&quot;: false,<br>          &quot;verify_certs&quot;: false<br>        },<br>        &quot;feature_mappings&quot;: [<br>          { &quot;feature_name&quot;: &quot;doc_id_hash&quot;, &quot;mapped_column_name&quot;: &quot;pk&quot; },<br>          { &quot;feature_name&quot;: &quot;content&quot;,     &quot;mapped_column_name&quot;: &quot;text&quot; },<br>          { &quot;feature_name&quot;: &quot;name&quot;,        &quot;mapped_column_name&quot;: &quot;doc_name&quot; },<br>          { &quot;feature_name&quot;: &quot;embeddings&quot;,  &quot;mapped_column_name&quot;: &quot;vector_embeddings&quot; }<br>        ]<br>      },<br>      &quot;depends_on&quot;: [&quot;embed&quot;]<br>    }<br>  ]<br>}</pre><p>Notice how each document type gets exactly the processing it needs — invoices go through entity extraction and schema normalisation, contracts go through semantic chunking — and both converge at a single embeddings and storage step. This is the kind of sophisticated document routing that normally requires hundreds of lines of custom orchestration code. In Docling Pipelines it is a JSON file.</p><h4>The Takeaway</h4><p>If you’re building AI applications that consume documents — and in 2026, who isn’t? — getting data into the right shape before it reaches a model isn’t optional. It’s the difference between a pipeline that works and one that just runs.</p><p>Functional Operators in Docling Pipelines give you a modular, composable toolkit to solve this problem inside your pipeline rather than in custom glue code scattered across scripts. They help you:</p><ul><li><strong>Split intelligently</strong> — choose simple, semantic, or structure-aware chunking based on your document type and retrieval needs</li><li><strong>Route by content</strong> — use document_classifier and branching to send each document type down exactly the right processing path</li><li><strong>Curate extracted entities</strong> — normalise LLM-extracted fields into consistent, schema-validated structures with entity_curation</li><li><strong>Embed efficiently</strong> — generate vectors after all specialist processing is done, in a single unified step</li><li><strong>Rejoin cleanly</strong> — use merge to bring parallel branches back together before storage, keeping your index unified</li></ul><p>The best part? They’re open source. You can start using them today.</p><p>👉 Explore <strong>Docling Pipelines</strong> on <strong>GitHub</strong>: <a href="https://github.com/IBM/docling-pipelines">https://github.com/IBM/docling-pipelines</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=db335bf2a349" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why Your LLM Architecture Is Breaking (and How Hexagonal Design Fixes It)]]></title>
            <link>https://medium.com/@remya.p/why-your-llm-architecture-is-breaking-and-how-hexagonal-design-fixes-it-c44e14a54035?source=rss-b8da40334213------2</link>
            <guid isPermaLink="false">https://medium.com/p/c44e14a54035</guid>
            <category><![CDATA[hexagonal-architecture]]></category>
            <category><![CDATA[ports-and-adapters]]></category>
            <category><![CDATA[software-design]]></category>
            <category><![CDATA[llm]]></category>
            <dc:creator><![CDATA[Remya P]]></dc:creator>
            <pubDate>Wed, 29 Jul 2026 04:32:42 GMT</pubDate>
            <atom:updated>2026-07-29T04:32:42.449Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Designing scalable, provider-agnostic AI systems that actually last</em></p><h3>Introduction: The Second LLM Problem</h3><p>The first time you integrate a Large Language Model (LLM) into your system, it feels effortless.</p><p>You import an SDK, call an API, and ship a feature.</p><p>Then comes the second requirement:</p><ul><li>“Can we support another provider?”</li><li>“Can we run this locally?”</li><li>“Can we add embeddings?”</li></ul><p>And suddenly, everything breaks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MIrlJeSFa-1R2artweDcVA.png" /></figure><p>What looked like fast progress turns into architectural debt. This article explores why that happens — and how <strong>Hexagonal Architecture (Ports and Adapters)</strong> solves it in a clean, scalable way .</p><h3>The Hidden Cost of Naive LLM Integration</h3><p>Most teams start with direct integration:</p><pre># Business logic coupled directly to one provider<br>FUNCTION summarize_document(text):<br>    response = OpenAI.chat.create(<br>        model = &quot;gpt-4o-mini&quot;,<br>        messages = [{ role: &quot;user&quot;, content: &quot;Summarize: &quot; + text }]<br>    )<br>    RETURN response.first_choice.message.content</pre><p>It works. Until it doesn’t.</p><h3>What goes wrong over time</h3><ul><li>Provider SDKs creep into business logic</li><li>Authentication and retry logic get duplicated</li><li>Switching providers becomes a refactor nightmare</li><li>Unit testing requires mocking SDK internals</li><li>API changes ripple across the codebase</li></ul><p>This is a classic case of <strong>tight coupling</strong> — and LLMs amplify the problem because they evolve rapidly.</p><h3>The Principle That Changes Everything</h3><blockquote><strong><em>Your business logic should not know which LLM provider you’re using.</em></strong></blockquote><p>If it does, your architecture is already fragile.</p><h3>Enter Hexagonal Architecture</h3><p>Hexagonal Architecture (also called <em>Ports and Adapters</em>) solves this by isolating your core logic from external systems.</p><h3>Three Core Concepts</h3><ul><li><strong>Ports</strong> → Define <em>what your system needs</em></li><li><strong>Adapters</strong> → Define <em>how providers fulfill it</em></li><li><strong>Factory</strong> → Decides <em>which provider to use</em></li></ul><p>The key idea:<br> 👉 Dependencies always point inward, towards your core logic.</p><h3>What This Looks Like in an LLM System</h3><p>Instead of calling providers directly, your system is structured like this:</p><h3>1. Application Layer</h3><p>Your pipelines, operators, and services.</p><h3>2. Ports (Interfaces)</h3><p>Define capabilities such as:</p><ul><li>Text generation (Inference)</li><li>Embeddings</li><li>Detection (PII, toxicity, etc.)</li></ul><h3>3. Factory</h3><p>Chooses the correct adapter based on configuration.</p><h3>4. Adapters</h3><p>Handle all provider-specific logic:</p><ul><li>API calls</li><li>Authentication</li><li>Parsing</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zUYkCT6KvkXp6knD9aKqOQ.png" /></figure><h3>Designing the Right Ports</h3><p>A common mistake is creating one giant “LLM interface.”</p><p>Don’t.</p><p>Instead, model <strong>capabilities</strong>, not providers:</p><ul><li><strong>Inference Port</strong> → Chat &amp; generation</li><li><strong>Embedding Port</strong> → Vector creation</li><li><strong>Detection Port</strong> → Specialised analysis</li></ul><pre>// ─── Inference Port ───────────────────────────────────────────<br>INTERFACE LLMInferencePort<br>    ABSTRACT FUNCTION generate(prompt, ...options) → String<br><br><br>// ─── Embedding Port ───────────────────────────────────────────<br>INTERFACE LLMEmbeddingPort<br>    ABSTRACT FUNCTION generate_embeddings(text) → List&lt;Float&gt;<br><br><br>// ─── Detection Port ───────────────────────────────────────────<br>INTERFACE TextDetectionPort<br>    ABSTRACT FUNCTION detect(text, detection_types, ...options) → Map&lt;String, Any&gt;</pre><p>In a well-factored LLM system, you model capabilities separately: generation, embeddings, and specialised detection are different contracts.</p><p>This keeps your system:</p><ul><li>Modular</li><li>Extensible</li><li>Honest about capabilities</li></ul><h3>Adapters: Where Complexity Belongs</h3><p>Adapters are the only place that should know:</p><ul><li>API endpoints</li><li>Authentication details</li><li>Retry strategies</li><li>Response formats</li></ul><p>Everything else stays clean.</p><p>For example:</p><pre>// WatsonXAdapter implements ALL THREE capability interfaces.<br>// This is the ONLY class that knows about WatsonX internals.<br><br>CLASS WatsonXAdapter IMPLEMENTS LLMInferencePort, LLMEmbeddingPort, TextDetectionPort<br><br>    // ── Inference capability ──────────────────────────────────<br>    FUNCTION generate(prompt, ...options) → String<br>        // Call WatsonX generation endpoint<br>        // Handle auth, retries, response parsing here<br>        RETURN &quot;provider response&quot;<br><br>    // ── Embedding capability ──────────────────────────────────<br>    FUNCTION generate_embeddings(text) → List&lt;Float&gt;<br>        // Call WatsonX embedding endpoint<br>        // Handle auth, retries, response parsing here<br>        RETURN [0.12, 0.34, 0.56]<br><br>    // ── Detection capability ──────────────────────────────────<br>    FUNCTION detect(text, detection_types, ...options) → Map&lt;String, Any&gt;<br>        // Call WatsonX detection endpoint<br>        // Handle auth, retries, response parsing here<br>        RETURN { success: true, detections: [] }<br><br>END CLASS</pre><p>Some adapters implement multiple ports, while others support only a subset of capabilities. The factory enforces those boundaries.</p><p>The adapter owns provider-specific concerns, but it exposes only port-shaped methods to the rest of the application.</p><h3>Two common patterns</h3><p><strong>Multi-capability adapters</strong></p><ul><li>One provider supports inference + embeddings + detection</li></ul><p><strong>Single-capability adapters</strong></p><ul><li>Local embedding models</li><li>Gateway routing layers</li></ul><p>Both are valid. The key is clarity — not uniformity.</p><h3>The Factory: Your Control Tower</h3><pre>CLASS LLMAdapterFactory<br><br>    // ── Inference adapter ─────────────────────────────────────<br>    STATIC FUNCTION create_inference_adapter(provider, model_id) → LLMInferencePort<br>        IF provider == &quot;watsonx&quot;  THEN RETURN new WatsonXAdapter()<br>        IF provider == &quot;litellm&quot;  THEN RETURN new LiteLLMAdapter()<br>        RAISE Error(&quot;Unsupported inference provider: &quot; + provider)<br><br>    // ── Embedding adapter ─────────────────────────────────────<br>    STATIC FUNCTION create_embedding_adapter(provider, model_id) → LLMEmbeddingPort<br>        IF provider == &quot;watsonx&quot;     THEN RETURN new WatsonXAdapter()<br>        IF provider == &quot;huggingface&quot; THEN RETURN new HuggingFaceAdapter()<br>        RAISE Error(&quot;Unsupported embedding provider: &quot; + provider)<br><br>    // ── Detection adapter ─────────────────────────────────────<br>    STATIC FUNCTION create_text_detection_adapter(provider, model_id) → TextDetectionPort<br>        IF provider == &quot;watsonx&quot; THEN RETURN new WatsonXAdapter()<br>        RAISE Error(&quot;Unsupported text detection provider: &quot; + provider)<br><br>END CLASS</pre><p>The factory ensures:</p><ul><li>Provider selection is configuration-driven</li><li>Unsupported combinations are caught early</li><li>The rest of the system never sees concrete implementations</li></ul><blockquote><strong><em>Switching providers becomes a config change — not a code change.</em></strong></blockquote><h3>Before vs After: The Real Difference</h3><h3>❌ Before (Naive Integration)</h3><ul><li>LLM calls scattered across the codebase</li><li>Hardcoded providers</li><li>Duplicate logic</li><li>Fragile tests</li></ul><h3>✅ After (Hexagonal Architecture)</h3><p>The factory selects and returns a concrete adapter as the corresponding port interface.</p><ul><li>Clean separation of concerns</li><li>Provider-agnostic business logic</li><li>Easy testing with mocks</li><li>Plug-and-play provider support</li></ul><h3>Real-World Impact</h3><p>In production AI systems, this approach enables:</p><ul><li>Running <strong>local models in dev</strong> and <strong>cloud models in prod</strong></li><li>Adding new capabilities without rewriting pipelines</li><li>Experimenting with providers quickly</li><li>Avoiding vendor lock-in</li></ul><p>Most importantly — it lets your system evolve without breaking.</p><h3>Key Design Insights</h3><p>A few lessons that make a big difference:</p><ul><li><strong>Design for capabilities, not providers</strong></li><li><strong>Use keyword-only arguments to avoid silent bugs</strong></li><li><strong>Encapsulate all provider logic inside adapters</strong></li><li><strong>Keep provider selection centralised in one factory or composition layer.</strong></li></ul><h3>Final Thought</h3><p>LLMs are evolving fast. Your architecture needs to evolve faster.</p><blockquote><strong><em>The goal isn’t just to integrate an LLM.<br>It’s to make your system independent of it.</em></strong></blockquote><p>When your processing logic becomes completely blind to the provider, you’ve built something that scales.</p><h3>If You’re Building AI Systems…</h3><p>Start simple — but don’t stay naive for too long.</p><p>Because the second LLM integration is where architecture begins.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c44e14a54035" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[RAG Explained Simply: Why AI Gives Wrong Answers (and How to Fix It)]]></title>
            <link>https://medium.com/@remya.p/rag-explained-simply-why-ai-gives-wrong-answers-and-how-to-fix-it-67e865f4b225?source=rss-b8da40334213------2</link>
            <guid isPermaLink="false">https://medium.com/p/67e865f4b225</guid>
            <category><![CDATA[retrieval-augmented-gen]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Remya P]]></dc:creator>
            <pubDate>Tue, 28 Jul 2026 10:46:25 GMT</pubDate>
            <atom:updated>2026-07-28T10:46:25.574Z</atom:updated>
            <content:encoded><![CDATA[<p>Artificial Intelligence tools like ChatGPT are powerful.</p><p>They can write, explain, and even code.</p><p>But they have a major limitation:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/742/1*DjYLiQQX-b0Hx0tmdlWRzA.png" /></figure><ul><li>They don’t know <em>your</em> data</li><li>They can give incorrect answers</li><li>They can be outdated</li></ul><p>So how do we fix this?</p><p>That’s where <strong>RAG (Retrieval-Augmented Generation)</strong> comes in.</p><h3>The Problem with AI</h3><p>Most AI models generate answers based on what they learned during training.</p><p>This means:</p><ul><li>They don’t have access to your company documents</li><li>They don’t know real-time updates</li><li>They can “hallucinate” (make things up)</li></ul><p>So even if the AI sounds confident, it might still be wrong.</p><h3>What is RAG?</h3><p>RAG stands for <strong>Retrieval-Augmented Generation</strong>.</p><p>In simple terms:</p><p>👉 It combines <strong>search + AI generation</strong></p><p>Instead of answering from memory, the AI:</p><ol><li>Retrieves relevant data</li><li>Uses that data to generate an answer</li></ol><h3>How RAG Works (Step-by-Step)</h3><p>Here’s a simple flow:</p><ol><li>You ask a question</li><li>The system searches relevant documents</li><li>It sends that context to the AI</li><li>The AI generates an answer based on that data</li></ol><p>So now the answer is:</p><ul><li>More accurate</li><li>More relevant</li><li>Based on real information</li></ul><h3>Simple Example</h3><p>Imagine asking:</p><p>“What’s our company’s leave policy?”</p><p>Without RAG:<br> 👉 AI guesses or gives a generic answer</p><p>With RAG:<br> 👉 It retrieves your company documents<br> 👉 Then answers based on them</p><h3>Think of It Like an Exam</h3><ul><li>Without RAG → Closed book exam</li><li>With RAG → Open book exam</li></ul><p>Which one would you trust more?</p><h3>🚀 Why RAG Matters</h3><p>RAG is becoming essential for real-world AI applications because it:</p><ul><li>Uses your own data</li><li>Reduces incorrect answers</li><li>Keeps information up-to-date</li><li>Works well for enterprise use cases</li></ul><h3>What Happens Behind the Scenes?</h3><p>There are a few key components:</p><ul><li><strong>Chunking</strong></li><li><strong>Embeddings</strong></li><li><strong>Vector Databases</strong></li><li><strong>Retrieval</strong></li><li><strong>LLMs</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9dOhzH-Phl0iqK-v9eZgxg.png" /></figure><h3>Where is RAG Used?</h3><p>You’ll find RAG in:</p><ul><li>AI chatbots</li><li>Document Q&amp;A systems</li><li>Enterprise search tools</li><li>Knowledge assistants</li></ul><h3>Challenges in RAG</h3><p>RAG is powerful, but not perfect.</p><p>Some challenges include:</p><ul><li>Choosing the right chunk size</li><li>Ensuring accurate retrieval</li><li>Handling noisy or messy data</li><li>Evaluating performance</li></ul><h3>Key Insight</h3><p>👉 Better data + better retrieval = better AI</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HLB04z6ZTILWIZk4JtB6Qw.png" /></figure><h3>Final Thoughts</h3><p>If you’re working with AI or LLMs, understanding RAG is no longer optional — it’s essential.</p><p>It’s the difference between:<br> ❌ Generic AI<br> ✅ Useful, reliable AI</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=67e865f4b225" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>