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

Function construct_relation_prune_prompt

ToG/freebase_func.py:101–102  ·  view source on GitHub ↗
(question, entity_name, total_relations, args)

Source from the content-addressed store, hash-verified

99
100
101def construct_relation_prune_prompt(question, entity_name, total_relations, args):
102 return extract_relation_prompt % (args.width, args.width) + question + '\nTopic Entity: ' + entity_name + '\nRelations: '+ '; '.join(total_relations) + "\nA: "
103
104
105def construct_entity_score_prompt(question, relation, entity_candidates):

Callers 1

relation_search_pruneFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected