Interface ContentSelectionOptions

content selection search options

advanced configuration options for content selection requests. controls models, algorithms, and output formatting.

interface ContentSelectionOptions {
    retriever_model?: ModelOption;
    embedder_model?: ModelOption;
    ranker_model?: ModelOption;
    user_embedding?: number[];
    action_sequence?: string[];
    hnsw_ef?: number;
    with_vectors?: boolean;
    with_payload?: boolean | string[];
    use_faiss?: boolean;
    use_knn?: boolean;
    item_id?: string;
    image?: string;
}

Properties

retriever_model?: ModelOption

model to use for retrieval phase

embedder_model?: ModelOption

model to use for embedding generation

ranker_model?: ModelOption

model to use for ranking/reranking phase

user_embedding?: number[]

user embedding vector for personalized search

action_sequence?: string[]

sequence of user actions (item ids) for recommendations

hnsw_ef?: number

hnsw ef parameter for speed/accuracy tradeoff (higher = more accurate but slower)

with_vectors?: boolean

include embedding vectors in results

with_payload?: boolean | string[]

include item metadata in results (true = all fields, false = id only, string[] = specific fields)

use_faiss?: boolean

use faiss index instead of hnsw (alternative algorithm)

use_knn?: boolean

use knn algorithm instead of hnsw

item_id?: string

specific item id for similarity search

image?: string

base64-encoded image for visual/multimodal search (max 50mb)