Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -192,10 +192,14 @@ if query:
|
|
192 |
|
193 |
QUERY:
|
194 |
{retriever_query}
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
-
|
|
|
|
|
|
|
|
|
199 |
"""
|
200 |
|
201 |
context_relevancy_checker_prompt = PromptTemplate(input_variables=["retriever_query","context"],template=relevancy_prompt)
|
|
|
192 |
|
193 |
QUERY:
|
194 |
{retriever_query}
|
195 |
+
You MUST respond in valid JSON format only.
|
196 |
+
DO NOT add any explanations, thoughts, or text outside the JSON.
|
197 |
+
### **Example JSON Format**
|
198 |
+
```json
|
199 |
+
[
|
200 |
+
{"content": 1, "score": 0, "reasoning": "The content is relevant."},
|
201 |
+
{"content": 2, "score": 1, "reasoning": "The content is irrelevant."}
|
202 |
+
]
|
203 |
"""
|
204 |
|
205 |
context_relevancy_checker_prompt = PromptTemplate(input_variables=["retriever_query","context"],template=relevancy_prompt)
|