MCPcopy Create free account

hub / github.com/GAIR-NLP/factool / functions

Functions116 in github.com/GAIR-NLP/factool

↓ 19 callersMethodasync_run
(self, messages_list, expected_type)
factool/utils/openai_wrapper.py:146
↓ 6 callersMethodrun_with_tool_api_call
(self, prompts, responses)
factool/math/pipeline.py:85
↓ 5 callersMethodrun
(self, snippet)
factool/math/tool.py:27
↓ 4 callersMethodrun
(self, queries)
factool/knowledge_qa/tool.py:75
↓ 4 callersMethodrun_for_plugin
(self, inputs)
factool/factool.py:123
↓ 3 callersMethodsearch
(self, query)
factool/knowledge_qa/tool.py:66
↓ 2 callersMethod_query_generation
(self, claims)
factool/math/pipeline.py:43
↓ 2 callersMethod_query_generation
(self, claims)
factool/knowledge_qa/pipeline.py:42
↓ 2 callersMethod_verification
(self, claims, responses)
factool/scientific/pipeline.py:46
↓ 2 callersMethod_verification
(self, claims, evidences)
factool/med_doc_qa/pipeline.py:47
↓ 2 callersMethod_verification
(self, exec_results)
factool/math/pipeline.py:25
↓ 2 callersMethod_verification
(self, claims, evidences)
factool/knowledge_qa/pipeline.py:54
↓ 2 callersMethodcreate_embedding
(self, text, retry=3)
factool/utils/openai_wrapper.py:179
↓ 2 callersMethodload_jsonl
(file_path)
factool/code/helper/io_utils.py:8
↓ 2 callersMethodrun
(self, inputs)
factool/factool.py:32
↓ 2 callersMethodrun
(self, query)
factool/scientific/tool.py:21
↓ 2 callersMethodrun
Run query through GoogleSearch and parse result.
factool/knowledge_qa/google_serper.py:100
↓ 2 callersMethodrun_with_tool_live
(self, batch, batch_size)
factool/code/pipeline.py:90
↓ 1 callersMethod_boolean_fix
(self, output)
factool/utils/openai_wrapper.py:72
↓ 1 callersMethod_check_authors
(self, authors)
factool/scientific/pipeline.py:35
↓ 1 callersMethod_claim_extraction
(self, responses)
factool/scientific/pipeline.py:25
↓ 1 callersMethod_claim_extraction
(self, responses)
factool/med_doc_qa/pipeline.py:25
↓ 1 callersMethod_claim_extraction
(self, samples)
factool/math/pipeline.py:33
↓ 1 callersMethod_claim_extraction
(self, responses)
factool/knowledge_qa/pipeline.py:32
↓ 1 callersMethod_google_serper_search_results
(self, session, search_term: str, gl: str, hl: str)
factool/knowledge_qa/google_serper.py:36
↓ 1 callersMethod_multi_solution_generation
(self, batch, multi_solution_cnt)
factool/code/pipeline.py:52
↓ 1 callersMethod_parse_results
(self, results)
factool/knowledge_qa/google_serper.py:47
↓ 1 callersMethod_query_generation
(self, claims)
factool/med_doc_qa/pipeline.py:35
↓ 1 callersMethod_testcases_input_generation
(self, batch, testcases_input_cnt)
factool/code/pipeline.py:28
↓ 1 callersMethod_type_check
(self, output, expected_type)
factool/utils/openai_wrapper.py:75
↓ 1 callersMethodadd_suffix_to_json_filename
(self, filename)
factool/knowledge_qa/tool.py:37
↓ 1 callersMethodcalculate_embedding
(self)
factool/knowledge_qa/tool.py:61
↓ 1 callersFunctionchdir
(root)
factool/code/helper/_execution.py:164
↓ 1 callersFunctioncreate_tempdir
()
factool/code/helper/_execution.py:132
↓ 1 callersMethoddispatch_openai_requests
Dispatches requests to OpenAI API asynchronously. Args: messages_list: List of messages to be sent to OpenAI ChatCompleti
factool/utils/openai_wrapper.py:98
↓ 1 callersFunctionevaluate_test_cases_multi_solution
(prompt, testcases_input, multi_solutions, timeout=0.1)
factool/code/helper/execution.py:21
↓ 1 callersMethodinit_async
(self)
factool/knowledge_qa/tool.py:28
↓ 1 callersMethodlist
Obtains string representations of all values. Returns: List of all values in str.
factool/tasks.py:16
↓ 1 callersMethodload_data_by_link
(self)
factool/knowledge_qa/tool.py:41
↓ 1 callersMethodload_embedding_by_link
(self)
factool/knowledge_qa/tool.py:49
↓ 1 callersMethodload_tasks
(task_path)
factool/code/helper/io_utils.py:16
↓ 1 callersFunctionmain
()
plugin_config/main.py:86
↓ 1 callersMethodparallel_searches
(self, search_queries, gl, hl)
factool/knowledge_qa/google_serper.py:94
↓ 1 callersMethodprocess_batch
(self, batch, retry=3)
factool/utils/openai_wrapper.py:195
↓ 1 callersFunctionreliability_guard
This disables various destructive functions and prevents the generated code from interfering with the test (e.g. fork bomb, killing other pro
factool/code/helper/_execution.py:178
↓ 1 callersFunctionrun_api
(messages)
factool/utils/claim_extractor.py:27
↓ 1 callersMethodrun_self_check_live
(self, fewshot, batch)
factool/scientific/pipeline.py:160
↓ 1 callersMethodrun_self_check_live
(self, fewshot, batch)
factool/med_doc_qa/pipeline.py:168
↓ 1 callersMethodrun_self_check_live
(self, fewshot, batch)
factool/math/pipeline.py:147
↓ 1 callersMethodrun_self_check_live
(self, fewshot, batch)
factool/code/pipeline.py:234
↓ 1 callersMethodrun_self_check_live
(self, fewshot, batch)
factool/knowledge_qa/pipeline.py:174
↓ 1 callersMethodrun_single
(self, program)
factool/math/tool.py:10
↓ 1 callersMethodrun_with_tool_live
(self, samples)
factool/scientific/pipeline.py:75
↓ 1 callersMethodrun_with_tool_live
(self, prompts, responses)
factool/med_doc_qa/pipeline.py:67
↓ 1 callersMethodrun_with_tool_live
(self, samples)
factool/math/pipeline.py:53
↓ 1 callersMethodrun_with_tool_live
(self, responses)
factool/knowledge_qa/pipeline.py:64
↓ 1 callersMethodrun_with_tool_live_without_claim_extraction
(self, claims)
factool/scientific/pipeline.py:90
↓ 1 callersMethodrun_with_tool_live_without_claim_extraction
(self, claims)
factool/med_doc_qa/pipeline.py:81
↓ 1 callersMethodrun_with_tool_live_without_claim_extraction
(self, claims)
factool/math/pipeline.py:73
↓ 1 callersMethodrun_with_tool_live_without_claim_extraction
(self, claims)
factool/knowledge_qa/pipeline.py:83
↓ 1 callersMethodsave_embeddings
(self)
factool/knowledge_qa/tool.py:56
↓ 1 callersFunctionsingle_run
(message)
factool/utils/claim_extractor.py:28
↓ 1 callersMethodsolution_extract
(content)
factool/code/helper/postprocess.py:36
↓ 1 callersFunctionswallow_io
()
factool/code/helper/_execution.py:123
↓ 1 callersFunctiontime_limit
(seconds: float)
factool/code/helper/_execution.py:111
Method__init__
(self, foundation_model)
factool/factool.py:12
Method__init__
(self, foundation_model)
factool/scientific/pipeline.py:12
Method__init__
(self)
factool/scientific/tool.py:13
Method__init__
( self, model_name='gpt-3.5-turbo', max_tokens=2500, temperatu
factool/utils/openai_wrapper.py:24
Method__init__
()
factool/utils/openai_wrapper.py:174
Method__init__
(self, domain, foundation_model)
factool/utils/base/pipeline.py:7
Method__init__
(self, foundation_model)
factool/med_doc_qa/pipeline.py:11
Method__init__
(self, foundation_model)
factool/math/pipeline.py:12
Method__init__
(self)
factool/math/tool.py:7
Method__init__
(self, foundation_model, multi_solution_cnt, testcases_input_cnt)
factool/code/pipeline.py:18
Method__init__
(self, foundation_model, snippet_cnt, search_type, data_link=None, Embed_link=None)
factool/knowledge_qa/pipeline.py:14
Method__init__
(self, snippet_cnt = 10)
factool/knowledge_qa/google_serper.py:28
Method__init__
(self, snippet_cnt)
factool/knowledge_qa/tool.py:11
Method__init__
(self, snippet_cnt, data_link, embedding_link=None)
factool/knowledge_qa/tool.py:18
Method_evidence_extraction
(self, claims, prompts_parsed)
factool/med_doc_qa/pipeline.py:57
Method_request_with_retry
(messages, retry=3)
factool/utils/openai_wrapper.py:109
Methoddefault
(self, obj)
factool/utils/utils_json.py:5
Methodextract_dict_from_string
(self, input_string)
factool/utils/openai_wrapper.py:63
Methodextract_list_from_string
(self, input_string)
factool/utils/openai_wrapper.py:48
Functionfact_check_code
(request_data: FactCheckRequest)
plugin_config/main.py:42
Functionfact_check_kbqa
(request_data: FactCheckRequest)
plugin_config/main.py:34
Functionfact_check_math
(request_data: FactCheckRequest)
plugin_config/main.py:50
Functionfact_check_scientific_literature
(request_data: FactCheckRequest)
plugin_config/main.py:58
Functionget_fact_check
(fact_check_id: int)
plugin_config/main.py:66
Methodmap_task_id_for_solution
(predict_path, source_path)
factool/code/helper/postprocess.py:12
Functionopenapi_spec
()
plugin_config/main.py:83
Functionplugin_logo
()
plugin_config/main.py:74
Methodread
(self, *args, **kwargs)
factool/code/helper/_execution.py:145
Functionread_plugin_manifest
()
plugin_config/main.py:79
Methodreadable
Returns True if the IO object can be read.
factool/code/helper/_execution.py:154
Methodreadline
(self, *args, **kwargs)
factool/code/helper/_execution.py:148
Methodreadlines
(self, *args, **kwargs)
factool/code/helper/_execution.py:151
Methodrun
(self, queries)
factool/knowledge_qa/tool.py:14
Methodrun_self_check_dataset
(self, annotated_dataset_path: str, self_check_classified_dataset_path: str, fewshot: bool = False, rerun: boo
factool/scientific/pipeline.py:171
Methodrun_self_check_dataset
(self, annotated_dataset_path: str, self_check_classified_dataset_path: str, fewshot: bool = False, rerun: boo
factool/med_doc_qa/pipeline.py:179
next →1–100 of 116, ranked by callers