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.
1
Sep 22, 2023 (2 months ago)
Narayan
04:12 PMalpha
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
04:20 PMJason
04:20 PMNarayan
04:20 PMTypesense
Indexed 3015 threads (79% resolved)
Similar Threads
Questions on Hybrid Search Feature in Upcoming Release
Chetan inquired about the compatibility and parameter control of hybrid search feature. Jason clarified its functionality, indicating its compatibility with manually created vec field and parameters affecting keyword vs semantic search results.
Discussion on Calculating Vector Distance in Hybrid Search Results
Narayan raised concerns on the `vector_distance` results of keyword hits in hybrid search, suggesting it could be manually calculated. Jason explained the algorithm's design, where `vector_distance` does not apply to keyword searches. They agreed on future considerations for scenarios relying on vector distance.
Hybrid Search and Rank Fusion Score Issue
Gustavo mentioned a possible bug with `vector_distance`. Jason explained it's due to Rank fusion in hybrid search and clarified the usage of proper `q` for retrieving the score.