@vivantel/virage-core
    Preparing search index...

    Interface SearchOptions

    Options controlling composite similarity + recency scoring.

    interface SearchOptions {
        alpha?: number;
        beta?: number;
        filter?: Record<string, unknown>;
        hybrid?: boolean;
        hybridAlpha?: number;
        queryText?: string;
        tagFilter?: string[];
    }
    Index
    alpha?: number

    Weight applied to vector similarity (0–1). Defaults to 0.85.

    beta?: number

    Weight applied to recency score (0–1). Defaults to 0.15. Only applied when ingestedAt is available.

    filter?: Record<string, unknown>

    Metadata key-value pairs to filter results (e.g. { branch: "main" }). Applied as post-filter.

    hybrid?: boolean

    Enable BM25 + vector hybrid search with Reciprocal Rank Fusion. Requires queryText. Default: false.

    hybridAlpha?: number

    Blend weight for hybrid search: 0 = pure BM25, 1 = pure vector. Default: 0.6.

    queryText?: string

    Original query text, required for the BM25 side of hybrid search.

    tagFilter?: string[]

    Tag filter — only chunks whose tags array intersects this set are returned (ADR-046). Store adapters apply this at the earliest feasible point (WHERE clause if supported, otherwise post-retrieval). Undefined = no tag filtering (admin/unprotected mode).