AI Info Guide
AI news for everyone

Google BigQuery makes AI.PARSE_DOCUMENT and AI.CHUNK_DOCUMENT generally available for SQL RAG pipelines

December 2, 2026 · Central Time

Google Cloud has moved two native Document Intelligence SQL functions, AI.CHUNK_DOCUMENT and AI.PARSE_DOCUMENT, to general availability in BigQuery, enabling data teams to parse complex PDFs, extract HTML tables, generate embeddings, and run semantic retrieval entirely inside GoogleSQL without deploying external OCR workers or standalone vector databases.

Detailed in the Google Cloud Blog, the functions pair with AI.EMBED (including the built-in embeddinggemma-300m model or Gemini endpoints) and AI.SEARCH over files stored in Google Cloud Storage.

AI.CHUNK_DOCUMENT acts as a table-valued function that splits PDFs along visual layout boundaries such as headings, lists, paragraphs, and tables, while recording start_page and end_page metadata and letting callers tune the target maximum chunk size up to 2,000 tokens with a default of 1,000.

AI.PARSE_DOCUMENT acts as a scalar function returning a native JSON tree containing block types, normalized bounding-box coordinates for UI citations, and structured HTML tables that preserve merged cells. Teams can parse once with AI.PARSE_DOCUMENT and feed the stored raw-docai output into AI.CHUNK_DOCUMENT later without re-calling Document AI, or filter specific pages and redact sensitive personal information in SQL before paying generative model token costs.

For buyers and infrastructure teams, BigQuery automatically provisions and reuses a single Document AI layout parser processor per project with no idle holding fee, authenticating directly with end-user credentials over Cloud Storage URIs or object tables. Customers pay standard Document AI per-page processing rates and BigQuery slot usage.

However, the blog post leaves exact commercial rate cards and technical quotas outside its text: it does not publish per-page Document AI pricing, AI.EMBED slot or Gemini endpoint charges, supported file formats beyond PDFs, maximum page or file-size limits, or regional availability restrictions, and it omits independent retrieval-accuracy or latency benchmarks against external OCR-plus-LLM ingestion tools. This release fits data engineering and AI teams on Google Cloud storing PDFs in Cloud Storage who want SQL-native, bounding-box-cited RAG pipelines with no idle processor fees; teams should verify current Document AI per-page rates and BigQuery slot consumption on sample PDFs before ingesting multi-million-page archives.

Original sources

↑ Back to top