Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/FastMAS/KVCOMM
/ functions
Functions
446 in github.com/FastMAS/KVCOMM
⨍
Functions
446
◇
Types & classes
71
Function
capture_screenshot
(target_url, api_key, device="desktop")
KVCOMM/tools/web/screenshot.py:16
Function
clean_answer
(model_pred)
KVCOMM/utils/utils.py:26
Method
clear_connections
(self)
KVCOMM/graph/node.py:105
Method
commit
(self)
KVCOMM/llm/kvcomm_engine.py:666
Function
create_alt_url_mapping
(code)
KVCOMM/tools/vgen/dalle3.py:50
Function
delete_extra_zero
(n)
datasets/gsm8k_dataset.py:137
Function
dump_eval_results
(self, dct: Dict[str, Any])
experiments/evaluate_mmlu.py:105
Method
end_header_id
(self)
KVCOMM/llm/gpt_chat.py:317
Method
eot_id
(self)
KVCOMM/llm/gpt_chat.py:321
Method
evaluate
(self, name: str, func: str, test: str, timeout: int = 5)
KVCOMM/tools/coding/executor_types.py:15
Method
evaluate
Evaluates the implementation on Human-Eval Python. probably should be written in a dataset-agnostic way but not now
KVCOMM/tools/coding/python_executor.py:101
Method
execute
(self, func: str, tests: List[str], timeout: int = 5, verbose: bool = True)
KVCOMM/tools/coding/python_executor.py:76
Function
executor_factory
(lang: str)
KVCOMM/tools/coding/executor_factory.py:10
Method
extract_example
Return doctest-style assertions extracted from the task description.
KVCOMM/agents/final_decision.py:31
Method
finalize_request
Compute and log per-request reuse statistics.
KVCOMM/utils/metrics.py:146
Method
finalize_request
Stage a request state for commit; flush when last active request ends.
KVCOMM/llm/kvcomm_engine.py:739
Function
frobenius_norm
(A, S)
KVCOMM/utils/utils.py:60
Method
gen
Synchronous generation not implemented for this adapter.
KVCOMM/llm/gpt_chat.py:169
Method
gen
( self, messages: List[Message], max_tokens: Optional[int] = None, temperature
KVCOMM/llm/gpt_chat.py:1010
Method
gen
(self, task: Optional[str] = None, img: Optional[str] = None)
KVCOMM/llm/visual_llm.py:7
Function
generate_images
(code, api_key, image_cache)
KVCOMM/tools/vgen/dalle3.py:63
Method
get
(cls, model_name: Optional[str] = None)
KVCOMM/llm/visual_llm_registry.py:19
Method
get_adversarial_answer_prompt
(question)
KVCOMM/prompt/gsm8k_prompt_set.py:263
Method
get_adversarial_answer_prompt
(question)
KVCOMM/prompt/humaneval_prompt_set.py:147
Method
get_adversarial_answer_prompt
Return an adversarial prompt to elicit intentionally wrong answers.
KVCOMM/prompt/mmlu_prompt_set.py:150
Method
get_analyze_constraint
(role)
KVCOMM/prompt/copy_machine_prompt_set.py:47
Method
get_answer_prompt
Build few-shot answer prompt for a given role and question.
KVCOMM/prompt/gsm8k_prompt_set.py:184
Method
get_answer_prompt
Return the raw question for code generation tasks.
KVCOMM/prompt/humaneval_prompt_set.py:88
Method
get_answer_prompt
(question)
KVCOMM/prompt/copy_machine_prompt_set.py:59
Method
get_answer_prompt
Return the raw question string.
KVCOMM/prompt/mmlu_prompt_set.py:133
Method
get_class
(cls, name: str)
KVCOMM/prompt/prompt_set_registry.py:22
Method
get_class
(cls, name: str)
KVCOMM/agents/agent_registry.py:23
Method
get_combine_materials
TODO
KVCOMM/prompt/prompt_set.py:60
Method
get_combine_materials
Combine multi-source materials into a unified context block.
KVCOMM/prompt/gsm8k_prompt_set.py:332
Method
get_combine_materials
(materials: Dict[str, Any])
KVCOMM/prompt/humaneval_prompt_set.py:214
Method
get_combine_materials
(materials: Dict[str, Any])
KVCOMM/prompt/copy_machine_prompt_set.py:83
Method
get_combine_materials
(materials: Dict[str, Any])
KVCOMM/prompt/mmlu_prompt_set.py:167
Method
get_constraint
Return role-specific instruction/constraint text.
KVCOMM/prompt/gsm8k_prompt_set.py:174
Method
get_constraint
Return role-specific instruction/constraint text.
KVCOMM/prompt/humaneval_prompt_set.py:78
Method
get_constraint
()
KVCOMM/prompt/copy_machine_prompt_set.py:43
Method
get_constraint
Return base task constraints for multiple-choice QA.
KVCOMM/prompt/mmlu_prompt_set.py:93
Method
get_decision_constraint
Return judge/decision constraints for final selection.
KVCOMM/prompt/gsm8k_prompt_set.py:189
Method
get_decision_constraint
()
KVCOMM/prompt/humaneval_prompt_set.py:218
Method
get_decision_constraint
()
KVCOMM/prompt/copy_machine_prompt_set.py:51
Method
get_decision_constraint
Return decision constraints for picking a single option.
KVCOMM/prompt/mmlu_prompt_set.py:120
Method
get_decision_few_shot
Return few-shot exemplars for decision-making (if any).
KVCOMM/prompt/gsm8k_prompt_set.py:204
Method
get_decision_few_shot
()
KVCOMM/prompt/humaneval_prompt_set.py:234
Method
get_decision_few_shot
()
KVCOMM/prompt/copy_machine_prompt_set.py:87
Method
get_decision_few_shot
()
KVCOMM/prompt/mmlu_prompt_set.py:171
Method
get_decision_role
Return the role used for the decision-maker agent.
KVCOMM/prompt/gsm8k_prompt_set.py:198
Method
get_decision_role
()
KVCOMM/prompt/humaneval_prompt_set.py:230
Method
get_decision_role
()
KVCOMM/prompt/copy_machine_prompt_set.py:39
Method
get_decision_role
Return the role used for the decision-maker agent.
KVCOMM/prompt/mmlu_prompt_set.py:88
Method
get_distill_websearch_prompt
TODO
KVCOMM/prompt/prompt_set.py:46
Method
get_distill_websearch_prompt
Build prompt to distill gathered web results into a summary.
KVCOMM/prompt/gsm8k_prompt_set.py:267
Method
get_distill_websearch_prompt
Build prompt to distill gathered web results into a summary.
KVCOMM/prompt/humaneval_prompt_set.py:151
Method
get_distill_websearch_prompt
(query, results)
KVCOMM/prompt/copy_machine_prompt_set.py:75
Method
get_distill_websearch_prompt
(query, results)
KVCOMM/prompt/mmlu_prompt_set.py:159
Method
get_domain
()
datasets/mmlu_dataset.py:19
Method
get_file_analysis_prompt
TODO
KVCOMM/prompt/prompt_set.py:36
Method
get_file_analysis_prompt
Build prompt scaffold for targeted file analysis.
KVCOMM/prompt/gsm8k_prompt_set.py:236
Method
get_file_analysis_prompt
Build prompt scaffold for targeted file analysis.
KVCOMM/prompt/humaneval_prompt_set.py:121
Method
get_file_analysis_prompt
(query, file)
KVCOMM/prompt/copy_machine_prompt_set.py:67
Method
get_file_analysis_prompt
(query, file)
KVCOMM/prompt/mmlu_prompt_set.py:142
Method
get_format
TODO
KVCOMM/prompt/prompt_set.py:21
Method
get_format
Return output format.
KVCOMM/prompt/gsm8k_prompt_set.py:179
Method
get_format
Return output format.
KVCOMM/prompt/humaneval_prompt_set.py:83
Method
get_format
()
KVCOMM/prompt/copy_machine_prompt_set.py:55
Method
get_format
()
KVCOMM/prompt/mmlu_prompt_set.py:129
Method
get_query_prompt
TODO
KVCOMM/prompt/prompt_set.py:31
Method
get_query_prompt
Build prompt scaffold for planning information gathering.
KVCOMM/prompt/gsm8k_prompt_set.py:221
Method
get_query_prompt
Build prompt scaffold for planning information gathering.
KVCOMM/prompt/humaneval_prompt_set.py:106
Method
get_query_prompt
(question)
KVCOMM/prompt/copy_machine_prompt_set.py:63
Method
get_query_prompt
(question)
KVCOMM/prompt/mmlu_prompt_set.py:138
Method
get_react_prompt
TODO
KVCOMM/prompt/prompt_set.py:55
Method
get_react_prompt
Build prompt to revise a solution using provided feedback.
KVCOMM/prompt/gsm8k_prompt_set.py:209
Method
get_react_prompt
Build prompt to revise a solution using provided feedback.
KVCOMM/prompt/humaneval_prompt_set.py:94
Method
get_reflect_prompt
TODO
KVCOMM/prompt/prompt_set.py:51
Method
get_reflect_prompt
Build prompt that encourages reflection on a prior answer.
KVCOMM/prompt/gsm8k_prompt_set.py:284
Method
get_reflect_prompt
Build prompt that encourages reflection on a prior answer.
KVCOMM/prompt/humaneval_prompt_set.py:167
Method
get_reflect_prompt
(question, answer)
KVCOMM/prompt/copy_machine_prompt_set.py:79
Method
get_reflect_prompt
(question, answer)
KVCOMM/prompt/mmlu_prompt_set.py:163
Method
get_request_state
Return the request state; identical to resolve_request_state.
KVCOMM/llm/kvcomm_engine.py:765
Method
get_role
Return the next cyclic role for multi-agent setups.
KVCOMM/prompt/gsm8k_prompt_set.py:169
Method
get_role
Return the next cyclic role for multi-agent setups.
KVCOMM/prompt/humaneval_prompt_set.py:73
Method
get_role
()
KVCOMM/prompt/copy_machine_prompt_set.py:35
Method
get_role
Return the next cyclic role for multi-agent setups.
KVCOMM/prompt/mmlu_prompt_set.py:83
Method
get_select_best
Build a best-answer evaluation prompt over candidates.
KVCOMM/prompt/gsm8k_prompt_set.py:314
Method
get_select_best
Build a best-answer evaluation prompt over candidates.
KVCOMM/prompt/humaneval_prompt_set.py:196
Method
get_self_consistency
Build a self-consistency selection prompt over candidate answers.
KVCOMM/prompt/gsm8k_prompt_set.py:296
Method
get_self_consistency
Build a self-consistency selection prompt over candidate answers.
KVCOMM/prompt/humaneval_prompt_set.py:178
Method
get_websearch_prompt
TODO
KVCOMM/prompt/prompt_set.py:41
Method
get_websearch_prompt
Build prompt scaffold for targeted web search queries.
KVCOMM/prompt/gsm8k_prompt_set.py:250
Method
get_websearch_prompt
(question, query)
KVCOMM/prompt/humaneval_prompt_set.py:135
Method
get_websearch_prompt
(query)
KVCOMM/prompt/copy_machine_prompt_set.py:71
Method
get_websearch_prompt
(query)
KVCOMM/prompt/mmlu_prompt_set.py:146
Function
gsm_get_predict
(pred_str)
datasets/gsm8k_dataset.py:50
Function
initialize_log_file
Initialize the log file with a start message and return its path. Args: mode (str): The mode of operation, used in the file path.
KVCOMM/utils/log.py:28
Function
is_correct
(model_answer, answer)
KVCOMM/utils/utils.py:21
Method
keys
(cls)
KVCOMM/llm/visual_llm_registry.py:15
← previous
next →
301–400 of 446, ranked by callers