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

Function construct_entity_score_prompt

ToG/wiki_func.py:53–54  ·  view source on GitHub ↗
(question, relation, entity_candidates)

Source from the content-addressed store, hash-verified

51
52
53def construct_entity_score_prompt(question, relation, entity_candidates):
54 return score_entity_candidates_prompt_wiki.format(question, relation) + "; ".join(entity_candidates) + '\nScore: '
55
56
57def relation_search_prune(entity_id, entity_name, pre_relations, pre_head, question, args, wiki_client):

Callers 1

entity_scoreFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected