mikeboone Claude Sonnet 4.6 commited on
Commit
33fd8f9
·
1 Parent(s): c0e5f7c

feat: simplify Data Size to Small (1k) and Medium (10k)

Browse files

Dropped Standard and Large. Small=1k fact/100 dim, Medium=10k fact/500 dim.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

Files changed (1) hide show
  1. chat_interface.py +10 -12
chat_interface.py CHANGED
@@ -5119,8 +5119,8 @@ def create_chat_interface():
5119
  use_case = str(settings.get("default_use_case", "")).strip()
5120
  model = (str(settings.get("default_llm", "")).strip() or DEFAULT_LLM_MODEL)
5121
  liveboard_name = str(settings.get("liveboard_name", "")).strip()
5122
- _ft_to_size = {"100": "Small", "1000": "Medium", "5000": "Standard", "10000": "Large"}
5123
- saved_size = _ft_to_size.get(str(settings.get("fact_table_size", "5000")), "Standard")
5124
  saved_geo = str(settings.get("geo_scope", "USA Only")).strip() or "USA Only"
5125
  saved_tag = str(settings.get("tag_name", "")).strip()
5126
  saved_col_naming = str(settings.get("column_naming_style", "Regular Case")).strip() or "Regular Case"
@@ -5307,16 +5307,16 @@ def create_chat_tab(chat_controller_state, settings, current_stage, current_mode
5307
  )
5308
 
5309
  # Map saved fact_table_size → Data Size label
5310
- _ft_to_size = {"100": "Small", "1000": "Medium", "5000": "Standard", "10000": "Large"}
5311
- _saved_ft = str(settings.get('fact_table_size', '5000'))
5312
- _init_data_size = _ft_to_size.get(_saved_ft, "Standard")
5313
 
5314
  data_size_dropdown = gr.Dropdown(
5315
  label="Data Size",
5316
- choices=["Small", "Medium", "Standard", "Large"],
5317
  value=_init_data_size,
5318
  interactive=True,
5319
- info="Small 100 rows · Medium 1k · Standard 5k · Large 10k",
5320
  )
5321
  geo_scope_dropdown = gr.Dropdown(
5322
  label="Geographic Scope",
@@ -5523,12 +5523,10 @@ def create_chat_tab(chat_controller_state, settings, current_stage, current_mode
5523
  controller.settings['model'] = model
5524
  if data_size:
5525
  _size_map = {
5526
- "Small": ("100", "20"),
5527
- "Medium": ("1000", "100"),
5528
- "Standard": ("5000", "200"),
5529
- "Large": ("10000", "500"),
5530
  }
5531
- _ft, _dt = _size_map.get(data_size, ("5000", "200"))
5532
  controller.settings['fact_table_size'] = _ft
5533
  controller.settings['dim_table_size'] = _dt
5534
  if geo_scope:
 
5119
  use_case = str(settings.get("default_use_case", "")).strip()
5120
  model = (str(settings.get("default_llm", "")).strip() or DEFAULT_LLM_MODEL)
5121
  liveboard_name = str(settings.get("liveboard_name", "")).strip()
5122
+ _ft_to_size = {"1000": "Small", "10000": "Medium"}
5123
+ saved_size = _ft_to_size.get(str(settings.get("fact_table_size", "1000")), "Small")
5124
  saved_geo = str(settings.get("geo_scope", "USA Only")).strip() or "USA Only"
5125
  saved_tag = str(settings.get("tag_name", "")).strip()
5126
  saved_col_naming = str(settings.get("column_naming_style", "Regular Case")).strip() or "Regular Case"
 
5307
  )
5308
 
5309
  # Map saved fact_table_size → Data Size label
5310
+ _ft_to_size = {"1000": "Small", "10000": "Medium"}
5311
+ _saved_ft = str(settings.get('fact_table_size', '1000'))
5312
+ _init_data_size = _ft_to_size.get(_saved_ft, "Small")
5313
 
5314
  data_size_dropdown = gr.Dropdown(
5315
  label="Data Size",
5316
+ choices=["Small", "Medium"],
5317
  value=_init_data_size,
5318
  interactive=True,
5319
+ info="Small 1k rows · Medium 10k rows",
5320
  )
5321
  geo_scope_dropdown = gr.Dropdown(
5322
  label="Geographic Scope",
 
5523
  controller.settings['model'] = model
5524
  if data_size:
5525
  _size_map = {
5526
+ "Small": ("1000", "100"),
5527
+ "Medium": ("10000", "500"),
 
 
5528
  }
5529
+ _ft, _dt = _size_map.get(data_size, ("1000", "100"))
5530
  controller.settings['fact_table_size'] = _ft
5531
  controller.settings['dim_table_size'] = _dt
5532
  if geo_scope: