Every AI Search instance comes with built-in storage and a built-in vector index, powered by R2 and Vectorize. You can upload files directly to an instance without setting up either service yourself.
Upload files to an instance using the Items API (Workers binding or REST API) or the Items tab in the dashboard (AI > AI Search > your instance > Items). You can also list, view, and delete uploaded files through the Items API or the dashboard.
For supported file types, refer to Supported file types.
Files uploaded to built-in storage are indexed immediately. External data sources like websites, R2 buckets, and D1 databases are indexed on a sync schedule.
An instance can use built-in storage alongside an external data source. The available external data sources are:
- Website: crawl and index a website that you own
- R2 Bucket: index documents stored in a Cloudflare R2 bucket
- D1 database: index rows returned by a SQL query against a Cloudflare D1 database
For example, an instance can be backed by a website for shared documentation while also accepting file uploads through the Items API for additional content.
Built-in storage also holds the Markdown content that AI Search extracts from each indexed file in a connected data source. This content counts toward AI Search storage.
Storage, vector indexing, Browser Run crawling, and Workers AI embedding and reranking usage are included in AI Search billing. Storage is billed as AI Search storage rather than on your R2 bill. Other usage, such as generation through your AI Gateway, is billed separately. For full details, refer to Limits and pricing.