Update app.py
Browse files
app.py
CHANGED
@@ -188,12 +188,13 @@ def open_query_prompt(past_messages: str, query: str):
|
|
188 |
|
189 |
@outlines.prompt
|
190 |
def route_llm(context: str, query: str):
|
191 |
-
"""Based on the following context, determine if the context contains the
|
192 |
-
Return 'Yes' if the context contains the informations, and 'No' if the context do NOT contains the informations.
|
193 |
-
|
194 |
-
Question: {{ query }}
|
195 |
|
196 |
-
|
|
|
|
|
|
|
|
|
197 |
"""
|
198 |
|
199 |
@outlines.prompt
|
|
|
188 |
|
189 |
@outlines.prompt
|
190 |
def route_llm(context: str, query: str):
|
191 |
+
"""Based on the following context, determine if the context contains specific and direct information needed to answer the question. Only respond with 'Yes' if the context explicitly provides the exact information required to answer the question fully and accurately. Respond with 'No' if the context does not explicitly provide the required information, or if it is missing, vague, indirect, or implied.
|
|
|
|
|
|
|
192 |
|
193 |
+
Question: {{ query }}
|
194 |
+
|
195 |
+
Context: {{ context }}
|
196 |
+
|
197 |
+
Answer (Yes/No):
|
198 |
"""
|
199 |
|
200 |
@outlines.prompt
|