Spaces:

arjunanand13 commited on
Commit
bceeb55
1 Parent(s): c119679

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -0
app.py CHANGED
@@ -103,6 +103,19 @@ class DocumentRetrievalAndGeneration:
103
  Solution: "Yes, the BQ25896 charger supports the I2C interface for communication."
104
  </s>
105
  """
 
 
 
 
 
 
 
 
 
 
 
 
 
106
  # prompt = f"Query: {query}\nSolution: {content}\n"
107
 
108
  # Encode and prepare inputs
 
103
  Solution: "Yes, the BQ25896 charger supports the I2C interface for communication."
104
  </s>
105
  """
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 {content}, 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
+ content
113
+ Here's my question:
114
+ Query:{query}
115
+ Solution==>
116
+ RETURN ONLY SOLUTION . IF THEIR IS NO ANSWER RELATABLE IN RETRIEVED CHUNKS , RETURN " NO SOLUTION AVAILABLE"
117
+ </s>
118
+ """
119
  # prompt = f"Query: {query}\nSolution: {content}\n"
120
 
121
  # Encode and prepare inputs