HEHEBOIOG commited on
Commit
e94a311
Β·
verified Β·
1 Parent(s): e96d722

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -86,15 +86,16 @@ class AdvancedRAGChatbot:
86
  entities = []
87
 
88
  full_prompt = f"""
89
- Use the following web search results to answer the question precisely:
90
 
91
- Web Search Context:
92
  {context}
93
 
94
  Question: {query}
95
 
96
- Provide a comprehensive answer based on the web search results.
97
  """
 
98
  response = self.llm.invoke(full_prompt)
99
 
100
  return {
@@ -107,7 +108,7 @@ class AdvancedRAGChatbot:
107
 
108
  def main():
109
  st.set_page_config(
110
- page_title="Web-Powered RAG Chatbot",
111
  page_icon="🌐",
112
  layout="wide",
113
  initial_sidebar_state="expanded"
 
86
  entities = []
87
 
88
  full_prompt = f"""
89
+ Use the following context to provide an accurate and detailed answer to the question:
90
 
91
+ Context:
92
  {context}
93
 
94
  Question: {query}
95
 
96
+ Provide a clear and comprehensive response based solely on the information provided in the context, without mentioning the source.
97
  """
98
+
99
  response = self.llm.invoke(full_prompt)
100
 
101
  return {
 
108
 
109
  def main():
110
  st.set_page_config(
111
+ page_title="Realtime RAG Chatbot",
112
  page_icon="🌐",
113
  layout="wide",
114
  initial_sidebar_state="expanded"