Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/GAIR-NLP/factool
/ functions
Functions
116 in github.com/GAIR-NLP/factool
⨍
Functions
116
◇
Types & classes
24
↳
Endpoints
8
↓ 19 callers
Method
async_run
(self, messages_list, expected_type)
factool/utils/openai_wrapper.py:146
↓ 6 callers
Method
run_with_tool_api_call
(self, prompts, responses)
factool/math/pipeline.py:85
↓ 5 callers
Method
run
(self, snippet)
factool/math/tool.py:27
↓ 4 callers
Method
run
(self, queries)
factool/knowledge_qa/tool.py:75
↓ 4 callers
Method
run_for_plugin
(self, inputs)
factool/factool.py:123
↓ 3 callers
Method
search
(self, query)
factool/knowledge_qa/tool.py:66
↓ 2 callers
Method
_query_generation
(self, claims)
factool/math/pipeline.py:43
↓ 2 callers
Method
_query_generation
(self, claims)
factool/knowledge_qa/pipeline.py:42
↓ 2 callers
Method
_verification
(self, claims, responses)
factool/scientific/pipeline.py:46
↓ 2 callers
Method
_verification
(self, claims, evidences)
factool/med_doc_qa/pipeline.py:47
↓ 2 callers
Method
_verification
(self, exec_results)
factool/math/pipeline.py:25
↓ 2 callers
Method
_verification
(self, claims, evidences)
factool/knowledge_qa/pipeline.py:54
↓ 2 callers
Method
create_embedding
(self, text, retry=3)
factool/utils/openai_wrapper.py:179
↓ 2 callers
Method
load_jsonl
(file_path)
factool/code/helper/io_utils.py:8
↓ 2 callers
Method
run
(self, inputs)
factool/factool.py:32
↓ 2 callers
Method
run
(self, query)
factool/scientific/tool.py:21
↓ 2 callers
Method
run
Run query through GoogleSearch and parse result.
factool/knowledge_qa/google_serper.py:100
↓ 2 callers
Method
run_with_tool_live
(self, batch, batch_size)
factool/code/pipeline.py:90
↓ 1 callers
Method
_boolean_fix
(self, output)
factool/utils/openai_wrapper.py:72
↓ 1 callers
Method
_check_authors
(self, authors)
factool/scientific/pipeline.py:35
↓ 1 callers
Method
_claim_extraction
(self, responses)
factool/scientific/pipeline.py:25
↓ 1 callers
Method
_claim_extraction
(self, responses)
factool/med_doc_qa/pipeline.py:25
↓ 1 callers
Method
_claim_extraction
(self, samples)
factool/math/pipeline.py:33
↓ 1 callers
Method
_claim_extraction
(self, responses)
factool/knowledge_qa/pipeline.py:32
↓ 1 callers
Method
_google_serper_search_results
(self, session, search_term: str, gl: str, hl: str)
factool/knowledge_qa/google_serper.py:36
↓ 1 callers
Method
_multi_solution_generation
(self, batch, multi_solution_cnt)
factool/code/pipeline.py:52
↓ 1 callers
Method
_parse_results
(self, results)
factool/knowledge_qa/google_serper.py:47
↓ 1 callers
Method
_query_generation
(self, claims)
factool/med_doc_qa/pipeline.py:35
↓ 1 callers
Method
_testcases_input_generation
(self, batch, testcases_input_cnt)
factool/code/pipeline.py:28
↓ 1 callers
Method
_type_check
(self, output, expected_type)
factool/utils/openai_wrapper.py:75
↓ 1 callers
Method
add_suffix_to_json_filename
(self, filename)
factool/knowledge_qa/tool.py:37
↓ 1 callers
Method
calculate_embedding
(self)
factool/knowledge_qa/tool.py:61
↓ 1 callers
Function
chdir
(root)
factool/code/helper/_execution.py:164
↓ 1 callers
Function
create_tempdir
()
factool/code/helper/_execution.py:132
↓ 1 callers
Method
dispatch_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 callers
Function
evaluate_test_cases_multi_solution
(prompt, testcases_input, multi_solutions, timeout=0.1)
factool/code/helper/execution.py:21
↓ 1 callers
Method
init_async
(self)
factool/knowledge_qa/tool.py:28
↓ 1 callers
Method
list
Obtains string representations of all values. Returns: List of all values in str.
factool/tasks.py:16
↓ 1 callers
Method
load_data_by_link
(self)
factool/knowledge_qa/tool.py:41
↓ 1 callers
Method
load_embedding_by_link
(self)
factool/knowledge_qa/tool.py:49
↓ 1 callers
Method
load_tasks
(task_path)
factool/code/helper/io_utils.py:16
↓ 1 callers
Function
main
()
plugin_config/main.py:86
↓ 1 callers
Method
parallel_searches
(self, search_queries, gl, hl)
factool/knowledge_qa/google_serper.py:94
↓ 1 callers
Method
process_batch
(self, batch, retry=3)
factool/utils/openai_wrapper.py:195
↓ 1 callers
Function
reliability_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 callers
Function
run_api
(messages)
factool/utils/claim_extractor.py:27
↓ 1 callers
Method
run_self_check_live
(self, fewshot, batch)
factool/scientific/pipeline.py:160
↓ 1 callers
Method
run_self_check_live
(self, fewshot, batch)
factool/med_doc_qa/pipeline.py:168
↓ 1 callers
Method
run_self_check_live
(self, fewshot, batch)
factool/math/pipeline.py:147
↓ 1 callers
Method
run_self_check_live
(self, fewshot, batch)
factool/code/pipeline.py:234
↓ 1 callers
Method
run_self_check_live
(self, fewshot, batch)
factool/knowledge_qa/pipeline.py:174
↓ 1 callers
Method
run_single
(self, program)
factool/math/tool.py:10
↓ 1 callers
Method
run_with_tool_live
(self, samples)
factool/scientific/pipeline.py:75
↓ 1 callers
Method
run_with_tool_live
(self, prompts, responses)
factool/med_doc_qa/pipeline.py:67
↓ 1 callers
Method
run_with_tool_live
(self, samples)
factool/math/pipeline.py:53
↓ 1 callers
Method
run_with_tool_live
(self, responses)
factool/knowledge_qa/pipeline.py:64
↓ 1 callers
Method
run_with_tool_live_without_claim_extraction
(self, claims)
factool/scientific/pipeline.py:90
↓ 1 callers
Method
run_with_tool_live_without_claim_extraction
(self, claims)
factool/med_doc_qa/pipeline.py:81
↓ 1 callers
Method
run_with_tool_live_without_claim_extraction
(self, claims)
factool/math/pipeline.py:73
↓ 1 callers
Method
run_with_tool_live_without_claim_extraction
(self, claims)
factool/knowledge_qa/pipeline.py:83
↓ 1 callers
Method
save_embeddings
(self)
factool/knowledge_qa/tool.py:56
↓ 1 callers
Function
single_run
(message)
factool/utils/claim_extractor.py:28
↓ 1 callers
Method
solution_extract
(content)
factool/code/helper/postprocess.py:36
↓ 1 callers
Function
swallow_io
()
factool/code/helper/_execution.py:123
↓ 1 callers
Function
time_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
Method
default
(self, obj)
factool/utils/utils_json.py:5
Method
extract_dict_from_string
(self, input_string)
factool/utils/openai_wrapper.py:63
Method
extract_list_from_string
(self, input_string)
factool/utils/openai_wrapper.py:48
Function
fact_check_code
(request_data: FactCheckRequest)
plugin_config/main.py:42
Function
fact_check_kbqa
(request_data: FactCheckRequest)
plugin_config/main.py:34
Function
fact_check_math
(request_data: FactCheckRequest)
plugin_config/main.py:50
Function
fact_check_scientific_literature
(request_data: FactCheckRequest)
plugin_config/main.py:58
Function
get_fact_check
(fact_check_id: int)
plugin_config/main.py:66
Method
map_task_id_for_solution
(predict_path, source_path)
factool/code/helper/postprocess.py:12
Function
openapi_spec
()
plugin_config/main.py:83
Function
plugin_logo
()
plugin_config/main.py:74
Method
read
(self, *args, **kwargs)
factool/code/helper/_execution.py:145
Function
read_plugin_manifest
()
plugin_config/main.py:79
Method
readable
Returns True if the IO object can be read.
factool/code/helper/_execution.py:154
Method
readline
(self, *args, **kwargs)
factool/code/helper/_execution.py:148
Method
readlines
(self, *args, **kwargs)
factool/code/helper/_execution.py:151
Method
run
(self, queries)
factool/knowledge_qa/tool.py:14
Method
run_self_check_dataset
(self, annotated_dataset_path: str, self_check_classified_dataset_path: str, fewshot: bool = False, rerun: boo
factool/scientific/pipeline.py:171
Method
run_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