File size: 2,079 Bytes
0646b18
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# Default Profiling Experiment Configuration
# Override these settings by creating your own YAML file

profiling:
  # Available configurations to test
  configs:
    - "settings.openai.toml"
    # - "settings.azure.toml"
    # - "settings.watsonx.toml"
  
  # Available modes to test
  modes:
    - "fast"
    - "balanced"
    # - "accurate"
  
  # Test tasks to run
  tasks:
    - "test_get_top_account_by_revenue_stream"
    # - "test_list_my_accounts"
    # - "test_find_vp_sales_active_high_value_accounts"
  
  # Number of runs per configuration
  runs: 3
  
  # Output settings
  output:
    directory: "reports"
    filename_prefix: "profiling_report"
    timestamp_format: "%Y%m%d_%H%M%S"
  
  # Langfuse settings (can be overridden by environment variables)
  langfuse:
    host: "https://cloud.langfuse.com"
    # public_key and secret_key should be set via environment variables:
    # LANGFUSE_PUBLIC_KEY and LANGFUSE_SECRET_KEY
    
    # Retry settings for fetching trace data
    # Langfuse data takes time to propagate, so we retry with exponential backoff
    retry:
      max_attempts: 10
      initial_delay: 2.0
      max_delay: 30.0

# Experiment configuration for comparing different modes
experiment:
  name: "fast_vs_balanced"
  description: "Compare fast and balanced modes"
  
  # Runs to perform
  runs:
    - name: "fast_mode"
      test_id: "settings.openai.toml:fast:test_get_top_account_by_revenue_stream"
      iterations: 3
      output: "experiments/fast_{{timestamp}}.json"
      # Optional: define environment variables for this run
      # env:
      #   MODEL_NAME: "Azure/gpt-4o"
    
    - name: "balanced_mode"
      test_id: "settings.openai.toml:balanced:test_get_top_account_by_revenue_stream"
      iterations: 3
      output: "experiments/balanced_{{timestamp}}.json"
      # Optional: define environment variables for this run
      # env:
      #   MODEL_NAME: null  # Use null to unset a variable
  
  # Comparison settings
  comparison:
    generate_html: true
    html_output: "experiments/comparison.html"
    auto_open: false