---
title: Work with unstructured data
description: Learn how to store, govern, and process unstructured data such as documents, images, and audio on Databricks.
canonical_url: https://docs.databricks.com/gcp/en/unstructured/
---

# Work with unstructured data

Store, govern, and process unstructured files, such as documents, images, audio, and video, alongside structured data in Unity Catalog.

## Get started

Try an end-to-end example to see how the pieces fit together.

| Guide                                                                                                                    | Description                                                                      |
| ------------------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------- |
| [FILE functions quickstart](https://docs.databricks.com/gcp/en/sql/language-manual/sql-ref-file-functions-quickstart.md) | Create a table with a `FILE` column and work with files using `FILE` functions.  |
| [Unstructured data tutorial](https://docs.databricks.com/gcp/en/volumes/unstructured-data-tutorial.md)                   | Store, query, process, and share unstructured files using Unity Catalog volumes. |

## Store and reference files

Choose how to store and reference files based on whether you access them by path or as values in a table.

| Approach                                                                         | Description                                                                                                                                                                                                                                                      |
| -------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [Unity Catalog volumes](https://docs.databricks.com/gcp/en/volumes/index.md)     | Govern storage for non-tabular files. Upload, organize, and access files in a volume by path.                                                                                                                                                                    |
| [FILE type](https://docs.databricks.com/gcp/en/unstructured/file.md)             | Reference files and their metadata as first-class values in a table, governed by access to the rows that reference them. For the type definition, see the [FILE type reference](https://docs.databricks.com/gcp/en/sql/language-manual/data-types/file-type.md). |
| [Binary data source](https://docs.databricks.com/gcp/en/query/formats/binary.md) | Store the raw bytes of a file in a `BINARY` column.                                                                                                                                                                                                              |
| [Image data source](https://docs.databricks.com/gcp/en/query/formats/image.md)   | Read image files into a DataFrame.                                                                                                                                                                                                                               |

## Process files

After you store your files in Unity Catalog, extract content, run custom code, and build pipelines.

| Task                                                                                                      | Description                                                                                                                                                            |
| --------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [Parse documents](https://docs.databricks.com/gcp/en/sql/language-manual/functions/ai_parse_document.md)  | Extract structured content from documents with `ai_parse_document` and other [AI functions](https://docs.databricks.com/gcp/en/large-language-models/ai-functions.md). |
| [Process files with UDFs](https://docs.databricks.com/gcp/en/unstructured/file-udfs.md)                   | Read file metadata and bytes, and generate new files, using your own code in UDFs.                                                                                     |
| [Ingest files as FILE references](https://docs.databricks.com/gcp/en/ingestion/file.md)                   | Load files into tables as `FILE` references.                                                                                                                           |
| [Build a file pipeline](https://docs.databricks.com/gcp/en/ldp/tutorial-file-pipelines.md)                | Process files end to end in a pipeline.                                                                                                                                |
| [Analyze files in volumes with a Genie Agent](https://docs.databricks.com/gcp/en/genie-agents/volumes.md) | Attach volumes to a Genie Agent so users can ask questions across the files they contain.                                                                              |

## Govern files

Control who can access files and manage their lifecycle with Unity Catalog.

| Capability                                                                                                   | Description                                                                           |
| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------- |
| [Volume access control](https://docs.databricks.com/gcp/en/volumes/index.md)                                 | Grant privileges on volumes to control who can read and write files by path.          |
| [FILE MANAGED lifecycle](https://docs.databricks.com/gcp/en/unstructured/file.md#managed-and-external-files) | Let Databricks manage the storage and lifecycle of the files that a table references. |
| [Row filters on FILE columns](https://docs.databricks.com/gcp/en/unstructured/file-udfs.md#row-filters)      | Restrict access to files by applying row filters to the rows that reference them.     |
