(question, entity_name, total_relations, args)
| 35 | |
| 36 | |
| 37 | def 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 | |
| 41 | def check_end_word(s): |
no outgoing calls
no test coverage detected