Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -86,15 +86,16 @@ class AdvancedRAGChatbot:
|
|
86 |
entities = []
|
87 |
|
88 |
full_prompt = f"""
|
89 |
-
Use the following
|
90 |
|
91 |
-
|
92 |
{context}
|
93 |
|
94 |
Question: {query}
|
95 |
|
96 |
-
Provide a comprehensive
|
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="
|
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"
|