SongGuess
    Preparing search index...
    type AiSearchInstanceInfo = {
        ai_gateway_id?: string;
        ai_search_model?: string;
        cache?: boolean;
        cache_threshold?:
            | "super_strict_match"
            | "close_enough"
            | "flexible_friend"
            | "anything_goes";
        chunk?: boolean;
        chunk_overlap?: number;
        chunk_size?: number;
        created_at?: string;
        custom_metadata?: {
            data_type: "text"
            | "number"
            | "boolean"
            | "datetime";
            field_name: string;
        }[];
        embedding_model?: string;
        fusion_method?: "max"
        | "rrf";
        hybrid_search_enabled?: boolean;
        id: string;
        index_method?: { keyword?: boolean; vector?: boolean };
        indexing_options?: { keyword_tokenizer?: "porter" | "trigram" } | null;
        max_num_results?: number;
        metadata?: Record<string, unknown>;
        modified_at?: string;
        namespace?: string;
        paused?: boolean;
        reranking?: boolean;
        reranking_model?: string;
        retrieval_options?:
            | {
                boost_by?: {
                    direction?: "asc"
                    | "desc"
                    | "exists"
                    | "not_exists";
                    field: string;
                }[];
                keyword_match_mode?: "and"
                | "or";
            }
            | null;
        rewrite_model?: string;
        rewrite_query?: boolean;
        score_threshold?: number;
        source?: string;
        source_params?: unknown;
        status?: string;
        sync_interval?: 3600
        | 7200
        | 14400
        | 21600
        | 43200
        | 86400;
        token_id?: string;
        type?: "r2" | "web-crawler" | string;
        [key: string]: unknown;
    }

    Indexable

    • [key: string]: unknown
    Index

    Properties

    ai_gateway_id?: string
    ai_search_model?: string
    cache?: boolean
    cache_threshold?:
        | "super_strict_match"
        | "close_enough"
        | "flexible_friend"
        | "anything_goes"
    chunk?: boolean
    chunk_overlap?: number
    chunk_size?: number
    created_at?: string
    custom_metadata?: {
        data_type: "text" | "number" | "boolean" | "datetime";
        field_name: string;
    }[]
    embedding_model?: string
    fusion_method?: "max" | "rrf"

    Fusion method for combining vector and keyword results.

    hybrid_search_enabled?: boolean

    Use index_method instead.

    id: string
    index_method?: { keyword?: boolean; vector?: boolean }

    Controls which storage backends are active.

    indexing_options?: { keyword_tokenizer?: "porter" | "trigram" } | null
    max_num_results?: number
    metadata?: Record<string, unknown>
    modified_at?: string
    namespace?: string
    paused?: boolean
    reranking?: boolean
    reranking_model?: string
    retrieval_options?:
        | {
            boost_by?: {
                direction?: "asc"
                | "desc"
                | "exists"
                | "not_exists";
                field: string;
            }[];
            keyword_match_mode?: "and"
            | "or";
        }
        | null
    rewrite_model?: string
    rewrite_query?: boolean
    score_threshold?: number
    source?: string
    source_params?: unknown
    status?: string
    sync_interval?: 3600 | 7200 | 14400 | 21600 | 43200 | 86400

    Sync interval in seconds.

    token_id?: string
    type?: "r2" | "web-crawler" | string