Skip to content

Commit

Permalink
Fixes #9, remove "question_quality" variable
Browse files Browse the repository at this point in the history
  • Loading branch information
JolanThomassin committed Mar 4, 2024
1 parent fa67e42 commit 71a436f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion ailab/db/finesse/prompt/json_template.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"page_score": "",
"question_quality": "",
"crawl_id": "",
"chunk_id": "",
"title": "",
Expand Down
2 changes: 1 addition & 1 deletion ailab/db/finesse/prompt/qna_user_prompt.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Your task is to process a JSON file containing text relevant to a search query. Produce a new JSON file completing all existing keys in the JSON template. Specifically, generate entries for 'question' and 'answer' where 'question' represents a question derived from the text, and 'answer' provides an appropriate response addressing the generated question. After that, determine a score into "question_quality" between 0.0 and 1.0 for the question you generated. The more complex the question is, the higher the score it receives. Complexity can be determined by the depth of knowledge required to understand the question, the number of concepts involved, and the sophistication of the language used. Every forms or PDF question like: "how do I fill a form?" or "How can I open a form?" or "how to open this document?" will be low scored.
Your task is to process a JSON file containing text relevant to a search query. Produce a new JSON file completing all existing keys in the JSON template. Specifically, generate entries for 'question' and 'answer' where 'question' represents a question derived from the text and 'answer' provides an appropriate answer addressing the generated question.

0 comments on commit 71a436f

Please sign in to comment.