Spaces:
Runtime error
Runtime error
marondeau
commited on
Clarify return values
Browse files- buster/chatbot.py +2 -1
buster/chatbot.py
CHANGED
@@ -177,7 +177,8 @@ class Chatbot:
|
|
177 |
"""
|
178 |
if len(matched_documents) == 0:
|
179 |
# No matching documents were retrieved, return
|
180 |
-
|
|
|
181 |
|
182 |
logger.info(f"Prompt: {prompt}")
|
183 |
response = self.get_gpt_response(prompt=prompt, **self.cfg.completion_kwargs)
|
|
|
177 |
"""
|
178 |
if len(matched_documents) == 0:
|
179 |
# No matching documents were retrieved, return
|
180 |
+
sources = tuple()
|
181 |
+
return Response(unknown_prompt), sources
|
182 |
|
183 |
logger.info(f"Prompt: {prompt}")
|
184 |
response = self.get_gpt_response(prompt=prompt, **self.cfg.completion_kwargs)
|