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

Function construct_entity_score_prompt

ToG/freebase_func.py:105–106  ·  view source on GitHub ↗
(question, relation, entity_candidates)

Source from the content-addressed store, hash-verified

103
104
105def construct_entity_score_prompt(question, relation, entity_candidates):
106 return score_entity_candidates_prompt.format(question, relation) + "; ".join(entity_candidates) + '\nScore: '
107
108
109def relation_search_prune(entity_id, entity_name, pre_relations, pre_head, question, args):

Callers 1

entity_scoreFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected