Skip to main content

parse_search_using_fusion

Function parse_search_using_fusion 

Source
pub fn parse_search_using_fusion(sql: &str) -> Option<(String, FusionParams)>
Expand description

Parse SEARCH <collection> USING FUSION(...) into its collection name and a typed FusionParams. Returns None when the SQL does not match the expected shape.

Body extraction uses the same quote- and bracket-aware tokenizer as the GRAPH RAG FUSION path, so a keyword-shaped string literal (e.g. a label value 'TOP') cannot shadow a real parameter keyword.