Update app.py
Browse files
app.py
CHANGED
@@ -179,7 +179,7 @@ async def chat(request: ChatRequest):
|
|
179 |
del request.chat_history[-1]
|
180 |
request.chat_history.append({"role": "user", "parts": [{"text": request.message}]})
|
181 |
|
182 |
-
return {"response": response.text, "dataset_str": text_string, "rephrase_response"
|
183 |
|
184 |
if request.model_choice == "HF":
|
185 |
if hf_token:
|
|
|
179 |
del request.chat_history[-1]
|
180 |
request.chat_history.append({"role": "user", "parts": [{"text": request.message}]})
|
181 |
|
182 |
+
return {"response": response.text, "dataset_str": text_string, "rephrase_response": rephrase_response, "docs": docs, "filtered_docs_and_scores": filtered_docs_and_scores, "history": request.chat_history, "RAG_prompt": rag_prompt, "chunks": chunks}
|
183 |
|
184 |
if request.model_choice == "HF":
|
185 |
if hf_token:
|