pub(crate) async fn find_similar_samples( app: AppHandle, file_path: String, candidate_paths: Vec<String>, max_results: usize, ) -> Result<Vec<Value>, String>