Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -97,15 +97,16 @@ class DocumentRetrievalAndGeneration:
|
|
| 97 |
You are a knowledgeable assistant with access to a comprehensive database.
|
| 98 |
I need you to answer my question and provide related information in a specific format.
|
| 99 |
I have provided five relatable json files {content}, choose the most suitable chunks for answering the query
|
|
|
|
| 100 |
Here's what I need:
|
| 101 |
Include a final answer without additional comments, sign-offs, or extra phrases. Be direct and to the point.
|
| 102 |
content
|
| 103 |
-
|
| 104 |
Here's my question:
|
| 105 |
Query:{query}
|
| 106 |
Solution==>
|
| 107 |
-
|
| 108 |
-
|
| 109 |
Example
|
| 110 |
Query: "How to use IPU1_0 instead of A15_0 to process NDK in TDA2x-EVM",
|
| 111 |
Solution: "To use IPU1_0 instead of A15_0 to process NDK in TDA2x-EVM, you need to modify the configuration file of the NDK application. Specifically, change the processor reference from 'A15_0' to 'IPU1_0'.",
|
|
@@ -121,6 +122,9 @@ class DocumentRetrievalAndGeneration:
|
|
| 121 |
Example
|
| 122 |
Query:"What is the price of latest apple MACBOOK "
|
| 123 |
Solution:"NO SOLUTION AVAILABLE"
|
|
|
|
|
|
|
|
|
|
| 124 |
</s>
|
| 125 |
"""
|
| 126 |
# prompt = f"Query: {query}\nSolution: {content}\n"
|
|
|
|
| 97 |
You are a knowledgeable assistant with access to a comprehensive database.
|
| 98 |
I need you to answer my question and provide related information in a specific format.
|
| 99 |
I have provided five relatable json files {content}, choose the most suitable chunks for answering the query
|
| 100 |
+
RETURN ONLY SOLUTION . IF THEIR IS NO ANSWER RELATABLE IN RETRIEVED CHUNKS , RETURN " NO SOLUTION AVAILABLE"
|
| 101 |
Here's what I need:
|
| 102 |
Include a final answer without additional comments, sign-offs, or extra phrases. Be direct and to the point.
|
| 103 |
content
|
| 104 |
+
|
| 105 |
Here's my question:
|
| 106 |
Query:{query}
|
| 107 |
Solution==>
|
| 108 |
+
|
| 109 |
+
|
| 110 |
Example
|
| 111 |
Query: "How to use IPU1_0 instead of A15_0 to process NDK in TDA2x-EVM",
|
| 112 |
Solution: "To use IPU1_0 instead of A15_0 to process NDK in TDA2x-EVM, you need to modify the configuration file of the NDK application. Specifically, change the processor reference from 'A15_0' to 'IPU1_0'.",
|
|
|
|
| 122 |
Example
|
| 123 |
Query:"What is the price of latest apple MACBOOK "
|
| 124 |
Solution:"NO SOLUTION AVAILABLE"
|
| 125 |
+
|
| 126 |
+
RETURN ONLY SOLUTION . IF THEIR IS NO ANSWER RELATABLE IN RETRIEVED CHUNKS , RETURN " NO SOLUTION AVAILABLE"
|
| 127 |
+
IF THE QUERY AND THE RETRIEVED CHUNKS DO NOT CORRELATE MEANINGFULLY, OR IF THE QUERY IS NOT RELEVANT TO TDA2 OR RELATED TOPICS, THEN "NO SOLUTION AVAILABLE."
|
| 128 |
</s>
|
| 129 |
"""
|
| 130 |
# prompt = f"Query: {query}\nSolution: {content}\n"
|