MCPcopy Create free account

hub / github.com/UCSB-AI/EvoPresent / functions

Functions2,738 in github.com/UCSB-AI/EvoPresent

↓ 1 callersMethodquery
r"""Executes a query in vector storage and compiles the retrieved results into a dictionary. Args: query (str): Query str
Evopresent/camel/retrievers/vector_retriever.py:193
↓ 1 callersMethodquery
r"""Searches for similar vectors in the storage based on the provided query. Args: query (VectorDBQuery): The query objec
Evopresent/camel/storages/vectordb_storages/base.py:156
↓ 1 callersMethodquestion_scorer
r"""Scorer for the GAIA benchmark. https://huggingface.co/spaces/gaia-benchmark/leaderboard/blob/main/ scorer.py Args:
Evopresent/camel/benchmarks/gaia.py:365
↓ 1 callersFunctionragas_calculate_metrics
r"""Calculate RAGAS evaluation metrics. Args: dataset (Dataset): The dataset containing predictions and ground truth. pred_contex
Evopresent/camel/benchmarks/ragbench.py:119
↓ 1 callersFunctionragas_evaluate_dataset
r"""Evaluate the dataset using RAGAS metrics. Args: dataset (Dataset): Input dataset to evaluate. contexts_field_name (Optional[s
Evopresent/camel/benchmarks/ragbench.py:174
↓ 1 callersMethodread_parquet
r"""Reads a Parquet file and returns a DataFrame. Args: file_path (str): The path to the Parquet file. *args (Any): A
Evopresent/camel/loaders/panda_reader.py:171
↓ 1 callersFunctionreconcile_visual_ids_with_extracted
Rewrite each visual element to use the extracted ID, not the caption's Figure X. Logic per visual element: - Clean caption (remove leading
Evopresent/evopresent/ppt/ppt_gen_pipeline.py:113
↓ 1 callersMethodreduce_step
r"""Performs one step of the conversation by flattening options to the critic, getting the option, and parsing the choice. Args:
Evopresent/camel/agents/critic_agent.py:165
↓ 1 callersMethodrefine_3d_model
r"""Refines a 3D model using the Meshy API. Args: preview_task_id (str): The task ID of the preview to refine. Returns:
Evopresent/camel/toolkits/meshy_toolkit.py:77
↓ 1 callersMethodrefresh_access_token
r"""Refresh the access token using a refresh token. Args: refresh_token (str): The refresh token issued by Discord that
Evopresent/camel/bots/discord/discord_app.py:205
↓ 1 callersFunctionremove_meta_key
(d)
video_generation/MegaTTS3/tts/utils/commons/hparams.py:66
↓ 1 callersFunctionrender_html_to_image_sync
(html_content, slide_title, try_index=None, wait_for_animations=True, output_dir_name="critique_screenshots")
Evopresent/evopresent/ppt/gen_pptx_code.py:350
↓ 1 callersFunctionrendered_dims
(html: Path)
Evopresent/utils/wei_utils.py:938
↓ 1 callersFunctionreplace_image_placeholders
(html_content, image_details_map)
Evopresent/evopresent/ppt/gen_pptx_code.py:592
↓ 1 callersMethodreset_parameters
(self)
video_generation/MegaTTS3/tts/modules/ar_dur/commons/transformer.py:201
↓ 1 callersFunctionreshape_for_broadcast
(freqs_cis: torch.Tensor, x: torch.Tensor)
video_generation/MegaTTS3/tts/modules/llm_dit/transformer.py:31
↓ 1 callersMethodresults
r"""Get the results. Returns: List[Dict[str, Any]]: The results.
Evopresent/camel/benchmarks/base.py:146
↓ 1 callersMethodretrieve
r"""Retrieve the relevant content for the query. Args: query (str): The query to retrieve the content for. contents (
Evopresent/camel/benchmarks/gaia.py:40
↓ 1 callersFunctionreturn_prompt_wrapper
r"""Wrapper that converts the return value of a function to an input class instance if it's a string. Args: cls (Any): The class to c
Evopresent/camel/prompts/base.py:24
↓ 1 callersMethodreturn_task
r"""Return a task to the sender, indicating that the task has been processed by the worker.
Evopresent/camel/societies/workforce/task_channel.py:140
↓ 1 callersFunctionrmse
r"""Calculate Root Mean Squared Error (RMSE). Args: input_trues (Sequence[float]): Ground truth values. input_preds (Sequence[flo
Evopresent/camel/benchmarks/ragbench.py:65
↓ 1 callersMethodrun
r"""Executes the given code in the conatiner attached to the interpreter, and captures the stdout and stderr streams. Args:
Evopresent/camel/interpreters/docker_interpreter.py:165
↓ 1 callersMethodrun
r"""Generate subtasks based on the input task prompt. Args: task_prompt (Union[str, TextPrompt]): The prompt for the task to
Evopresent/camel/agents/task_agent.py:168
↓ 1 callersMethodrun_atomic
r"""Run an atomic operation on the agent. Ensures thread-safe execution of the callback function by using a lock. Args:
Evopresent/camel/agents/programmed_agent_instruction.py:163
↓ 1 callersFunctionrun_code_with_utils
(code, utils_functions)
Evopresent/utils/wei_utils.py:216
↓ 1 callersMethodrun_file
r"""Executes a code file in a subprocess and captures its output. Args: file (Path): The path object of the file to run.
Evopresent/camel/interpreters/subprocess_interpreter.py:78
↓ 1 callersFunctionrun_modular
(all_code, file_name, with_border=True, with_label=True)
Evopresent/utils/wei_utils.py:263
↓ 1 callersFunctionrun_pipeline
(args: argparse.Namespace)
video_generation/full_pipline.py:71
↓ 1 callersFunctionruns_merge
(paragraph: _Paragraph)
Evopresent/utils/src/utils.py:58
↓ 1 callersMethodsample
(self, size, device)
video_generation/MegaTTS3/tts/modules/llm_dit/cfm.py:42
↓ 1 callersMethodsample_human_tasks
r"""Sample a specified number of human tasks from the loaded seed. Args: count (int): Number of human tasks to sample. R
Evopresent/camel/datagen/self_instruct/self_instruct.py:105
↓ 1 callersMethodsample_location_and_conditional_flow
Compute the sample xt (drawn from N(t * x1 + (1 - t) * x0, sigma)) and the conditional vector field ut(x1|x0) = x1 - x0, see Eq.(15)
video_generation/MegaTTS3/tts/modules/llm_dit/cfm.py:189
↓ 1 callersMethodsample_machine_tasks
r"""Sample a specified number of machine tasks. Args: count (int): Number of machine tasks to sample. Returns:
Evopresent/camel/datagen/self_instruct/self_instruct.py:118
↓ 1 callersMethodsample_noise_like
(self, x)
video_generation/MegaTTS3/tts/modules/llm_dit/cfm.py:186
↓ 1 callersMethodsample_xt
Draw a sample from the probability path N(t * x1 + (1 - t) * x0, sigma), see (Eq.14) [1]. Parameters ---------- x0 :
video_generation/MegaTTS3/tts/modules/llm_dit/cfm.py:134
↓ 1 callersFunctionsanitize_and_enforce_required
r"""Cleans and updates the function schema to conform with OpenAI's requirements: - Removes invalid 'default' fields from the parameters schem
Evopresent/camel/toolkits/function_tool.py:189
↓ 1 callersMethodsanitize_text
(self, lines)
Evopresent/docling/models/page_assemble_model.py:32
↓ 1 callersMethodsave_video
Save generated face video
video_generation/tts_face_generator.py:299
↓ 1 callersFunctionscore_layout
Scoring-only API: returns {AestheticScore, Acceptable}. Only uses screenshot and layout JSON for scoring; ignores HTML content.
Evopresent/evopresent/ppt/layout_checker.py:373
↓ 1 callersMethodsearch_reddit
r"""Search Reddit based on the provided keywords. Args: keywords (List[str]): The keywords to search for on Reddit. n
Evopresent/camel/toolkits/ask_news_toolkit.py:214
↓ 1 callersFunctionsequence_mask
(length, max_length=None)
video_generation/MegaTTS3/tts/modules/ar_dur/commons/rel_transformer.py:34
↓ 1 callersMethodset_all_slides
Set all slide metadata parsed from presentation.json.
Evopresent/evopresent/ppt/gen_speech.py:21
↓ 1 callersMethodset_buffer
(self, name, tensor, incremental_state)
video_generation/MegaTTS3/tts/modules/ar_dur/commons/rot_transformer.py:608
↓ 1 callersMethodset_buffer
(self, name, tensor, incremental_state)
video_generation/MegaTTS3/tts/modules/ar_dur/commons/transformer.py:635
↓ 1 callersMethodset_figure_start_index
(self, start_index: int)
Evopresent/evopresent/ppt/visualization_helper.py:88
↓ 1 callersMethodset_output_language
r"""Sets the output language for the system message. This method updates the output language for the system message. The output langua
Evopresent/camel/agents/chat_agent.py:450
↓ 1 callersMethodset_session
(self, session_id)
Evopresent/utils/src/utils.py:323
↓ 1 callersMethodsetup_handlers
r"""Sets up the event handlers for Slack events, such as `app_mention` and `message`. This method registers the `app_mention` and `on
Evopresent/camel/bots/slack/slack_app.py:137
↓ 1 callersFunctionsinusoids
Returns sinusoids for positional embedding
video_generation/MegaTTS3/tts/modules/aligner/whisper_small.py:65
↓ 1 callersFunctionsplit_ph
Input: ph_timestamp, shape [T]
video_generation/MegaTTS3/tts/utils/text_utils/ph_tone_convert.py:80
↓ 1 callersFunctionsplit_ph_timestamp
Input: ph_timestamp, shape [T]
video_generation/MegaTTS3/tts/utils/text_utils/ph_tone_convert.py:39
↓ 1 callersMethodsplit_text_and_number
(self, input_string: str)
Evopresent/docling/backend/msword_backend.py:208
↓ 1 callersMethodstart
r"""Asynchronously start the Discord bot using its token. This method starts the bot and logs into Discord asynchronously using the p
Evopresent/camel/bots/discord/discord_app.py:123
↓ 1 callersMethodstatus
(self)
Evopresent/camel/storages/vectordb_storages/qdrant.py:409
↓ 1 callersMethodstep
r"""Advances the conversation by taking a message from the assistant, processing it using the user agent, and then processing the resulting
Evopresent/camel/societies/role_playing.py:471
↓ 1 callersMethodstep_tool_call_async
r"""Execute the async function with arguments following the model's response. Args: response (Dict[str, Any]): The respon
Evopresent/camel/agents/chat_agent.py:1441
↓ 1 callersMethodstop
r"""Stop all the child nodes under it. The node itself will be stopped by its parent node.
Evopresent/camel/societies/workforce/workforce.py:478
↓ 1 callersMethodstop
r"""Stop the API server. Returns: RemoteHttpRuntime: The current runtime.
Evopresent/camel/runtime/remote_http_runtime.py:180
↓ 1 callersMethodstore_section
Store the section heading in the docling document. Only the predefined sections from PatentHeading will be handled. The other section
Evopresent/docling/backend/xml/uspto_backend.py:919
↓ 1 callersFunctionstrip_ids
Strip ids_to_strip from the end ids.
video_generation/MegaTTS3/tts/utils/text_utils/text_encoder.py:44
↓ 1 callersMethodsupports_pagination
(cls)
Evopresent/docling/datamodel/document.py:222
↓ 1 callersMethodsynthesize_execution_output
r"""Synthesizes the output of the function based on the provided positional arguments and keyword arguments. Args: args (
Evopresent/camel/toolkits/function_tool.py:652
↓ 1 callersMethodsynthesize_openai_tool_schema
r"""Synthesizes an OpenAI tool schema for the specified function. This method uses a language model (LLM) to synthesize the OpenAI tool
Evopresent/camel/toolkits/function_tool.py:597
↓ 1 callersMethodtimestep_embedding
Create sinusoidal timestep embeddings. :param t: a 1-D Tensor of N indices, one per batch element. These may be fractional. :param dim:
video_generation/models/float/FMT.py:103
↓ 1 callersFunctionto_docling_document
(doc_glm, update_name_label=False)
Evopresent/docling/utils/glm_utils.py:70
↓ 1 callersFunctionto_mp3
(out_path)
video_generation/MegaTTS3/tts/utils/audio_utils/io.py:46
↓ 1 callersMethodto_openai_assistant_message
r"""Converts the message to an :obj:`OpenAIAssistantMessage` object. Returns: OpenAIAssistantMessage: The converted :obj:`OpenAIA
Evopresent/camel/messages/base.py:521
↓ 1 callersMethodto_openai_assistant_message
r"""Converts the message to an :obj:`OpenAIAssistantMessage` object. Returns: OpenAIAssistantMessage: The converted :obj:`OpenAIA
Evopresent/camel/messages/func_message.py:114
↓ 1 callersMethodto_openai_system_message
r"""Converts the message to an :obj:`OpenAISystemMessage` object. Returns: OpenAISystemMessage: The converted :obj:`OpenAISystemM
Evopresent/camel/messages/base.py:404
↓ 1 callersMethodto_openai_tool_message
r"""Converts the message to an :obj:`OpenAIToolMessageParam` object with the role being "tool". Returns: OpenAIToolMessag
Evopresent/camel/messages/func_message.py:142
↓ 1 callersMethodto_openai_user_message
r"""Converts the message to an :obj:`OpenAIUserMessage` object. Returns: OpenAIUserMessage: The converted :obj:`OpenAIUserMessage
Evopresent/camel/messages/base.py:413
↓ 1 callersFunctionto_pascal
Convert a snake_case string to PascalCase. Args: snake (str): The snake_case string to be converted. Returns: str: The conve
Evopresent/camel/utils/commons.py:336
↓ 1 callersFunctionto_wav_bytes
(wav, sr, norm=False)
video_generation/MegaTTS3/tts/utils/audio_utils/io.py:25
↓ 1 callersMethodtoken_counter
(self)
Evopresent/camel/utils/token_counting.py:321
↓ 1 callersMethodtopological_sort
r"""Sort a list of tasks by topological way. Args: tasks (List[Task]): The giving list of tasks. Returns: Th
Evopresent/camel/tasks/task.py:324
↓ 1 callersFunctiontouching_bottom
(sname, sbox)
Evopresent/utils/wei_utils.py:854
↓ 1 callersFunctiontouching_left
(sname, sbox)
Evopresent/utils/wei_utils.py:821
↓ 1 callersFunctiontouching_right
(sname, sbox)
Evopresent/utils/wei_utils.py:833
↓ 1 callersFunctiontouching_top
(sname, sbox)
Evopresent/utils/wei_utils.py:844
↓ 1 callersMethodtrain
r"""Get the training data. Returns: List[Dict[str, Any]]: The training data.
Evopresent/camel/benchmarks/base.py:87
↓ 1 callersFunctiontraverse_dict
(d, func, ctx)
video_generation/MegaTTS3/tts/utils/commons/hparams.py:42
↓ 1 callersFunctiontry_modify_message_with_format
r"""Modifies the content of the message to include the instruction of using the response format. The message will not be modified in the foll
Evopresent/camel/models/_utils.py:22
↓ 1 callersMethodunload
(self)
Evopresent/docling/backend/pypdfium2_backend.py:232
↓ 1 callersMethodunload
(self)
Evopresent/docling/backend/docling_parse_backend.py:185
↓ 1 callersMethodunload
(self)
Evopresent/docling/backend/docling_parse_v2_backend.py:200
↓ 1 callersMethodupdate_action_space
r"""Updates action space for *python* interpreter
Evopresent/camel/interpreters/base.py:47
↓ 1 callersMethodupdate_result
r"""Set task result and mark the task as DONE. Args: result (str): The task result.
Evopresent/camel/tasks/task.py:123
↓ 1 callersFunctionupfirdn2d
(input, kernel, up=1, down=1, pad=(0, 0))
video_generation/models/float/encoder.py:32
↓ 1 callersFunctionupfirdn2d_native
(input, kernel, up_x, up_y, down_x, down_y, pad_x0, pad_x1, pad_y0, pad_y1)
video_generation/models/float/styledecoder.py:12
↓ 1 callersFunctionupfirdn2d_native
(input, kernel, up_x, up_y, down_x, down_y, pad_x0, pad_x1, pad_y0, pad_y1)
video_generation/models/float/encoder.py:12
↓ 1 callersMethodvalidate_equations
Validate equation syntax within HTML text content.
Evopresent/evopresent/ppt/stable_mathjax.py:46
↓ 1 callersMethodvalidate_meta_dict_keys
r"""Validates the keys of the meta_dict. Args: meta_dict (Dict[str, str]): The dictionary to validate.
Evopresent/camel/generators.py:85
↓ 1 callersFunctionverify_deficiency
Verifies the model's output based on the F1 score of deficiency CATEGORIES. The reward is 1.0 if the category-level F1 score is > 0.7, o
train/src/train_multi_task.py:499
↓ 1 callersMethodwait
r"""Wait for the API Server to be ready. Args: timeout (int): The number of seconds to wait. (default: :obj: `10`) Retur
Evopresent/camel/runtime/remote_http_runtime.py:161
↓ 1 callersMethodwalk_linear
(self, pptx_obj, doc)
Evopresent/docling/backend/mspowerpoint_backend.py:365
↓ 1 callersFunctionwmf_to_images
(blob: bytes, filepath: str)
Evopresent/utils/src/utils.py:182
↓ 1 callersMethodwrite_records
r"""Writes records to the memory, appending them to existing ones. Args: records (List[MemoryRecord]): Records to be added to the
Evopresent/camel/memories/base.py:32
FunctionWNConvTranspose1d
(*args, **kwargs)
video_generation/MegaTTS3/tts/modules/wavvae/decoder/hifigan_modules.py:95
Method__add__
r"""Addition operator override for :obj:`BaseMessage`. Args: other (Any): The value to be added with. Returns:
Evopresent/camel/messages/base.py:184
Method__call__
(self, *args: Any, **kwargs: Any)
Evopresent/camel/toolkits/function_tool.py:385
← previousnext →1,001–1,100 of 2,738, ranked by callers