Open ehsankf opened 1 month ago
@ehsankf Hello there! I'm here to help you with any bugs, questions, or contributions. Let's tackle this issue together.
To resolve the "ValueError: Invalid query mode: hybrid" error, ensure that you provide a valid query_str
and that self._search_pipeline
is set when using the hybrid query mode. Additionally, make sure that hybrid search is enabled by setting enable_hybrid=True
in the constructor of your vector store. Also, ensure that the necessary sparse query functions, such as sparse_query_fn
and hybrid_fusion_fn
, are provided or defaulted, as these are required for hybrid search to function correctly [1][2].
To continue talking to Dosu, mention @dosu.
The default vector store does not support hybrid.
Try a vector store that supports hybrid, or make your own hybrid search
This index:index = VectorStoreIndex.from_vector_store(vector_store=vector_store, embed_model=embedding_model)
supports hybrid but indexing the entire data base is less efficient than query the vector store before indexing it. Is there a work around to use VectorStoreIndex
in the previous solution.
I dont know what you mean by less efficient? This is the core syntax, it only indexes the data once, and then just reconnects to the vector store
Question Validation
Question
I get this error:
Invalid query mode: hybrid