Spaces:
Sleeping
Sleeping
Update ragagent.py
Browse files- ragagent.py +1 -1
ragagent.py
CHANGED
@@ -39,7 +39,7 @@ class RAGAgent():
|
|
39 |
of a retrieved document to a user question. If the document contains keywords related to the user question,
|
40 |
grade it as relevant. It does not need to be a stringent test. The goal is to filter out erroneous retrievals. \n
|
41 |
Give a binary score 'yes' or 'no' score to indicate whether the document is relevant to the question. \n
|
42 |
-
Provide the binary score as a JSON with a single key 'score' and no premable or explanation. The JSON format should be exactly: {"score": "yes"} or {"score": "no"} \n
|
43 |
<|eot_id|><|start_header_id|>user<|end_header_id|>
|
44 |
Here is the retrieved document: \n\n {document} \n\n
|
45 |
Here is the user question: {question} \n <|eot_id|><|start_header_id|>assistant<|end_header_id|>
|
|
|
39 |
of a retrieved document to a user question. If the document contains keywords related to the user question,
|
40 |
grade it as relevant. It does not need to be a stringent test. The goal is to filter out erroneous retrievals. \n
|
41 |
Give a binary score 'yes' or 'no' score to indicate whether the document is relevant to the question. \n
|
42 |
+
Provide the binary score as a JSON with a single key 'score' and no premable or explanation. The JSON format should be exactly: {{"score": "yes"}} or {{"score": "no"}} \n
|
43 |
<|eot_id|><|start_header_id|>user<|end_header_id|>
|
44 |
Here is the retrieved document: \n\n {document} \n\n
|
45 |
Here is the user question: {question} \n <|eot_id|><|start_header_id|>assistant<|end_header_id|>
|