MCPcopy Create free account

hub / github.com/SalesforceAIResearch/promptomatix / functions

Functions248 in github.com/SalesforceAIResearch/promptomatix

Methoddataset_to_dict_list
Convert dataset slice to list of dictionaries.
src/promptomatix/core/config.py:1640
Functiondownload_session
Download a session's data to a file. Args: session_id (str): The ID of the session to download output_path (str, optiona
src/promptomatix/main.py:451
Methodemit
(self, record)
src/promptomatix/core/config.py:131
Methodemit
(self, record)
src/promptomatix/core/optimizer.py:817
Functionextract_constraints_from_human_input
(human_input: str)
src/promptomatix/core/prompts.py:1600
Functionextract_input_fields_from_human_input
(task_description: str, human_input: str, sample_data: str)
src/promptomatix/core/prompts.py:1828
Functionextract_metrics_from_human_input
(human_input: str)
src/promptomatix/core/prompts.py:1618
Functionextract_output_fields_from_human_input
(task_description: str, human_input: str, sample_data: str)
src/promptomatix/core/prompts.py:2035
Functionextract_output_format_from_human_input
(human_input: str)
src/promptomatix/core/prompts.py:1582
Functionextract_sample_data_from_human_input
(human_input: str)
src/promptomatix/core/prompts.py:1573
Functionextract_style_guide_from_human_input
(human_input: str)
src/promptomatix/core/prompts.py:1591
Methodformat_log
Format the log in a human-readable way
src/promptomatix/logger.py:20
Methodfrom_file
Load configuration from a JSON or YAML file. Args: filepath: Path to the configuration file Returns:
src/promptomatix/core/config.py:832
Functiongenerate_constraints_from_task_description_and_sample_data
(task_description: str, sample_data: str)
src/promptomatix/core/prompts.py:639
Functiongenerate_input_fields_from_task_description_and_sample_data
(task_description: str, sample_data: str)
src/promptomatix/core/prompts.py:666
Functiongenerate_meta_prompt
(initial_prompt)
src/promptomatix/core/prompts.py:2799
Functiongenerate_meta_prompt_2
(initial_prompt)
src/promptomatix/core/prompts.py:2953
Functiongenerate_output_fields_from_task_description_and_sample_data
(task_description: str, sample_data: str)
src/promptomatix/core/prompts.py:678
Functiongenerate_output_format_from_task_description_and_sample_data
(task_description: str, sample_data: str)
src/promptomatix/core/prompts.py:615
Functiongenerate_prompt_changes_prompt_3
(prompt, FEEDBACK_LIST)
src/promptomatix/core/prompts.py:2723
Functiongenerate_prompt_feedback
Generate targeted feedback for AI system prompt optimization. Args: user_input (str): Original user input/request ai_sys
src/promptomatix/core/prompts.py:2144
Functiongenerate_prompt_feedback_2
Generate targeted feedback for AI system prompt optimization. Args: user_input (str): Original user input/request ai_sys
src/promptomatix/core/prompts.py:2339
Functiongenerate_sample_data_from_task_description
(task_description: str)
src/promptomatix/core/prompts.py:439
Functiongenerate_sample_data_from_task_description_and_raw_input_old
(task_description: str, human_input: str)
src/promptomatix/core/prompts.py:1091
Functiongenerate_sample_data_from_task_description_and_raw_input_with_question_and_context
( task_description: str, human_input: str, question: str = "", context: str = "" )
src/promptomatix/core/prompts.py:771
Functiongenerate_style_guide_from_task_description_and_sample_data
(task_description: str, sample_data: str)
src/promptomatix/core/prompts.py:626
Functiongenerate_synthetic_data_validation_prompt
(original_sample: str, generated_data: str)
src/promptomatix/core/prompts.py:133
Functiongenerate_task_type_from_task_description_and_sample_data
(task_description: str, sample_data: str)
src/promptomatix/core/prompts.py:652
Functiongenrate_prompt_changes_prompt_2
(FEEDBACK_LIST)
src/promptomatix/core/prompts.py:2712
Methodget_detailed_metrics
Returns detailed breakdown of all metrics for analysis purposes.
src/promptomatix/metrics/metrics.py:390
Methodget_final_eval_metrics
Returns appropriate final evaluation metric function based on task type. Args: task_type (str): Type of the task
src/promptomatix/metrics/metrics.py:121
Methodget_lm
Initialize and return appropriate language model based on provider. Args: provider: The model provider (e.g., 'o
src/promptomatix/lm_manager.py:16
Methodis_valid_example
(example)
src/promptomatix/core/config.py:1580
Functionlist_sessions
List all available sessions. Returns: List[Dict]: List of session metadata
src/promptomatix/main.py:544
Functionload_session_from_file
Load a session from a specific file path. Args: session_file_path (str): Path to the session file Returns:
src/promptomatix/main.py:411
Functionoptimize_with_synthetic_feedback
Optimize prompt based on synthetic dataset feedback for a given session. Args: session_id (str): Session identifier synt
src/promptomatix/main.py:264
Functionparse_dict_strings
Parse and clean dictionary strings from various formats. Args: text (str): Input text containing dictionary-like structure
src/promptomatix/utils/parsing.py:9
Methodprocess_answer
Keep the full answer including reasoning steps.
src/promptomatix/core/config.py:1529
Methodprocess_parallel
Process prompts in parallel (limited by API rate limits).
examples/scripts/batch_processing.py:89
Methodprocess_single
(prompt_data)
examples/scripts/batch_processing.py:93
Methodsave
Save configuration to a file. Args: filepath: Path where to save the configuration
src/promptomatix/core/config.py:855
Functionsave_feedback
Save a feedback for a prompt. Args: text (str): Text being feedbacked on start_offset (int): Feedback start position
src/promptomatix/main.py:362
Functionsimplify_human_feedback
(human_input: str)
src/promptomatix/core/prompts.py:330
Methodto_dict
(self)
src/promptomatix/logger.py:128
Methodtransform_example
(example)
src/promptomatix/core/config.py:1568
Methodupdate_human_input
Update the human input prompt.
src/promptomatix/core/session.py:81
Methodupdate_session
Update a session and persist changes.
src/promptomatix/core/session.py:199
Functionupload_session
Upload a session from a file. Args: session_file_path (str): Path to the session file to upload Returns: Dict:
src/promptomatix/main.py:504
← previous201–248 of 248, ranked by callers