Spaces:
Sleeping
Sleeping
remove Number of found context
Browse files
app.py
CHANGED
@@ -92,14 +92,14 @@ async def main(message):
|
|
92 |
await msg.stream_token(chunk)
|
93 |
|
94 |
# Send the response back to the user
|
95 |
-
await msg.send()
|
96 |
|
97 |
-
context_documents = response["context"]
|
98 |
-
num_contexts = len(context_documents)
|
99 |
-
context_msg = f"Number of found context: {num_contexts}"
|
100 |
|
101 |
|
102 |
-
await cl.Message(content=context_msg).send()
|
103 |
|
104 |
# for doc in context_documents:
|
105 |
# document_title = doc.metadata.get("source", "Unknown Document")
|
|
|
92 |
await msg.stream_token(chunk)
|
93 |
|
94 |
# Send the response back to the user
|
95 |
+
# await msg.send()
|
96 |
|
97 |
+
# context_documents = response["context"]
|
98 |
+
# num_contexts = len(context_documents)
|
99 |
+
# context_msg = f"Number of found context: {num_contexts}"
|
100 |
|
101 |
|
102 |
+
# await cl.Message(content=context_msg).send()
|
103 |
|
104 |
# for doc in context_documents:
|
105 |
# document_title = doc.metadata.get("source", "Unknown Document")
|