Spaces:
Sleeping
Sleeping
feat: descriptive labels for Pipeline and Question Style dropdowns
Browse files
app.py
CHANGED
|
@@ -13664,12 +13664,26 @@ def create_ui():
|
|
| 13664 |
custom_url = gr.Textbox(label="Endpoint URL", placeholder="https://...", visible=False)
|
| 13665 |
|
| 13666 |
pipeline_type = gr.Dropdown(
|
| 13667 |
-
choices=[
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13668 |
value="Factual Q&A",
|
| 13669 |
label="Pipeline",
|
| 13670 |
)
|
| 13671 |
question_style = gr.Dropdown(
|
| 13672 |
-
choices=[
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13673 |
value="Standard",
|
| 13674 |
label="Question Style (Factual only)",
|
| 13675 |
visible=True,
|
|
|
|
| 13664 |
custom_url = gr.Textbox(label="Endpoint URL", placeholder="https://...", visible=False)
|
| 13665 |
|
| 13666 |
pipeline_type = gr.Dropdown(
|
| 13667 |
+
choices=[
|
| 13668 |
+
("Factual Q&A: Educational questions with validation", "Factual Q&A"),
|
| 13669 |
+
("RPToolkit: Character cards + roleplay stories", "RPToolkit (Roleplay)"),
|
| 13670 |
+
("Representation Variation: Rewrite as list, JSON, essay...", "Representation Variation"),
|
| 13671 |
+
("RAG Training: AI answers using provided context chunks", "RAG Training"),
|
| 13672 |
+
("Correction: AI gives wrong answer, then self-corrects", "Correction"),
|
| 13673 |
+
],
|
| 13674 |
value="Factual Q&A",
|
| 13675 |
label="Pipeline",
|
| 13676 |
)
|
| 13677 |
question_style = gr.Dropdown(
|
| 13678 |
+
choices=[
|
| 13679 |
+
("Standard: Normal educational Q&A", "Standard"),
|
| 13680 |
+
("Comparison: Compare X vs Y", "Comparison"),
|
| 13681 |
+
("Followup: Build on previous answers", "Followup"),
|
| 13682 |
+
("Hallucination: Nonexistent things (trains 'I don't know')", "Hallucination"),
|
| 13683 |
+
("Negative: Trick questions with flawed premises", "Negative"),
|
| 13684 |
+
("Open-ended: Broad analytical discussion", "Open-ended"),
|
| 13685 |
+
("Vague: Ambiguous questions, AI clarifies first", "Vague"),
|
| 13686 |
+
],
|
| 13687 |
value="Standard",
|
| 13688 |
label="Question Style (Factual only)",
|
| 13689 |
visible=True,
|