FullTextBoost: {
    boost_factor: number;
    phrase: string;
}

Boost the presence of certain tokens for fulltext (SPLADE) and keyword (BM25) search. I.e. boosting title phrases to priortize title matches or making sure that the listing for AirBNB itself ranks higher than companies who make software for AirBNB hosts by boosting the in-document-frequency of the AirBNB token (AKA word) for its official listing. Conceptually it multiples the in-document-importance second value in the tuples of the SPLADE or BM25 sparse vector of the chunk_html innerText for all tokens present in the boost phrase by the boost factor like so: (token, in-document-importance) -> (token, in-document-importance*boost_factor).

Type declaration

  • boost_factor: number

    Amount to multiplicatevly increase the frequency of the tokens in the phrase by

  • phrase: string

    The phrase to boost in the fulltext document frequency index