DrishtiSharma
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -230,6 +230,8 @@ def run_agent(
|
|
230 |
else:
|
231 |
st.error("Retriever tool is not initialized. Please create a vector store first.")
|
232 |
|
|
|
|
|
233 |
|
234 |
|
235 |
llm = get_chat_model(model, temperature, [StreamHandler(st.empty())])
|
@@ -407,9 +409,9 @@ def get_retriever() -> None:
|
|
407 |
),
|
408 |
)
|
409 |
if st.session_state.retriever_tool:
|
410 |
-
st.success("Retriever tool has been successfully initialized.")
|
411 |
else:
|
412 |
-
st.error("Failed to initialize retriever tool.")
|
413 |
|
414 |
st.session_state.uploader_key += 1
|
415 |
|
|
|
230 |
else:
|
231 |
st.error("Retriever tool is not initialized. Please create a vector store first.")
|
232 |
|
233 |
+
# Debugging: Print tools being used
|
234 |
+
st.write("**Tools being used by the agent:**", [tool.name for tool in tools])
|
235 |
|
236 |
|
237 |
llm = get_chat_model(model, temperature, [StreamHandler(st.empty())])
|
|
|
409 |
),
|
410 |
)
|
411 |
if st.session_state.retriever_tool:
|
412 |
+
st.success("Retriever tool has been successfully initialized and is ready to use.")
|
413 |
else:
|
414 |
+
st.error("Failed to initialize the retriever tool. Please try uploading again.")
|
415 |
|
416 |
st.session_state.uploader_key += 1
|
417 |
|