MCPcopy Create free account
hub / github.com/DataArcTech/ToG / half_stop

Function half_stop

ToG/freebase_func.py:213–216  ·  view source on GitHub ↗
(question, cluster_chain_of_entities, depth, args)

Source from the content-addressed store, hash-verified

211
212
213def half_stop(question, cluster_chain_of_entities, depth, args):
214 print("No new knowledge added during search depth %d, stop searching." % depth)
215 answer = generate_answer(question, cluster_chain_of_entities, args)
216 save_2_jsonl(question, answer, cluster_chain_of_entities, file_name=args.dataset)
217
218
219def generate_answer(question, cluster_chain_of_entities, args):

Callers

nothing calls this directly

Calls 2

save_2_jsonlFunction · 0.85
generate_answerFunction · 0.70

Tested by

no test coverage detected