Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -250,6 +250,9 @@ def generate_response(user_input, model_id):
|
|
250 |
# Construct the knowledge prompt
|
251 |
prompt = f"Use the following knowledge:\n{retrieved_knowledge}"
|
252 |
|
|
|
|
|
|
|
253 |
# Add the retrieved knowledge to the prompt
|
254 |
func_caller.append({"role": "system", "content": prompt})
|
255 |
|
|
|
250 |
# Construct the knowledge prompt
|
251 |
prompt = f"Use the following knowledge:\n{retrieved_knowledge}"
|
252 |
|
253 |
+
# Log the prompt (you can change this to a logging library if needed)
|
254 |
+
print(f"Generated prompt: {prompt}") # <-- Log the prompt here
|
255 |
+
|
256 |
# Add the retrieved knowledge to the prompt
|
257 |
func_caller.append({"role": "system", "content": prompt})
|
258 |
|