MCPcopy Create free account

hub / github.com/RUC-NLPIR/WebThinker / functions

Functions400 in github.com/RUC-NLPIR/WebThinker

↓ 26 callersFunctionget_task_instruction_multi_choice
(question, model_name=None)
scripts/prompts/prompts.py:367
↓ 19 callersFunctionget_task_instruction_openqa
(question, model_name=None)
scripts/prompts/prompts.py:325
↓ 16 callersFunctionget_generic_question_template_test_completion
( question: TestOutputPredictionProblem, testcase_input: str )
scripts/lcb_runner/prompts/test_output_prediction.py:68
↓ 13 callersFunctiongenerate_response
Generate a single response with retry logic
scripts/run_web_thinker_report.py:172
↓ 12 callersFunctionget_generic_question_template_answer
(question: CodeGenerationProblem)
scripts/lcb_runner/prompts/code_generation.py:38
↓ 11 callersFunctionget_task_instruction_math
(question, model_name=None)
scripts/prompts/prompts.py:346
↓ 10 callersFunctionget_task_instruction_code
(question, question_title=None, model_name=None)
scripts/prompts/prompts.py:394
↓ 9 callersFunctionextract_relevant_info
Extract relevant information from Bing search results. Args: search_results (dict): JSON response from the Bing Web Search API.
scripts/search/bing_search.py:394
↓ 9 callersFunctionextract_relevant_info_serper
Extract relevant information from Google Serper search results. Args: search_results (dict): JSON response from the Google Serper AP
scripts/search/bing_search.py:712
↓ 9 callersFunctionextract_snippet_with_context
Extract the sentence that best matches the snippet and its context from the full text. Args: full_text (str): The full text extracte
scripts/search/bing_search.py:104
↓ 9 callersMethodupdate_step
(self, step)
demo/settings.py:128
↓ 8 callersFunctiongenerate_response
Generate a single response with retry logic
scripts/run_web_thinker.py:158
↓ 8 callersFunctionget_check_prompt
(question: str, result, metadata)
scripts/lcb_runner/prompts/self_repair.py:35
↓ 8 callersFunctionget_generic_question_template_answer
(question: str, code, result, metadata)
scripts/lcb_runner/prompts/self_repair.py:64
↓ 6 callersFunctioncheck_model
(model_key)
scripts/lcb_runner/evaluation/old_results_check.py:12
↓ 6 callersFunctioncombined_int_check
(val)
scripts/lcb_runner/evaluation/testing_util.py:79
↓ 6 callersFunctionestimate_pass_at_k
Estimates pass@k of each problem and returns them in an array.
scripts/lcb_runner/evaluation/pass_k_utils.py:4
↓ 6 callersFunctionextract_between
Extracts text between two markers in a string.
scripts/run_web_thinker_report.py:134
↓ 6 callersFunctiongenerate_response
Generate a streaming response with retry logic
demo/run_logit.py:49
↓ 6 callersMethodread
(self, *args, **kwargs)
scripts/lcb_runner/evaluation/utils_execute.py:156
↓ 6 callersFunctionrun_evaluation
(filtered_data, input_list, output_list, task_type, output_dir, output_metrics_path, output_metrics_overall_pa
scripts/evaluate/evaluate.py:253
↓ 6 callersFunctiontruncatefn
(s, length=300)
scripts/lcb_runner/evaluation/testing_util.py:26
↓ 5 callersFunctionargspec
(f)
scripts/lcb_runner/pyext/pyext-0.7/pyext.py:91
↓ 5 callersFunctionbing_web_search_async
Perform an asynchronous search using the Bing Web Search API. Args: query (str): Search query. subscription_key (str): Subsc
scripts/search/bing_search.py:425
↓ 5 callersFunctionextract_answer_fn
(output, mode='qa', extract_answer=False)
scripts/evaluate/evaluate.py:18
↓ 5 callersFunctionfetch_page_content_async
Asynchronously fetch content from multiple URLs.
scripts/search/bing_search.py:602
↓ 5 callersFunctiongoogle_serper_search_async
Perform an asynchronous search using the Google Serper API. Args: query (str): Search query. api_key (str): API key for Goog
scripts/search/bing_search.py:744
↓ 5 callersMethodinsert_output_evaluation
( self, output_list: list[str], code_list: list[str], graded_list: list[bool] )
scripts/lcb_runner/benchmarks/code_execution.py:43
↓ 5 callersFunctionread_md_file
(filepath)
scripts/evaluate/evaluate_report.py:175
↓ 4 callersFunctionassign
Assign `value` to `varname` and return it. If `varname` is an attribute and the instance name it belongs to is not defined, a NameError is raised.
scripts/lcb_runner/pyext/pyext-0.7/pyext.py:437
↓ 4 callersFunctionbing_web_search
Perform a search using the Bing Web Search API with a set timeout. Args: query (str): Search query. subscription_key (str):
scripts/search/bing_search.py:309
↓ 4 callersFunctioncodegen_metrics
( samples_list, generations_list, k_list=[1, 5, 10, 20, 40, 50, 75, 100, 125, 150, 200, 500, 1000]
scripts/lcb_runner/evaluation/compute_code_generation_metrics.py:155
↓ 4 callersFunctionextract_snippet_with_context
Extract the sentence that best matches the snippet and its context from the full text. Args: full_text (str): The full text extracte
demo/bing_search.py:100
↓ 4 callersMethodget_evaluation_sample
(self)
scripts/lcb_runner/benchmarks/code_execution.py:51
↓ 4 callersFunctiongoogle_serper_search
Perform a search using the Google Serper API. Args: query (str): Search query. api_key (str): API key for Google Serper API.
scripts/search/bing_search.py:668
↓ 4 callersFunctionis_equiv
(str1, str2, verbose=False)
scripts/utils/math_equivalence.py:138
↓ 3 callersFunction__targspec
(func, specs, attr='__orig_arg__')
scripts/lcb_runner/pyext/pyext-0.7/pyext.py:31
↓ 3 callersFunction_gettypes
(args)
scripts/lcb_runner/pyext/pyext-0.7/pyext.py:114
↓ 3 callersMethod_load_init_vars
(self)
demo/settings.py:114
↓ 3 callersFunctionextract_between
Extracts text between two markers in a string.
scripts/run_web_thinker.py:128
↓ 3 callersFunctionextract_between
Extracts text between two markers in a string.
demo/run_logit.py:30
↓ 3 callersFunctionextract_code
(model_output: str, lmstyle: LMStyle)
scripts/lcb_runner/utils/extraction_utils.py:4
↓ 3 callersFunctionextract_instance_results
(results)
scripts/lcb_runner/evaluation/pass_k_utils.py:56
↓ 3 callersFunctionextract_relevant_info
Extract relevant information from Bing search results. Args: search_results (dict): JSON response from the Bing Web Search API.
demo/bing_search.py:368
↓ 3 callersMethodfrom_string
(name, s)
scripts/lcb_runner/pyext/pyext-0.7/pyext.py:267
↓ 3 callersFunctionget_args
()
scripts/lcb_runner/runner/parser.py:8
↓ 3 callersFunctionget_metrics
( scenario: Scenario, args, benchmark: list[ CodeGenerationProblem | CodeExecutionProblem
scripts/lcb_runner/runner/scenario_router.py:176
↓ 3 callersFunctionget_multiqa_search_o1_instruction
(MAX_SEARCH_LIMIT)
scripts/prompts/prompts.py:264
↓ 3 callersMethodinsert_output
(self, output_list: list[str], pred_list: list[str])
scripts/lcb_runner/benchmarks/code_execution.py:26
↓ 3 callersFunctionload_code_generation_dataset
(release_version="release_v1")
scripts/lcb_runner/benchmarks/code_generation.py:124
↓ 3 callersMethodparse_urls
发送URL列表到解析服务器并获取解析结果 Args: urls: 需要解析的URL列表 timeout: 请求超时时间,默认20秒 Returns:
scripts/search/bing_search.py:69
↓ 3 callersFunctionsafe_unpack
Safely unpack a sequence to length `ln`, without raising ValueError. Based on Lua's method of unpacking. Empty values will be filled in with `fill`, w
scripts/lcb_runner/pyext/pyext-0.7/pyext.py:411
↓ 3 callersFunctionsave_caches
()
scripts/run_naive_rag.py:231
↓ 3 callersFunctionswitch
A Python switch statement implementation that is used with a ``with`` statement. :param value: The value to "switch". ``with`` stateme
scripts/lcb_runner/pyext/pyext-0.7/pyext.py:308
↓ 2 callersFunction_call_if_main
(frame, f, args)
scripts/lcb_runner/pyext/pyext-0.7/pyext.py:468
↓ 2 callersMethod_load_special_tokens
(self)
demo/settings.py:80
↓ 2 callersFunction_strip_string
(string)
scripts/utils/math_equivalence.py:69
↓ 2 callersFunctionbing_web_search_async
Perform an asynchronous search using the Bing Web Search API. Args: query (str): Search query. subscription_key (str): Subsc
demo/bing_search.py:399
↓ 2 callersFunctionbuild_prompt_benchmark
( args, )
scripts/lcb_runner/runner/scenario_router.py:40
↓ 2 callersFunctioncall_method
(method, inputs)
scripts/lcb_runner/evaluation/testing_util.py:651
↓ 2 callersFunctioncompare_and_swap
If `var` is equal to `compare`, set it to `new`.
scripts/lcb_runner/pyext/pyext-0.7/pyext.py:479
↓ 2 callersFunctioncompute_metrics_from_results
(results, k_list=[1, 5])
scripts/lcb_runner/evaluation/pass_k_utils.py:26
↓ 2 callersFunctionensure_dir
(path: str, is_file=True)
scripts/lcb_runner/utils/path_utils.py:7
↓ 2 callersFunctionextract_markdown_content
Extract content between ```markdown and ``` tags.
scripts/run_web_thinker_report.py:162
↓ 2 callersMethodf
(a)
scripts/lcb_runner/pyext/pyext-0.7/test/test_pyext.py:7
↓ 2 callersFunctionfetch_page_content
Concurrently fetch content from multiple URLs. Args: urls (list): List of URLs to scrape. max_workers (int): Maximum number
scripts/search/bing_search.py:273
↓ 2 callersFunctionfetch_page_content_async
Asynchronously fetch content from multiple URLs.
demo/bing_search.py:570
↓ 2 callersFunctionformat_prompt_execution_base
( question: CodeExecutionProblem, LanguageModelStyle: LMStyle, cot: bool )
scripts/lcb_runner/prompts/code_execution.py:76
↓ 2 callersFunctionformat_prompt_generation
( question: CodeGenerationProblem, LanguageModelStyle: LMStyle )
scripts/lcb_runner/prompts/code_generation.py:206
↓ 2 callersFunctionformat_search_results
Format search results into a readable string
scripts/run_web_thinker_report.py:147
↓ 2 callersFunctionformat_search_results
Format search results into a readable string
scripts/run_web_thinker.py:142
↓ 2 callersFunctionformat_search_results
Format search reEND_SEARCH_QUERYdable string
demo/run_logit.py:38
↓ 2 callersMethodfrom_objects
(name, **d)
scripts/lcb_runner/pyext/pyext-0.7/pyext.py:246
↓ 2 callersFunctiongenerate_response
( client: AsyncOpenAI, prompt: str, semaphore: asyncio.Semaphore, temperature: float, top_
scripts/run_naive_rag.py:66
↓ 2 callersFunctiongenerate_response
Generate a single response with retry logic
scripts/run_search_o1.py:229
↓ 2 callersFunctionget_codeqwen_question_template_answer
(question: CodeGenerationProblem)
scripts/lcb_runner/prompts/code_generation.py:153
↓ 2 callersFunctionget_domain
(item)
scripts/evaluate/evaluate.py:267
↓ 2 callersFunctionget_example_prompt
(example)
scripts/lcb_runner/prompts/code_generation.py:179
↓ 2 callersFunctionget_output_path
(model_repr:str, args)
scripts/lcb_runner/utils/path_utils.py:24
↓ 2 callersFunctionget_wizard_question_template_answer
(question: str, code, result, metadata)
scripts/lcb_runner/prompts/self_repair.py:118
↓ 2 callersFunctionload_code_execution_dataset
(release_version="release_v1")
scripts/lcb_runner/benchmarks/code_execution.py:59
↓ 2 callersFunctionload_test_prediction_dataset
(release_version="release_v1")
scripts/lcb_runner/benchmarks/test_output_prediction.py:62
↓ 2 callersFunctionnormalize_answer
(text)
scripts/evaluate/evaluate.py:216
↓ 2 callersFunctionnormalize_answer_qa
(s)
scripts/evaluate/evaluate.py:185
↓ 2 callersFunctionparse_steps
Parses the reasoning steps from a given text. Parameters: - text (str): The text containing reasoning steps. Return
scripts/run_search_o1.py:346
↓ 2 callersFunctionprocess_query_async
(query, env)
demo/run_logit.py:385
↓ 2 callersMethodprompts_to_outputs
( self, prompts: list[str | list[dict[str, str]]] )
scripts/lcb_runner/runner/base_runner.py:108
↓ 2 callersFunctionremove_punctuation
Remove punctuation from the text.
scripts/search/bing_search.py:91
↓ 2 callersFunctionremove_punctuation
Remove punctuation from the text.
demo/bing_search.py:87
↓ 2 callersMethodrun_batch
(self, prompts: list[str | list[dict[str, str]]])
scripts/lcb_runner/runner/base_runner.py:67
↓ 2 callersFunctionsort_and_extract_save_results
(scenario: Scenario, save_results: list[dict])
scripts/lcb_runner/runner/scenario_router.py:141
↓ 2 callersFunctionstripped_string_compare
(s1, s2)
scripts/lcb_runner/evaluation/testing_util.py:645
↓ 2 callersFunctionsummarize_thought_chain
(env, reasoning_chain)
demo/run_demo.py:26
↓ 2 callersMethodupdate_search
(self, search_query)
demo/settings.py:135
↓ 1 callersMethod__init__
( self, use_model_name='QwQ-32B', aux_model_name='Qwen2.5-72B-Instruct',
demo/settings.py:7
↓ 1 callersFunction_exec
(m,g)
scripts/lcb_runner/pyext/pyext-0.7/pyext.py:97
↓ 1 callersFunction_fix_a_slash_b
(string)
scripts/utils/math_equivalence.py:32
↓ 1 callersFunction_fix_fracs
(string)
scripts/utils/math_equivalence.py:1
↓ 1 callersFunction_fix_sqrt
(string)
scripts/utils/math_equivalence.py:55
↓ 1 callersFunction_inner_call_method
(_method)
scripts/lcb_runner/evaluation/testing_util.py:667
next →1–100 of 400, ranked by callers