----------------------
Yes, the way to call the hybrid search in Weaviate has changed. You can use the hybrid search by setting the
vector_store_query_mode
parameter to
"hybrid"
when creating the query engine. The
alpha
parameter can be used to adjust the weighting between bm25 and vector search (alpha = 0 -> bm25, alpha = 1 -> vector search). By default,
alpha=0.75
is used.
Here's an example of how to call the hybrid search in Weaviate:
query_engine = index.as_query_engine(
vector_store_query_mode="hybrid",
similarity_top_k=2
)
response = query_engine.query(
"What did the author do growing up?",
)
You can find more information about this in the
Weaviate Vector Store - Hybrid Search (
https://gpt-index.readthedocs.io/en/latest/examples/vector_stores/WeaviateIndexDemo-Hybrid.html) section of the documentation.
----------------------
Note: you can ask me a follow up question by @ mentioning me again
:speech_balloon:
----------------------