How to Configure Hybrid Search with Specific Query Properties?

Hello everyone,

I am trying to set up hybrid search in Weaviate and need some assistance with configuring the query properties. Here’s my current collection setup:

collection = self.client.collections.create(
    name=collection_name,
    vectorizer_config=wvc.config.Configure.Vectorizer.text2vec_openai(),
    properties=[
        Property(name="mentor_id", data_type=DataType.Number, skip_vectorization=True),
        Property(name="mentor_name", data_type=DataType.TEXT, skip_vectorization=True),
        Property(name="is_available", data_type=DataType.BOOLEAN, skip_vectorization=True),
        Property(name="preferred_schools", data_type=DataType.TEXT, skip_vectorization=True),
        Property(name="experience_summary ", data_type=DataType.TEXT),
        Property(name="self_description", data_type=DataType.TEXT),
        Property(name="strong_enthusiasm", data_type=DataType.TEXT),
        Property(name="moderate_enthusiasm", data_type=DataType.TEXT),
        Property(name="low_enthusiasm", data_type=DataType.TEXT),
        Property(name="student_support_experience", data_type=DataType.TEXT),
        Property(name="personal_school_experiences", data_type=DataType.TEXT),
        Property(name="expertise_areas", data_type=DataType.TEXT),
        Property(name="close_relatives_being_in_prison", data_type=DataType.TEXT),
        Property(name="hate_crime", data_type=DataType.TEXT),
        Property(name="drugs_challenges", data_type=DataType.TEXT),
    ]
)

I want to use “strong_enthusiasm” as the property for keyword search ( Which I know how to do using “Query Properties”) and “experience_summary” for vector search. ( For Which I need your Help)

@Dirk Need your guidance here

Hi @Freddy, I hope you’re having a good week!

I just wanted to clarify what you’re trying to achieve. Please correct me if I’m wrong:

You’re aiming to perform a keyword search on strong_enthusiasm and a vector search on experience_summary directly in a Hybrid search query — this is not currently feasible.

I am thinking if multi-vector search handles the combination of vectors, but it applies to vector spaces rather than keyword search

However, with using a filter to search for a keyword in a property may set you closer to what you are trying.

Alternatively, not sure if combining two properties and setting weights on the property values would help, but I’m unsure about the exact use case.

Best regards,
Mohamed Shahin
Weaviate Support