πŸ’»How To Combine Different Vectors With Exact Matching Text

Searching across multiple vectors with exact text match

Required Knowledge: Vectors, Encoding, Vector Search, Advanced Search Audience: Data scientists, Vector enthusiasts, Statisticians, Machine learning engineers Reading time: 3 minutes

Ensure that you have read advanced search queries before continuing below.

Once you have constructed the multivector query, adding hybrid search (searching with exact text) is easy. Simply alter the endpoint to advanced_hybrid_search and then add 2 additional fields: the text and the text_fields.

vi.advanced_hybrid_search(
    collection_name=collection_name,
    multivector_query=multivector_query,
    text='sample_text',
    text_fields=["sample_text_field"])

If you want to increase the weight of exact text matching, you can alter traditional_weight parameter.

Last updated