This commit is contained in:
ahmed531998 2023-04-20 03:44:46 +02:00
parent dd5f6a4538
commit c4d4d9eaf6
1 changed files with 21 additions and 19 deletions

View File

@ -45,7 +45,7 @@ const FeedbackForm = (props) => {
headers: {
'Content-Type': 'application/json'
},
}).then(r => r.json())
}).then(r => r.json()).then(r => {console.log(r.status);})
.catch(error => console.error(error));
console.log(ratings);
updateNeedForm(false);
@ -91,9 +91,9 @@ const FeedbackForm = (props) => {
name="If applicable, was the response true?"
onChange={(e) => setResponseTruthfulness(e.target.value)}
>
<option value="NA">NA</option>
<option value="yes">yes</option>
<option value="no">no</option>
<option value="NA">NA</option>
</select>
</div>
<div class="feedback-question">
@ -125,40 +125,42 @@ const FeedbackForm = (props) => {
</div>
<div class="feedback-question">
<label for="evidence-usefulness">
If applicable, was the answer contained in the evidence?
Was the answer contained in the evidence? (only if applicable; i.e, with QA)
</label>
<select
id="evidence-usefulness"
name="If applicable, was the answer contained in the evidence?"
onChange={(e) => setEvidence(e.target.value)}
>
<option value="NA">NA</option>
<option value="yes">yes</option>
<option value="no">no</option>
<option value="NA">NA</option>
</select>
</div>
<div class="feedback-question">
<label for="query-intent">What was your intent?</label>
<label for="query-intent">What was the goal of your query (your intent)?</label>
<select
id="query-intent"
name="What was your intent?"
name="What was your query about?"
onChange={(e) => setIntent(e.target.value)}
>
<option value="QA">QA</option>
<option value="CHITCHAT">CHITCHAT</option>
<option value="FINDPAPER">FINDPAPER</option>
<option value="FINDDATASET">FINDDATASET</option>
<option value="SUMMARIZEPAPER">SUMMARIZEPAPER</option>
<option value="HELP">HELP</option>
<option value="EXPLAINPOST">EXPLAINPOST</option>
<option value="AFFIRMATION">AFFIRMATION</option>
<option value="NEGATION">NEGATION</option>
<option value="NA">NA</option>
<option value="Question-Answering">Question-Answering</option>
<option value="CHITCHAT">Chitchatting</option>
<option value="FINDPAPER">Finding a Paper</option>
<option value="FINDDATASET">Finding a Dataset</option>
<option value="FINDPOST">Finding a Post</option>
<option value="SUMMARIZEPAPER">Summarizing a Paper</option>
<option value="HELP">Asking for Help</option>
<option value="LISTCOMMANDS">Listing the Commands</option>
<option value="LISTPAPERS">Listing the Papers</option>
<option value="LISTDATASETS">Listing the Datasets</option>
<option value="LISTTOPICS">Listing the VRE Topics</option>
<option value="LISTRESOURCES">Listing all the VRE Resources</option>
</select>
</div>
<div class="feedback-question">
<label for="query-correctness">
Was this modification to the query correct? {messages[0].modQuery}
Was this modification to your original query correct? {messages[0].modQuery}
</label>
<select
id="query-correctness"
@ -171,7 +173,7 @@ const FeedbackForm = (props) => {
</div>
<label for="correct-query">
Could you provide a modified context-free
(chat-history-independent) version of your query?
(not dependent on the conversation history) version of your query? *Not Mandatory to answer
</label>
<textarea
id="correct-query"
@ -181,7 +183,7 @@ const FeedbackForm = (props) => {
'
<div class="feedback-question">
<label for="preferred response">
Would you write a better response?
Would you write a better response than the one generated by Janet? *Not Mandatory to answer
</label>
<textarea
id="preferred response"