Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -106,15 +106,27 @@ class DocumentRetrievalAndGeneration:
|
|
106 |
prompt2 = f"""<s>
|
107 |
You are a knowledgeable assistant with access to a comprehensive database.
|
108 |
I need you to answer my question and provide related information in a specific format.
|
109 |
-
I have provided five relatable
|
110 |
Here's what I need:
|
111 |
Include a final answer without additional comments, sign-offs, or extra phrases. Be direct and to the point.
|
112 |
-
|
|
|
|
|
113 |
Here's my question:
|
114 |
-
Query:{query}
|
|
|
115 |
Solution==>
|
116 |
-
RETURN ONLY SOLUTION
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
117 |
</s>
|
|
|
118 |
"""
|
119 |
# prompt = f"Query: {query}\nSolution: {content}\n"
|
120 |
|
|
|
106 |
prompt2 = f"""<s>
|
107 |
You are a knowledgeable assistant with access to a comprehensive database.
|
108 |
I need you to answer my question and provide related information in a specific format.
|
109 |
+
I have provided five relatable JSON files. Choose the most suitable chunks for answering the query.
|
110 |
Here's what I need:
|
111 |
Include a final answer without additional comments, sign-offs, or extra phrases. Be direct and to the point.
|
112 |
+
|
113 |
+
content: {content}
|
114 |
+
|
115 |
Here's my question:
|
116 |
+
Query: {query}
|
117 |
+
|
118 |
Solution==>
|
119 |
+
RETURN ONLY SOLUTION. IF THERE IS NO ANSWER RELATABLE IN RETRIEVED CHUNKS, RETURN "NO SOLUTION AVAILABLE"
|
120 |
+
|
121 |
+
Example1:
|
122 |
+
Query: "How to use IPU1_0 instead of A15_0 to process NDK in TDA2x-EVM",
|
123 |
+
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'."
|
124 |
+
|
125 |
+
Example2:
|
126 |
+
Query: "Can BQ25896 support I2C interface?",
|
127 |
+
Solution: "Yes, the BQ25896 charger supports the I2C interface for communication."
|
128 |
</s>
|
129 |
+
|
130 |
"""
|
131 |
# prompt = f"Query: {query}\nSolution: {content}\n"
|
132 |
|