AiSearch
Cloudflare AI Search provides RAG (Retrieval-Augmented Generation) capabilities for building AI-powered search and chat applications.Props
string
Name of the AI Search instance.
R2Bucket | AiSearchR2Source | AiSearchWebCrawlerSource
required
Data source for indexing.
AiSearch.Model
default:"@cf/meta/llama-3.3-70b-instruct-fp8-fast"
Text generation model for AI responses.
AiSearch.EmbeddingModel
default:"@cf/baai/bge-m3"
Embedding model for vectorization.
boolean
default:"true"
Enable chunking of source documents.
number
default:"256"
Size of each chunk (minimum 64).
number
default:"10"
Overlap between chunks (0-30).
number
default:"10"
Maximum search results (1-50).
number
default:"0.4"
Minimum match score (0-1).
boolean
default:"false"
Enable result reranking.
AiSearch.RerankingModel
default:"@cf/baai/bge-reranker-base"
Reranking model.
boolean
default:"false"
Enable query rewriting for better retrieval.
boolean
default:"false"
Enable similarity caching.
boolean
default:"true"
Whether to index the source documents when the AI Search instance is created.
boolean
default:"true"
Whether to delete the AI Search instance when removed from Alchemy.
boolean
default:"false"
Whether to adopt the AI Search instance if it already exists.
Output
string
The unique ID of the AI Search instance.
string
The name of the AI Search instance.
string
Source bucket or domain name.
r2 | web-crawler
The source type.
string
The name of the underlying Vectorize index.