Asankhaya Sharma
commited on
Commit
·
66dbaad
1
Parent(s):
0a26e47
update model names
Browse files- question.py +2 -2
question.py
CHANGED
|
@@ -81,10 +81,10 @@ def chat_with_doc(model, vector_store: SupabaseVectorStore, stats_db):
|
|
| 81 |
|
| 82 |
# Generate model's response and add it to chat history
|
| 83 |
model_response = qa({"question": question})
|
| 84 |
-
logger.info('Result: %s', model_response)
|
| 85 |
|
| 86 |
st.session_state['chat_history'].append(("meraKB", model_response["answer"]))
|
| 87 |
-
|
| 88 |
|
| 89 |
# Display chat history
|
| 90 |
st.empty()
|
|
|
|
| 81 |
|
| 82 |
# Generate model's response and add it to chat history
|
| 83 |
model_response = qa({"question": question})
|
| 84 |
+
logger.info('Result: %s', model_response["answer"])
|
| 85 |
|
| 86 |
st.session_state['chat_history'].append(("meraKB", model_response["answer"]))
|
| 87 |
+
logger.info('Sources: %s', model_response["source_documents"])
|
| 88 |
|
| 89 |
# Display chat history
|
| 90 |
st.empty()
|