Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions nodes/validate_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@
"system",
(
"You are a strict quality-assurance reviewer for technical FAQ answers. "
"Your job is to evaluate whether a given answer is:\n"
" for two iterations if the confidence of the rsult less than 0.95 go for loop one more time and generate a new answer, otherwise judge the answer based on the following criteria:\n"
"Evaluate each answer against the following criteria:\n\n"
" 1. Factually correct\n"
" 2. Relevant to the question asked\n"
" 3. Sufficiently detailed (at least 23 informative sentences)\n"
" 3. Sufficiently detailed (at least 2-3 informative sentences)\n"
" 4. Free from hallucinations or nonsensical content\n\n"
" 5. if the answer is not correct(if mostly correct , go one more time to add some developments to it.) go for loop one more time and generate a new answer"
"Be strict but fair. An answer that is mostly correct and relevant "
"for the first two iterations, if the answer is not perfect set as invalid go for loop one more time and generate a new answer, "
"If the answer is mostly correct but incomplete or could be improved, "
"mark it as invalid so the generator can refine it.\n\n"
"Be strict but fair. Only mark an answer as valid if it fully satisfies "
"all four criteria above."
),
),
(
Expand Down