MCPcopy Create free account
hub / github.com/FlyingFeather/DEA-SQL / get_features_by_llm_concurrent

Method get_features_by_llm_concurrent

gen_sql.py:235–246  ·  view source on GitHub ↗
(self, query, init_table_infos, limitation, metric, main_metric, lang_mode)

Source from the content-addressed store, hash-verified

233 return input_dict
234
235 def get_features_by_llm_concurrent(self, query, init_table_infos, limitation, metric, main_metric, lang_mode):
236 results = []
237 with ThreadPoolExecutor() as executor:
238 futures = []
239 for _ in range(args.sc_filter_nums):
240 future = executor.submit(self.get_features_by_llm, query, init_table_infos, limitation, metric,
241 main_metric, lang_mode)
242 futures.append(future)
243 for future in futures:
244 if future.result() != "":
245 results.append(future.result())
246 return results
247
248 def step_get_filter_infos(self, input_dict, lang_mode, table_list, table_info_list, mode):
249 """step 2: get filter infos"""

Callers 1

step_get_filter_infosMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected