Data ingestion
Data ingestion is the process of collecting data from its sources and loading it into a system where it can be stored, processed and analysed, or, in AI, indexed so a model can draw on it.
Before data can be analysed or used by an AI system, it has to be gathered from wherever it lives and moved somewhere useful. That step is data ingestion. Sources can include finance systems, customer databases, software-as-a-service apps, sensors and social media; destinations include data lakes, data warehouses, lakehouses and ordinary databases. Some ingestion pipelines simply copy raw data, while others validate, filter or transform it on the way.
There are three broad rhythms. Batch ingestion collects data over a period, such as a day's sales, and loads it in one go, often overnight. Streaming ingestion brings data in continuously as it is created, with minimal delay. Micro-batch ingestion sits in between, loading small batches often enough to be nearly current. Two related terms describe when data is reshaped: ETL (extract, transform, load) transforms it before loading, while ELT loads raw data first and transforms it inside the destination.
AI assistants that answer questions from a company's own documents depend on ingestion. In Amazon Bedrock's knowledge bases, for example, ingestion turns raw files into vector embeddings that can be searched. Each document is parsed, split into chunks, converted into embeddings and indexed in a vector store. Syncing is incremental: only documents added, changed or deleted since the last sync are processed.
The common problems are mundane but costly. A source system changes its fields and a pipeline that was not updated breaks or mismatches data, a problem known as schema drift. Complex pipelines can quietly undermine data quality along the way. Moving sensitive data between systems widens the opportunities for a breach. Widely used tools include Apache Kafka for streaming and cloud services such as AWS Glue and Amazon Kinesis.
The practical consequence is that an AI system is only as current as its last ingestion. A chatbot built on a knowledge base will keep giving the old answer about a policy until the updated document has been ingested again.
Data ingestion is collecting data from its sources, such as apps, databases, files and sensors, and loading it into a storage or processing system such as a data warehouse, data lake or search index, so it can be analysed or used. Batch ingestion gathers data over a period and loads it in one go, which is simple and efficient but not immediate. Streaming ingestion loads data continuously as it is created, which keeps systems current but takes more resources to run. Not quite. Data ingestion is the broad process of bringing data into a system. ETL, extract, transform and load, is one way of doing it in which data is reshaped before it is loaded; ELT loads it first and transforms it afterwards. In retrieval-augmented generation, ingestion is the step that prepares documents for search: they are parsed, split into chunks, turned into embeddings and stored in a vector index. Documents must be ingested again after they change, or the system will retrieve the old version.Common questions
What is data ingestion?
What is the difference between batch and streaming ingestion?
Is data ingestion the same as ETL?
What does ingestion mean in retrieval-augmented generation?
Search for "data ingestion batch vs streaming", "ETL vs ELT" or "knowledge base ingestion RAG" to see the technique in analytics and in AI. Reliable sources include the official documentation of cloud platforms and open-source tools such as Apache Kafka, and technical explainers from established vendors. Vendor guides naturally favour their own products, so compare documentation from more than one provider.Finding more
Working out what this means for your business?
Aileron Shift builds the systems behind this site: AI newsrooms that research, write and publish on their own, marketing automation and WordPress hosting for companies that need to move faster than their competitors.