MCPcopy Create free account

hub / github.com/billxbf/ReWOO / functions

Functions106 in github.com/billxbf/ReWOO

↓ 9 callersMethod__init__
(self, name="LLM")
nodes/Worker.py:138
↓ 6 callersMethodrun
(self, input)
algos/PWS.py:29
↓ 5 callersMethod_update_eval_dict
(self, question, label, response)
utils/Evaluator.py:153
↓ 5 callersFunctionget_token_unit_price
(model)
utils/util.py:32
↓ 4 callersFunctionnormalize_answer
(s)
utils/Evaluator.py:16
↓ 3 callersMethodcall_llm
(self, prompt, stop)
nodes/LLMNode.py:32
↓ 3 callersMethodget_metrics
(self, query, label, pred)
utils/Evaluator.py:185
↓ 3 callersMethodrun
(self, input, log=False)
nodes/Worker.py:145
↓ 2 callersMethod__init__
(self, available_tools=["Google", "LLM"], fewshot="\n", planner_model="text-davinci-003", sol
algos/PWS.py:12
↓ 2 callersMethod_load_tools
(self)
algos/react.py:56
↓ 2 callersMethod_load_tools
(self)
algos/react.py:135
↓ 2 callersMethodload
(self, sample_size=None, type="train")
utils/DataLoader.py:10
↓ 1 callersMethod_failed_response
(self)
utils/Evaluator.py:207
↓ 1 callersMethod_generate_tool_prompt
(self)
algos/react.py:168
↓ 1 callersMethod_generate_worker_prompt
(self)
nodes/Planner.py:34
↓ 1 callersMethod_get_avg_results
(self)
utils/Evaluator.py:172
↓ 1 callersMethod_get_worker
(self, name)
nodes/Planner.py:28
↓ 1 callersMethod_get_worker
(self, name)
algos/react.py:162
↓ 1 callersMethod_get_worker_evidences
(self)
algos/PWS.py:94
↓ 1 callersMethod_initialize_eval_dict
(self)
utils/Evaluator.py:146
↓ 1 callersMethod_parse_planner_evidences
(self, response)
algos/PWS.py:81
↓ 1 callersMethod_parse_plans
(self, response)
algos/PWS.py:74
↓ 1 callersMethod_parse_prediction
(self, output)
utils/Evaluator.py:195
↓ 1 callersMethod_parse_tool
(self, intermediate_steps)
algos/react.py:89
↓ 1 callersMethod_parse_tool
(self, intermediate_steps)
algos/react.py:153
↓ 1 callersMethod_reinitialize
(self)
algos/PWS.py:120
↓ 1 callersFunctionf1_score
(prediction, ground_truth)
utils/Evaluator.py:33
↓ 1 callersMethodgenerate_prompt
( self, instruction: str, input: Union[None, str] = None, label: Union[None, s
alpaca/utils/prompter.py:30
↓ 1 callersMethodget_current_zipcode
(self)
nodes/Worker.py:183
↓ 1 callersMethodget_ip_address
(self)
nodes/Worker.py:167
↓ 1 callersMethodget_location_data
(sefl, ip_address)
nodes/Worker.py:172
↓ 1 callersMethodget_response
(self, output: str)
alpaca/utils/prompter.py:52
↓ 1 callersMethodget_zipcode_from_lat_long
(self, lat, long)
nodes/Worker.py:178
↓ 1 callersFunctionllm_accuracy_score
(query, prediction, ground_truth)
utils/Evaluator.py:54
↓ 1 callersMethodload_disfl_qa
(self, cache_dir="data/bigbench/disfl_qa.csv", sample_size=None)
utils/DataLoader.py:74
↓ 1 callersMethodload_fever
(self, cache_dir="data/fever", sample_size=100, type="test")
utils/DataLoader.py:39
↓ 1 callersMethodload_gsm8k
(self, cache_dir="data/gsm8k", sample_size=100, type="test")
utils/DataLoader.py:53
↓ 1 callersMethodload_hotpot_qa
(self, cache_dir="data/hotpot_qa", sample_size=100, type="test")
utils/DataLoader.py:32
↓ 1 callersMethodload_physics_question
(self, cache_dir="data/bigbench/physics_question.csv", sample_size=None)
utils/DataLoader.py:60
↓ 1 callersMethodload_sotu_qa
(self, cache_dir="data/SOTU/SOTU_QA.csv", sample_size=None)
utils/DataLoader.py:88
↓ 1 callersMethodload_sports_understanding
(self, cache_dir="data/bigbench/sports_understanding.csv", sample_size=None)
utils/DataLoader.py:67
↓ 1 callersMethodload_strategy_qa
(self, cache_dir="data/bigbench/strategy_qa.csv", sample_size=None)
utils/DataLoader.py:81
↓ 1 callersMethodload_trivia_qa
(self, cache_dir="data/trivia_qa", sample_size=100, type="test")
utils/DataLoader.py:46
↓ 1 callersMethodlora_generate
(self, instruction, input)
alpaca/lora.py:80
↓ 1 callersFunctionlower
(text)
utils/Evaluator.py:27
↓ 1 callersFunctionmain
(args)
run.py:56
↓ 1 callersFunctionmain
(args)
run_eval.py:85
↓ 1 callersFunctionremove_articles
(text)
utils/Evaluator.py:17
↓ 1 callersFunctionremove_punc
(text)
utils/Evaluator.py:23
↓ 1 callersMethodreset
(self)
algos/react.py:71
↓ 1 callersMethodreset
(self)
algos/react.py:144
↓ 1 callersMethodrun
(self)
utils/Evaluator.py:83
↓ 1 callersMethodrun
Run query through WolframAlpha and parse result.
nodes/Worker.py:86
↓ 1 callersMethodrun
(self, input)
algos/notool.py:14
↓ 1 callersFunctionsave_data
(dataset, data, save_path)
run_eval.py:70
↓ 1 callersFunctionwhite_space_fix
(text)
utils/Evaluator.py:20
Method__call__
(self, input_ids, scores)
alpaca/utils/callbacks.py:19
Method__enter__
(self)
alpaca/utils/callbacks.py:71
Method__exit__
(self, exc_type, exc_val, exc_tb)
alpaca/utils/callbacks.py:74
Method__init__
(self, docstore: Docstore)
utils/CustomDocstoreExplorer.py:8
Method__init__
(self, data="hotpot_qa", seed=2023)
utils/DataLoader.py:6
Method__init__
(self, task, dataset, algo, maxtry=3)
utils/Evaluator.py:70
Method__init__
(self, load_8bit: bool = True, base_model: str = "decapoda-research/llama-7b-hf",
alpaca/lora.py:23
Method__init__
(self, callback_func=None)
alpaca/utils/callbacks.py:16
Method__init__
(self, func, kwargs={}, callback=None)
alpaca/utils/callbacks.py:32
Method__init__
(self, template_name: str = "", verbose: bool = False)
alpaca/utils/prompter.py:14
Method__init__
(self, workers, prefix=DEFAULT_PREFIX, suffix=DEFAULT_SUFFIX, fewshot=DEFAULT_FEWSHOT, model_
nodes/Planner.py:8
Method__init__
(self, name, input_type, output_type)
nodes/Node.py:3
Method__init__
(self, name="BaseLLMNode", model_name="text-davinci-003", stop=None, input_type=str, output_type=str)
nodes/LLMNode.py:15
Method__init__
(self, name="Google")
nodes/Worker.py:15
Method__init__
(self, name="Wikipedia", docstore=None)
nodes/Worker.py:32
Method__init__
(self, name="LookUp", docstore=None)
nodes/Worker.py:58
Method__init__
(self)
nodes/Worker.py:83
Method__init__
(self, name="WolframAlpha")
nodes/Worker.py:102
Method__init__
(self, name="Calculator")
nodes/Worker.py:119
Method__init__
(self, name="ZipCodeRetriever")
nodes/Worker.py:161
Method__init__
(self, doc_name, doc_path, name="SearchDoc")
nodes/Worker.py:198
Method__init__
(self, name="SearchSOTU")
nodes/Worker.py:218
Method__init__
(self, prefix=DEFAULT_PREFIX, suffix=DEFAULT_SUFFIX, model_name="text-davinci-003", stop=None)
nodes/Solver.py:6
Method__init__
(self, fewshot, model_name="text-davinci-002", max_iter=8, verbose=True)
algos/react.py:14
Method__init__
(self, model_name="text-davinci-003", available_tools=["Google", "Calculator"], fewshot="\n",
algos/react.py:100
Method__init__
(self, fewshot="\n", model_name="text-davinci-003")
algos/notool.py:7
Method__init__
(self, fewshot="\n", model_name="text-davinci-003")
algos/notool.py:33
Method__init__
(self, fewshot=fewshots.HOTPOTQA_PWS_BASE, planner_model="text-davinci-003", solver_model="te
algos/PWS.py:128
Method__init__
(self, fewshot=fewshots.HOTPOTQA_PWS_EXTRA, planner_model="text-davinci-003", solver_model="t
algos/PWS.py:137
Method__iter__
(self)
alpaca/utils/callbacks.py:61
Method__next__
(self)
alpaca/utils/callbacks.py:64
Method_callback
(val)
alpaca/utils/callbacks.py:40
Method_sentence
(self)
utils/CustomDocstoreExplorer.py:32
Methodgentask
()
alpaca/utils/callbacks.py:45
Methodlookup
Lookup a term in document (if saved).
utils/CustomDocstoreExplorer.py:13
Functionprocess
(tools, model, input_text)
app.py:11
Methodrun
(self, input, log=False)
nodes/Planner.py:17
Methodrun
(self, input, log=False)
nodes/Node.py:8
Methodrun
(self, input, log=False)
nodes/LLMNode.py:24
Methodrun
(self, input, log=False)
nodes/Worker.py:21
Methodrun
(self, input, log=False)
nodes/Worker.py:41
Methodrun
(self, input, log=False)
nodes/Worker.py:66
Methodrun
(self, input, log=False)
nodes/Worker.py:108
Methodrun
(self, input, log=False)
nodes/Worker.py:125
next →1–100 of 106, ranked by callers