AlloyDB Vector Store Hybrid Search Config.
Queries might be slow if the hybrid search column does not exist. For best hybrid search performance, consider creating a TSV column and adding GIN index.
HybridSearchConfig(
self,
tsv_column: Optional[str] = '',
tsv_lang: Optional[str] = 'pg_catalog.english',
fts_query: Optional[str] = '',
fusion_function: Callable[[Sequence[RowMapping], Sequence[RowMapping], Any], Sequence[Any]] = weighted_sum_ranking,
fusion_function_parameters: dict[str, Any] = dict(),
primary_top_k: int = 4,
secondary_top_k: int = 4,
index_name: str = 'langchain_tsv_index',
index_type: str = 'GIN'
)