Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SalesforceAIResearch/promptomatix
/ functions
Functions
248 in github.com/SalesforceAIResearch/promptomatix
⨍
Functions
248
◇
Types & classes
22
Method
dataset_to_dict_list
Convert dataset slice to list of dictionaries.
src/promptomatix/core/config.py:1640
Function
download_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
Method
emit
(self, record)
src/promptomatix/core/config.py:131
Method
emit
(self, record)
src/promptomatix/core/optimizer.py:817
Function
extract_constraints_from_human_input
(human_input: str)
src/promptomatix/core/prompts.py:1600
Function
extract_input_fields_from_human_input
(task_description: str, human_input: str, sample_data: str)
src/promptomatix/core/prompts.py:1828
Function
extract_metrics_from_human_input
(human_input: str)
src/promptomatix/core/prompts.py:1618
Function
extract_output_fields_from_human_input
(task_description: str, human_input: str, sample_data: str)
src/promptomatix/core/prompts.py:2035
Function
extract_output_format_from_human_input
(human_input: str)
src/promptomatix/core/prompts.py:1582
Function
extract_sample_data_from_human_input
(human_input: str)
src/promptomatix/core/prompts.py:1573
Function
extract_style_guide_from_human_input
(human_input: str)
src/promptomatix/core/prompts.py:1591
Method
format_log
Format the log in a human-readable way
src/promptomatix/logger.py:20
Method
from_file
Load configuration from a JSON or YAML file. Args: filepath: Path to the configuration file Returns:
src/promptomatix/core/config.py:832
Function
generate_constraints_from_task_description_and_sample_data
(task_description: str, sample_data: str)
src/promptomatix/core/prompts.py:639
Function
generate_input_fields_from_task_description_and_sample_data
(task_description: str, sample_data: str)
src/promptomatix/core/prompts.py:666
Function
generate_meta_prompt
(initial_prompt)
src/promptomatix/core/prompts.py:2799
Function
generate_meta_prompt_2
(initial_prompt)
src/promptomatix/core/prompts.py:2953
Function
generate_output_fields_from_task_description_and_sample_data
(task_description: str, sample_data: str)
src/promptomatix/core/prompts.py:678
Function
generate_output_format_from_task_description_and_sample_data
(task_description: str, sample_data: str)
src/promptomatix/core/prompts.py:615
Function
generate_prompt_changes_prompt_3
(prompt, FEEDBACK_LIST)
src/promptomatix/core/prompts.py:2723
Function
generate_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
Function
generate_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
Function
generate_sample_data_from_task_description
(task_description: str)
src/promptomatix/core/prompts.py:439
Function
generate_sample_data_from_task_description_and_raw_input_old
(task_description: str, human_input: str)
src/promptomatix/core/prompts.py:1091
Function
generate_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
Function
generate_style_guide_from_task_description_and_sample_data
(task_description: str, sample_data: str)
src/promptomatix/core/prompts.py:626
Function
generate_synthetic_data_validation_prompt
(original_sample: str, generated_data: str)
src/promptomatix/core/prompts.py:133
Function
generate_task_type_from_task_description_and_sample_data
(task_description: str, sample_data: str)
src/promptomatix/core/prompts.py:652
Function
genrate_prompt_changes_prompt_2
(FEEDBACK_LIST)
src/promptomatix/core/prompts.py:2712
Method
get_detailed_metrics
Returns detailed breakdown of all metrics for analysis purposes.
src/promptomatix/metrics/metrics.py:390
Method
get_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
Method
get_lm
Initialize and return appropriate language model based on provider. Args: provider: The model provider (e.g., 'o
src/promptomatix/lm_manager.py:16
Method
is_valid_example
(example)
src/promptomatix/core/config.py:1580
Function
list_sessions
List all available sessions. Returns: List[Dict]: List of session metadata
src/promptomatix/main.py:544
Function
load_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
Function
optimize_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
Function
parse_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
Method
process_answer
Keep the full answer including reasoning steps.
src/promptomatix/core/config.py:1529
Method
process_parallel
Process prompts in parallel (limited by API rate limits).
examples/scripts/batch_processing.py:89
Method
process_single
(prompt_data)
examples/scripts/batch_processing.py:93
Method
save
Save configuration to a file. Args: filepath: Path where to save the configuration
src/promptomatix/core/config.py:855
Function
save_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
Function
simplify_human_feedback
(human_input: str)
src/promptomatix/core/prompts.py:330
Method
to_dict
(self)
src/promptomatix/logger.py:128
Method
transform_example
(example)
src/promptomatix/core/config.py:1568
Method
update_human_input
Update the human input prompt.
src/promptomatix/core/session.py:81
Method
update_session
Update a session and persist changes.
src/promptomatix/core/session.py:199
Function
upload_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
← previous
201–248 of 248, ranked by callers