Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -75,12 +75,20 @@ def format_prompt(query):
|
|
| 75 |
I need you to answer my question and provide related information in a specific format.
|
| 76 |
I have provided four relatable json files , choose the most suitable chunks for answering the query
|
| 77 |
Here's what I need:
|
| 78 |
-
Include a
|
| 79 |
|
| 80 |
Here's my question:
|
| 81 |
{query}
|
| 82 |
|
| 83 |
Solution==>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 84 |
"""
|
| 85 |
# The format I want answer in
|
| 86 |
# user_query ==> query
|
|
|
|
| 75 |
I need you to answer my question and provide related information in a specific format.
|
| 76 |
I have provided four relatable json files , choose the most suitable chunks for answering the query
|
| 77 |
Here's what I need:
|
| 78 |
+
Include a final answer without additional comments, sign-offs, or extra phrases. Be direct and to the point.
|
| 79 |
|
| 80 |
Here's my question:
|
| 81 |
{query}
|
| 82 |
|
| 83 |
Solution==>
|
| 84 |
+
|
| 85 |
+
Example1
|
| 86 |
+
Query: "How to use IPU1_0 instead of A15_0 to process NDK in TDA2x-EVM",
|
| 87 |
+
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'.",
|
| 88 |
+
|
| 89 |
+
Example2
|
| 90 |
+
Query: "Can BQ25896 support I2C interface?",
|
| 91 |
+
Solution: "Yes, the BQ25896 charger supports the I2C interface for communication.",
|
| 92 |
"""
|
| 93 |
# The format I want answer in
|
| 94 |
# user_query ==> query
|