You are here:
Hybrid Search Query Expressions for Autodrop
Use Data 360 Query API to configure autodrop for hybrid search results.
Required Editions
| Available in: All Editions supported by Data 360. See Data 360 edition availability. |
You can configure autodrop for keyword search results, vector search results, or hybrid search results. For best results either use autodrop for keyword search and vector search, or just hybrid search results. Do not use autodrop for all search types together in a query.
The num_drops integer parameter passed to “autodrop_keyword”, “autodrop_vector”, and “autodrop_hybrid” defines the number of significant score drops that hybrid search function must detect in the corresponding score list to truncate results.
Use this syntax for autodrop with keyword search and vector search results.
select * from hybrid_search(
table(<Search_index_DMO>),
‘<Search String>’,
'<PreFilteringColumn><Operator><Value>',
'<Limit Results>',
‘{ "autodrop_keyword": {"num_drops": 2}, "autodrop_vector":{"num_drops": 5 }}’
);
)Where:
- "autodrop_keyword": {"num_drops": 2}
- Drops retrieved keyword search results at the second significant score cutoff point.
- "autodrop_vector":{"num_drops": 5 }
- Drops retrieved vector search results at the fifth significant cutoff point.
Use this syntax for autodrop with hybrid search results.
select * from hybrid_search(
table(<Search_index_DMO>),
‘<Search String>’,
'<PreFilteringColumn><Operator><Value>',
'<Limit Results>',
‘{{ "autodrop_hybrid": {"num_drops": 1}}’
);
Where:
- { "autodrop_hybrid": {"num_drops": 1}
- Drops the combined hybrid search results at the first significant score cutoff point.
If you don’t apply a quality filter in a vector search query, the search always returns the number of results (topK results) requested. Keyword search returns results that only match terms of the query contained in the documents.
For example, consider this scenario for keyword search result scores that includes two score drops.
- Result A: Score 0.95
- Result B: Score 0.92
- Result C: Score 0.88
- Result D: Score 0.40 - Sharp drop in score
- Result E: Score 0.38
- Result F: Score 0.35
- Result G: Score 0.10 - Sharp drop in score
- Result H: Score 0.80
- Result I: Score 0.05
If you configure “autodrop_keyword” with num-drops = 1, hybrid search detects the first significant drop after Result C (between 0.88 and 0.40). Hybrid search removes Results D, E, F, G, H, and I from the final search results. The search query returns results, Result A, Result B, and Result C.
If you configure “autodrop_keyword” with num_drops = 2, hybrid search detects the first drop after Result C (between 0.88 and 0.40) and a second drop after Result F (between 0.35 and 0.10). The search query removes Results G, H, and I and returns results A through F.

