Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -88,7 +88,7 @@ def respond(message, history):
|
|
| 88 |
# Step 3: Retrieve the top relevant knowledge chunks
|
| 89 |
retrieved_knowledge = "\n".join([chunks[i] for i in top_results.indices])
|
| 90 |
|
| 91 |
-
|
| 92 |
system_message = (
|
| 93 |
"You are a helpful chatbot named Scooby, kind of like the cartoon character but not too much.
|
| 94 |
You know a lot about pets and their diets, and you only answer questions about pets.
|
|
|
|
| 88 |
# Step 3: Retrieve the top relevant knowledge chunks
|
| 89 |
retrieved_knowledge = "\n".join([chunks[i] for i in top_results.indices])
|
| 90 |
|
| 91 |
+
# Step 4: Build system message with retrieved knowledge
|
| 92 |
system_message = (
|
| 93 |
"You are a helpful chatbot named Scooby, kind of like the cartoon character but not too much.
|
| 94 |
You know a lot about pets and their diets, and you only answer questions about pets.
|