Turning unstructured data into embeddings a model can retrieve from
Building a RAG pipeline on Google Cloud starts with converting unstructured sources (PDFs, images, HTML) into clean text, chunking that text appropriately, and generating vector embeddings that are indexed for similarity search. Google Cloud offers both fully managed RAG solutions and composable building blocks (parsing, embedding, vector storage) depending on how much control you need over the pipeline.
1 · Learn the must-know
- Use Document AI to OCR and parse unstructured documents (scanned PDFs, images, forms) into structured text before chunking, since embedding models require clean text input.
- Split parsed text into overlapping chunks (commonly a few hundred tokens each) to stay within embedding model input limits while preserving enough context for accurate retrieval.
- Vertex AI's embedding models (text and multimodal) convert chunks into dense vectors; the multimodal embedding model can jointly embed text, images, and video into the same vector space.
- Vertex AI Vector Search (formerly Matching Engine) provides scalable, low-latency approximate nearest neighbor (ANN) retrieval over embeddings, while BigQuery and AlloyDB also support vector similarity search for SQL-integrated or smaller-scale use cases.
- Vertex AI Search (under Agent Builder) offers an out-of-the-box RAG solution that handles ingestion, chunking, embedding, indexing, retrieval, and grounded generation without building a custom pipeline.
- Store metadata (source document, page number, timestamp) alongside each embedding to support filtering and citation, and re-embed/re-index whenever source documents are updated to avoid retrieving stale content.
2 · Check your understanding
A data engineering team is building a retrieval-augmented generation (RAG) system that answers questions from a library of 150-page technical manuals stored as PDFs in Cloud Storage. Before generating embeddings, they need to prepare the extracted text so that retrieval returns focused, relevant passages. What should they do?
What you have tried across GCP PDE's objectives, not a readiness score.
Designing data processing systems~22% of the exam0 of 17 tried
Ingesting and processing the data~25% of the exam0 of 11 tried
Storing the data~20% of the exam0 of 13 tried
Preparing and using data for analysis~15% of the exam0 of 11 tried
Maintaining and automating data workloads~18% of the exam0 of 15 tried
3 · Keep going
Ready for more? Take a weighted mock or try free practice questions.