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

Function construct_relation_prune_prompt

ToG/wiki_func.py:37–38  ·  view source on GitHub ↗
(question, entity_name, total_relations, args)

Source from the content-addressed store, hash-verified

35
36
37def construct_relation_prune_prompt(question, entity_name, total_relations, args):
38 return extract_relation_prompt_wiki % (args.width, args.width)+question+'\nTopic Entity: '+entity_name+ '\nRelations:\n'+'\n'.join([f"{i}. {item}" for i, item in enumerate(total_relations, start=1)])+'A:'
39
40
41def check_end_word(s):

Callers 1

relation_search_pruneFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected