Optionalai_gateway_id
ai_gateway_id?: string
Optionalai_search_model
ai_search_model?: string
Optionalcache
cache?: boolean
Optionalcache_threshold
cache_threshold?:
| "super_strict_match"
| "close_enough"
| "flexible_friend"
| "anything_goes"
Optionalchunk
chunk?: boolean
Optionalchunk_overlap
chunk_overlap?: number
Optionalchunk_size
chunk_size?: number
custom_metadata?: {
data_type: "text" | "number" | "boolean" | "datetime";
field_name: string;
}[]
Optionalembedding_model
embedding_model?: string
Optionalfusion_method
fusion_method?: "max" | "rrf"
Optionalhybrid_search_enabled
hybrid_search_enabled?: boolean
id
id: string
Optionalindex_method
index_method?: { keyword?: boolean; vector?: boolean }
Optionalindexing_options
indexing_options?: { keyword_tokenizer?: "porter" | "trigram" } | null
Optionalmax_num_results
max_num_results?: number
metadata?: Record<string, unknown>
Optionalnamespace
namespace?: string
Optionalreranking
reranking?: boolean
Optionalreranking_model
reranking_model?: string
Optionalretrieval_options
retrieval_options?:
| {
boost_by?: {
direction?: "asc"
| "desc"
| "exists"
| "not_exists";
field: string;
}[];
keyword_match_mode?: "and"
| "or";
}
| null
Optionalrewrite_model
rewrite_model?: string
Optionalrewrite_query
rewrite_query?: boolean
Optionalscore_threshold
score_threshold?: number
Optionalsource
source?: string
Optionalsource_params
source_params?: unknown
Optionalsync_interval
sync_interval?: 3600 | 7200 | 14400 | 21600 | 43200 | 86400
Optionaltoken_id
token_id?: string
Optionaltype
type?: "r2" | "web-crawler" | string
Similarity threshold for cache hits. Stricter = fewer cache hits but higher relevance.