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: { headers: {
'Content-Type': 'application/json' 'Content-Type': 'application/json'
}, },
}).then(r => r.json()) }).then(r => r.json()).then(r => {console.log(r.status);})
.catch(error => console.error(error)); .catch(error => console.error(error));
console.log(ratings); console.log(ratings);
updateNeedForm(false); updateNeedForm(false);
@ -91,9 +91,9 @@ const FeedbackForm = (props) => {
name="If applicable, was the response true?" name="If applicable, was the response true?"
onChange={(e) => setResponseTruthfulness(e.target.value)} onChange={(e) => setResponseTruthfulness(e.target.value)}
> >
<option value="NA">NA</option>
<option value="yes">yes</option> <option value="yes">yes</option>
<option value="no">no</option> <option value="no">no</option>
<option value="NA">NA</option>
</select> </select>
</div> </div>
<div class="feedback-question"> <div class="feedback-question">
@ -125,40 +125,42 @@ const FeedbackForm = (props) => {
</div> </div>
<div class="feedback-question"> <div class="feedback-question">
<label for="evidence-usefulness"> <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> </label>
<select <select
id="evidence-usefulness" id="evidence-usefulness"
name="If applicable, was the answer contained in the evidence?" name="If applicable, was the answer contained in the evidence?"
onChange={(e) => setEvidence(e.target.value)} onChange={(e) => setEvidence(e.target.value)}
> >
<option value="NA">NA</option>
<option value="yes">yes</option> <option value="yes">yes</option>
<option value="no">no</option> <option value="no">no</option>
<option value="NA">NA</option>
</select> </select>
</div> </div>
<div class="feedback-question"> <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 <select
id="query-intent" id="query-intent"
name="What was your intent?" name="What was your query about?"
onChange={(e) => setIntent(e.target.value)} onChange={(e) => setIntent(e.target.value)}
> >
<option value="QA">QA</option> <option value="Question-Answering">Question-Answering</option>
<option value="CHITCHAT">CHITCHAT</option> <option value="CHITCHAT">Chitchatting</option>
<option value="FINDPAPER">FINDPAPER</option> <option value="FINDPAPER">Finding a Paper</option>
<option value="FINDDATASET">FINDDATASET</option> <option value="FINDDATASET">Finding a Dataset</option>
<option value="SUMMARIZEPAPER">SUMMARIZEPAPER</option> <option value="FINDPOST">Finding a Post</option>
<option value="HELP">HELP</option> <option value="SUMMARIZEPAPER">Summarizing a Paper</option>
<option value="EXPLAINPOST">EXPLAINPOST</option> <option value="HELP">Asking for Help</option>
<option value="AFFIRMATION">AFFIRMATION</option> <option value="LISTCOMMANDS">Listing the Commands</option>
<option value="NEGATION">NEGATION</option> <option value="LISTPAPERS">Listing the Papers</option>
<option value="NA">NA</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> </select>
</div> </div>
<div class="feedback-question"> <div class="feedback-question">
<label for="query-correctness"> <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> </label>
<select <select
id="query-correctness" id="query-correctness"
@ -171,7 +173,7 @@ const FeedbackForm = (props) => {
</div> </div>
<label for="correct-query"> <label for="correct-query">
Could you provide a modified context-free 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> </label>
<textarea <textarea
id="correct-query" id="correct-query"
@ -181,7 +183,7 @@ const FeedbackForm = (props) => {
' '
<div class="feedback-question"> <div class="feedback-question">
<label for="preferred response"> <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> </label>
<textarea <textarea
id="preferred response" id="preferred response"