ciyidogan commited on
Commit
749512a
·
verified ·
1 Parent(s): c12bda3

Update flare-ui/src/app/components/environment/environment.component.ts

Browse files
flare-ui/src/app/components/environment/environment.component.ts CHANGED
@@ -75,8 +75,7 @@ export class EnvironmentComponent implements OnInit {
75
  max_params_per_question: 2,
76
  smart_grouping: true,
77
  retry_unanswered: true,
78
- use_natural_language: true,
79
- project_language: 'tr'
80
  };
81
 
82
  loading = true;
@@ -145,14 +144,14 @@ Still needed:
145
  Previously asked but not answered:
146
  {{unanswered_params}}
147
 
148
- Rules:
149
  1. Ask for maximum {{max_params}} parameters in one question
150
  2. Group parameters that naturally go together (like from/to cities, dates)
151
  3. If some parameters were asked before but not answered, include them again
152
  4. Be natural and conversational in {{project_language}}
153
- 5. Use context from the conversation to make the question flow naturally
 
154
 
155
- Generate ONLY the question, nothing else.`;
156
  }
157
 
158
  resetCollectionPrompt(): void {
 
75
  max_params_per_question: 2,
76
  smart_grouping: true,
77
  retry_unanswered: true,
78
+ collection_prompt: this.getDefaultCollectionPrompt()
 
79
  };
80
 
81
  loading = true;
 
144
  Previously asked but not answered:
145
  {{unanswered_params}}
146
 
 
147
  1. Ask for maximum {{max_params}} parameters in one question
148
  2. Group parameters that naturally go together (like from/to cities, dates)
149
  3. If some parameters were asked before but not answered, include them again
150
  4. Be natural and conversational in {{project_language}}
151
+ 5. Don't repeat information already collected
152
+ 6. Ask in a friendly, human way
153
 
154
+ Generate a natural question to collect the missing parameters.`;
155
  }
156
 
157
  resetCollectionPrompt(): void {