MCPcopy Create free account

hub / github.com/OpenBMB/ToolBench / functions

Functions374 in github.com/OpenBMB/ToolBench

Method__init__
(self, llm, io_func, process_id=0, callbacks=None)
toolbench/inference/Algorithms/DFS.py:14
Method__init__
Args: llm: The interface of the LLM io_func(base_env): Interface to the environment, process_id (int, optional):
toolbench/inference/Algorithms/base_search.py:6
Method__init__
extra_prefix and start_message_list is used in Reflection Algo
toolbench/inference/Algorithms/single_chain.py:10
Method__init__
(self)
toolbench/inference/Downstream_tasks/base_env.py:3
Method__init__
(self, query_json, tool_descriptions, retriever, args, process_id=0)
toolbench/inference/Downstream_tasks/rapidapi.py:56
Method__init__
(self, queue: queue.Queue, *args, **kwargs)
toolbench/inference/callbacks/ServerEventCallback.py:6
Method__init__
(self)
toolbench/inference/Tree/Tree.py:8
Method__init__
(self)
toolbench/inference/Tree/Tree.py:25
Method__init__
(self, corpus_tsv_path = "", model_path="")
toolbench/inference/LLM/retriever.py:10
Method__init__
(self, model_name_or_path: str, template:str="tool-llama-single-round", device: str="cuda", cpu_offloading: bo
toolbench/inference/LLM/llama_model.py:18
Method__init__
(self, model="text-davinci-003", openai_key="")
toolbench/inference/LLM/davinci_model.py:15
Method__init__
( self, base_name_or_path: str, model_name_or_path: str, te
toolbench/inference/LLM/tool_llama_lora_model.py:20
Method__init__
(self, model="gpt-3.5-turbo-16k-0613", openai_key="")
toolbench/inference/LLM/chatgpt_function_model.py:48
Method__init__
( self, model_name_or_path: str, template:str="tool-llama-single-round",
toolbench/inference/LLM/tool_llama_model.py:19
Method__init__
( self, queries: Dict[str, str], # qid => query corpus: Dict[str, str], # cid => doc
toolbench/retrieval/api_evaluator.py:64
Method__init__
(self, raw_data, tokenizer: transformers.PreTrainedTokenizer, template="tool-llama")
toolbench/train/train.py:197
Method__init__
(self, dim, ratio, max_position_embeddings=2048, base=10000, device=None)
toolbench/train/llama_condense_monkey_patch.py:9
Method__len__
(self)
toolbench/train/train.py:183
Method__len__
(self)
toolbench/train/train.py:207
Method__setitem__
(self,key,value)
toolbench/tooleval/evaluation/dataclass.py:259
Method__str__
(self)
toolbench/tooleval/evaluation/dataclass.py:51
Method__str__
(self)
toolbench/tooleval/evaluation/dataclass.py:62
Function_prepare_decoder_attention_mask
(self, attention_mask, input_shape, inputs_embeds, past_key_values_length)
toolbench/train/llama_flash_attn_monkey_patch.py:68
Methodadd_message
(self, message)
toolbench/inference/LLM/llama_model.py:51
Methodadd_message
(self, message)
toolbench/inference/LLM/davinci_model.py:46
Methodadd_message
(self, message)
toolbench/inference/LLM/tool_llama_lora_model.py:69
Methodadd_message
(self, message)
toolbench/inference/LLM/chatgpt_function_model.py:55
Methodadd_message
(self, message)
toolbench/inference/LLM/tool_llama_model.py:60
Functionadd_model_args
(parser)
toolbench/model/model_adapter.py:182
Functionalbum_appearances
"Album Appearances" id: Album ID page: Paginated offset, (e.g., per_page=5&page=3 returns appearances 11–15) per_page: Number
data_example/toolenv/tools/Music/genius_song_lyrics/api.py:871
Functionalbum_comments
"Album Comments" id: Album ID page: Paginated offset, (e.g., per_page=5&page=3 returns albums 11–15) per_page: Number of resu
data_example/toolenv/tools/Music/genius_song_lyrics/api.py:700
Functionalbum_details
"Album Details" id: Album ID text_format: Format for text bodies related to the document. One or more of `dom`, `plain`, `markdown`,
data_example/toolenv/tools/Music/genius_song_lyrics/api.py:1081
Functionannotation_details
"An annotation is a piece of content about a part of a document. The document may be a song (hosted on Genius) or a web page (hosted anywhere). T
data_example/toolenv/tools/Music/genius_song_lyrics/api.py:129
Functionannotation_versions
"Annotation Versions" id: Annotation ID text_format: Format for text bodies related to the document. One or more of `dom`, `plain`, `
data_example/toolenv/tools/Music/genius_song_lyrics/api.py:675
Functionartist_activity
"Artist Activity" id: Artist ID per_page: Number of results to return per request page: Paginated offset, (e.g., per_page=5&p
data_example/toolenv/tools/Music/genius_song_lyrics/api.py:762
Functionartist_albums
"Get artist albums" id: Artist ID per_page: Number of results to return per request page: Paginated offset, (e.g., per_page=5
data_example/toolenv/tools/Music/genius_song_lyrics/api.py:936
Functionartist_details
"An artist is how Genius represents the creator of one or more songs (or other documents hosted on Genius). It's usually a musician or group of m
data_example/toolenv/tools/Music/genius_song_lyrics/api.py:967
Functionartist_leaderboard
"Artist Leaderboard" id: Artist ID per_page: Number of results to return per request page: Paginated offset, (e.g., per_page=
data_example/toolenv/tools/Music/genius_song_lyrics/api.py:731
Functionartist_songs
"Documents (songs) for the artist specified." id: Artist ID sort: `title` (default) or `popularity` page: Paginated offset, (
data_example/toolenv/tools/Music/genius_song_lyrics/api.py:902
Functionask
"https://i.ibb.co/5WHmCQ8/Screenshot-2023-05-30-231728-1.png" bard_secure_1psid_cookie_value: A string representing your bard __Secure-1PSID
data_example/toolenv/tools/Artificial_Intelligence_Machine_Learning/bard/api.py:9
Functionask
"https://i.ibb.co/5WHmCQ8/Screenshot-2023-05-30-231728-1.png" bard_secure_1psid_cookie_value: A string representing your bard __Secure-1PSID
data_example/toolenv/tools/Artificial_Intelligence_Machine_Learning/bard_api/api.py:9
Functionassign_gid
()
toolbench/tooleval/evaluation/dataclass.py:36
Functionbase_io
(input_str)
toolbench/inference/LLM/base_io.py:3
Functionbty690_warped
"https://www.warped-mirror.com/ bty690 warped là trang web được nhà cái Bty690 Bsports ủy quyền phát triển khai thác thị trường cá cược trực tuy
data_example/toolenv/tools/Advertising/bty690warped/api.py:9
Functionbuy_gmail_accounts_old_new_verified_instant_delivery
"Buy and sell old PVA Gmail accounts in bulk from Storegmail at super low price with 100% money back guarantee. You can buy bulk Gmail accounts o
data_example/toolenv/tools/Advertising/buy_gmail_accounts/api.py:9
Functionchart_albums
"Chart: Albums" page: Paginated offset, (e.g., per_page=5&page=3 returns results 11–15) time_period: Default: `day`. One of these: -
data_example/toolenv/tools/Music/genius_song_lyrics/api.py:589
Functionchart_artists
"Chart: Artists" time_period: Default: `day`. One of these: - day - week - month - all_time page: Paginated offset, (e.g., per_page=
data_example/toolenv/tools/Music/genius_song_lyrics/api.py:1175
Functionchart_referents
"Chart: Referents" page: Paginated offset, (e.g., per_page=5&page=3 returns results 11–15) time_period: Default: `day`. One of these:
data_example/toolenv/tools/Music/genius_song_lyrics/api.py:1137
Functionchart_songs
"Chart: Songs" chart_genre: Default: `all`. One of these: - all - rap - pop - rb - rock - country time_period: Default: `day`. One o
data_example/toolenv/tools/Music/genius_song_lyrics/api.py:627
Methodcheck_node_valid
(node:Dict)
toolbench/tooleval/evaluators/registered_cls/rtl.py:37
Methodcheck_success
(self)
toolbench/inference/Downstream_tasks/rapidapi.py:268
Functioncompress_module
(module, target_device)
toolbench/model/compression.py:38
Functioncompute_epsilon_new_node
根据公式换算delta
toolbench/inference/utils.py:26
Functioncompute_ndcg_for_query
(query_tuple)
toolbench/retrieval/api_evaluator.py:42
Functioncompute_pass_rate
(query_id, example)
toolbench/tooleval/eval_pass_rate.py:54
Methodconvert_result_to_dict
(self,result)
toolbench/tooleval/automatic_eval_sample.py:39
Functiondecompress
Simulate group-wise dequantization.
toolbench/model/compression.py:166
Functiondescription_of_machine_learning_model_parameters
"API returns a general description of ML model, like Classification Accuracy, list of allowed qualitative sales attributes and their values. Only
data_example/toolenv/tools/Artificial_Intelligence_Machine_Learning/b2b_sales_forecasting/api.py:9
Methoddfs
(node:ExecutionNode)
toolbench/tooleval/evaluation/dataclass.py:75
Methoddict
(self)
toolbench/tool_conversation.py:179
Methoddisplay_conversation
(self, detailed=False)
toolbench/inference/LLM/llama_model.py:57
Methoddisplay_conversation
(self, detailed=False)
toolbench/inference/LLM/davinci_model.py:52
Methoddisplay_conversation
(self, detailed=False)
toolbench/inference/LLM/tool_llama_lora_model.py:75
Methoddisplay_conversation
(self, detailed=False)
toolbench/inference/LLM/chatgpt_function_model.py:61
Methoddisplay_conversation
(self, detailed=False)
toolbench/inference/LLM/tool_llama_model.py:66
Methoddraw
(self)
toolbench/tooleval/evaluation/dataclass.py:109
Methodedge_count
(self)
toolbench/tooleval/evaluation/dataclass.py:175
Methodforward
(self, x, seq_len=None)
toolbench/utils.py:92
Methodforward
(self,query:str,tools:List[Dict],tool_func:Callable)
toolbench/tooleval/automatic_eval_sample.py:37
Methodforward
(self, input)
toolbench/model/compression.py:34
Methodforward
(self, x, seq_len=None)
toolbench/train/llama_condense_monkey_patch.py:27
Functionforward_2
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.Tensor] = None,
toolbench/train/llama_flash_attn_monkey_patch.py:16
Functiongenerate_stream
( model, tokenizer, params, device, context_len=8192, stream_interval=2, force_generate=False )
toolbench/inference/utils.py:57
Methodget_args
(self)
toolbench/inference/Downstream_tasks/rapidapi.py:417
Functionget_company_sponsor_list
"" start: The start index for the sponsor company in the list format: The returned list format. The default supported is JSON
data_example/toolenv/tools/Commerce/codeepy_vispox/api.py:9
Methodget_default_conv_template
(self, model_path: str)
toolbench/model/model_adapter.py:234
Methodget_default_conv_template
(self, model_path: str)
toolbench/model/model_adapter.py:264
Methodget_default_conv_template
(self, model_path: str)
toolbench/model/model_adapter.py:282
Methodget_init_node
(self)
toolbench/tooleval/evaluation/dataclass.py:194
Functionget_preference
(idx)
toolbench/tooleval/evaluators_comparison.py:48
Functionget_preference
(qid,query,tools,ref_ans,ans,)
toolbench/tooleval/automatic_eval_sample.py:80
Functionget_preference
(qid,query,tools,ref_ans,ans,)
toolbench/tooleval/eval_and_update_leaderboard.py:110
Functionget_preference
(query_id, task_status, answer_statuss, ref_example, output_example)
toolbench/tooleval/eval_preference.py:135
Functionget_prices_of_bananas
"On this option, you can get a JSON file with the prices of bananas from TESCO"
data_example/toolenv/tools/Commerce/api_shopping/api.py:30
Functionget_prices_of_tomatoes
"This one will get prices from tomatoes"
data_example/toolenv/tools/Commerce/api_shopping/api.py:9
Functionget_product_offers
"Get the offers on specific product using Product ID"
data_example/toolenv/tools/Commerce/amazon_data_scapper/api.py:9
Methodget_queue
(self)
toolbench/inference/toolbench_server.py:64
Methodget_score
Get the value of the current state A fake function, used to search in oracle mode, which is not actually used (and impossible to obta
toolbench/inference/Downstream_tasks/base_env.py:15
Methodget_score
(self)
toolbench/inference/Downstream_tasks/rapidapi.py:277
Functionget_top_songs
"tujhe dekha toh as of now"
data_example/toolenv/tools/Music/getsongs/api.py:9
Functiongetproductbyslug
" "
data_example/toolenv/tools/Business/crime_rate/api.py:9
Functiongetproducts
" "
data_example/toolenv/tools/Business/crime_rate/api.py:30
Functionhandle_keyboard_interrupt
(signal, frame)
toolbench/inference/toolbench_server.py:169
Functionhome
"Get all contacts"
data_example/toolenv/tools/Business/contacts_api/api.py:30
Functionkooed_endpoint
"Kooed Radio Stations end point"
data_example/toolenv/tools/Music/kooed/api.py:32
Functionkooed_endpoint_copy
"Kooed Radio Stations end point"
data_example/toolenv/tools/Music/kooed/api.py:9
Functionleaderboard
"Leaderboard" per_page: Number of results to return per request period: Default: `day`. One of these: - day - week - month - all_tim
data_example/toolenv/tools/Music/genius_song_lyrics/api.py:512
Functionload_model
Load a model from Hugging Face.
toolbench/model/model_adapter.py:89
Methodload_model
(self, model_path: str, from_pretrained_kwargs: dict)
toolbench/model/model_adapter.py:224
Methodload_model
(self, model_path: str, from_pretrained_kwargs: dict)
toolbench/model/model_adapter.py:255
← previousnext →201–300 of 374, ranked by callers