#community-help

Modifying Alpha Coefficient in Hybrid Search

TLDR Narayan inquired about adjusting the alpha coefficient in hybrid searches on Typesense, Jason suggested creating a GitHub issue to track the future inclusion of this adjustment.

Powered by Struct AI

1

Sep 22, 2023 (2 months ago)
Narayan
Photo of md5-6441fd8d08a3a44e184f7cba8ddb1d72
Narayan
04:12 PM
For hybrid search is there a way to set the alpha coefficient to decide how the scores of keyword and vector search are combined or is it fixed like in the example in the docs:
K = rank of document in keyword search
S = rank of document in semantic search

rank_fusion_score = 0.7 * K + 0.3 * S
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
04:20 PM
Not at the moment, but we’ll be adding this shortly
04:20
Jason
04:20 PM
Could you create a GitHub issue for this so we can track it?
Narayan
Photo of md5-6441fd8d08a3a44e184f7cba8ddb1d72
Narayan
04:20 PM
Will do