split the screening requirements in the criteria of the literatures into a series of simple yes/no problems, and return the path of the splitted questions.
( criteria:str )
| 407 | |
| 408 | @tool.get("/split_criteria") |
| 409 | def split_criteria( criteria:str ): |
| 410 | """split the screening requirements in the criteria of the literatures into a series of simple yes/no problems, and return the path of the splitted questions. """ |
| 411 | ques = split_question(criteria) |
| 412 | np.save('split_ques_'+criteria.replace(' ', '_')[:50]+'.npy', ques) |
| 413 | js = {'question number': len(ques), 'question_path': 'split_ques_'+criteria.replace(' ', '_')[:50]+'.npy'} |
| 414 | return js |
| 415 | |
| 416 | @tool.get("/literature_filter") |
| 417 | def literature_filter( concat_path:str ): |
nothing calls this directly
no test coverage detected