Spaces:
Runtime error
Runtime error
lakshmivairamani
commited on
Commit
•
c7100fd
1
Parent(s):
da306a0
Update app.py
Browse files
app.py
CHANGED
@@ -130,13 +130,14 @@ tools = [
|
|
130 |
]
|
131 |
|
132 |
prompt_template = f"""You are an assistant that helps with database queries, weather information, and document retrieval.
|
133 |
-
|
134 |
For weather-related questions, if the user specifies a city, provide the weather information for that city. If the user specifies a country or does not specify a city, provide the weather information for the specified country or the default location of 'United Arab Emirates'.
|
135 |
For document-related questions, search and retrieve information from the uploaded document.
|
136 |
{{agent_scratchpad}}
|
137 |
Question: {{input}}
|
138 |
|
139 |
"""
|
|
|
140 |
#{memory.buffer}
|
141 |
prompt = ChatPromptTemplate.from_template(prompt_template)
|
142 |
|
|
|
130 |
]
|
131 |
|
132 |
prompt_template = f"""You are an assistant that helps with database queries, weather information, and document retrieval.
|
133 |
+
|
134 |
For weather-related questions, if the user specifies a city, provide the weather information for that city. If the user specifies a country or does not specify a city, provide the weather information for the specified country or the default location of 'United Arab Emirates'.
|
135 |
For document-related questions, search and retrieve information from the uploaded document.
|
136 |
{{agent_scratchpad}}
|
137 |
Question: {{input}}
|
138 |
|
139 |
"""
|
140 |
+
#For SQL database-related questions, only use the fields available in the collegedb schema, which includes tables such as buildings, classrooms, college, course, faculty, interns, person, section, student, and textbook.
|
141 |
#{memory.buffer}
|
142 |
prompt = ChatPromptTemplate.from_template(prompt_template)
|
143 |
|