Glossary
Data ingestion
The process of collecting data from its sources and bringing it into a system where it can be stored, processed or searched.
Data ingestion is the process of collecting data from where it is produced and bringing it into a system that will store, process or search it. Sources can be databases, application APIs, files, web pages, sensors or event streams. The destination might be a data warehouse, a data lake, a search index or the knowledge base behind an AI application. Ingestion is the first stage of almost every data pipeline, and its job is to get data in completely, in order and without duplicates, before anything else happens to it.
How data ingestion works
An ingestion job connects to a source, reads new or changed data and writes it to a landing area in the destination. Connectors handle authentication, pagination and limits for each source, and a checkpoint records how far the last run got so the next one can continue from there. Some ingestion also validates records, converts formats or attaches metadata such as the source and arrival time. Heavier reshaping usually belongs to the transform stage of ETL or ELT, so ingestion overlaps with the extract and load steps while transformation happens later in the wider data pipeline.
Batch, streaming and event-driven ingestion
Mode | How it runs | Typical latency | Typical use |
|---|---|---|---|
Batch | Scheduled runs that move data in bulk | Hours to a day | Nightly reporting, periodic document syncs |
Micro-batch | Small batches every few seconds or minutes | Seconds to minutes | Near-real-time dashboards |
Streaming | Each event processed as it arrives | Milliseconds to seconds | Fraud signals, activity feeds |
Event-driven | Started by a change, upload or callback | Depends on the trigger | Processing files as users upload them |
Batch is the simplest to operate and the easiest to rerun. Streaming suits data that loses value quickly but needs more infrastructure to run. For documents and files, event-driven ingestion is common: an upload or a webhook starts processing, and polling the source is the fallback when no event is available. Webhooks vs polling compares the two.
Data ingestion for RAG and AI agents
For retrieval-augmented generation, ingestion means turning files into searchable text. Most of the input is unstructured data, so each format needs its own document extraction path: PDF parsing for documents, OCR for scans and images, speech to text for audio, and a headless browser for pages that render with JavaScript. A document loader reads each file, a text splitter breaks it into chunks, and the chunks are embedded and written to an index. Together these steps are usually called a RAG pipeline.
Quality at this stage sets a ceiling on retrieval quality later. A table split across pages, a scanned contract read without OCR or a transcript without timestamps limits what any retriever can find. The PDF is the last unsolved file format looks at why documents are the hardest part.
Ingestion problems to plan for
Ingestion tends to fail in a few repeatable ways. Sources change their schema or file layout, and a connector drops fields without raising an error. Retried jobs load the same records twice unless writes are idempotent or followed by deduplication. Source APIs push back with rate limiting, which calls for exponential backoff. And one-time ingestion goes out of date: in an AI system that shows up as stale knowledge, handled with incremental indexing of whatever changed.
Data ingestion and Exabase
Exabase handles ingestion of unstructured content for AI search; connecting to your own databases and SaaS sources stays in your code. Files go in through a signed upload flow: the upload endpoint returns a signed URL, you PUT the file to it, and a second call creates the file resource. Files of up to 5 GB are accepted, subject to plan limits. URLs can be saved as bookmarks, and Exabase fetches the page, extracts its metadata and indexes the content. Everything stored as Resources is processed and indexed on arrival for Deep Search, including transcripts for audio and scene analysis for video, with no chunking or embedding step to build. The creating resources guide covers each resource type.
When you need structured output without storing it, Extract processes a file or URL and returns JSON or Markdown, delivered by polling or webhook. For ongoing ingestion, a Worker can run on a schedule inside a Base to re-extract changed documents and tag new ones, as the knowledge base solution describes. Each tenant can have its own Base, so ingested content stays isolated per customer. Teams comparing hosted options can start with best RAG infrastructure.
FAQs
What is data ingestion?
Data ingestion is the process of collecting data from its sources and bringing it into a system such as a warehouse, data lake, search index or AI application.
What is the difference between data ingestion and ETL?
Data ingestion is the step that brings data in. ETL is a complete process that extracts, transforms and loads data, so ingestion overlaps with its extract and load steps and leaves the transformation to later stages.
What are the types of data ingestion?
The main types are batch, which moves data on a schedule, streaming, which processes each event as it arrives, and micro-batch, which sits between them. Event-driven ingestion, started by uploads or webhooks, is common for files.
What is data ingestion in RAG?
In RAG, data ingestion extracts text from documents and media, splits it into chunks, embeds it and writes it to the index that the retriever searches.
How do you keep ingested data up to date?
Track changes at each source and re-ingest only what changed instead of reloading everything. Remove deleted documents from the index too, or the agent will keep citing them. How to measure knowledge base staleness covers how to check the result.
Can Exabase ingest audio and video?
Yes. Audio and video stored as Resources are transcribed and indexed automatically, and video is also split into scenes with each scene’s visual content analysed, so both can be searched with Deep Search.
Related pages: Data pipeline, ETL, Document loader, RAG pipeline, Incremental indexing, Document extraction, Extract, Knowledge base, File extraction, Knowledge bases use case, Stale knowledge.