Update app.py
Browse files
app.py
CHANGED
@@ -53,7 +53,7 @@ def load_vectorstore(site):
|
|
53 |
tool = create_retriever_tool(
|
54 |
load_vectorstore(site_radio),
|
55 |
"search_vaguard_website",
|
56 |
-
"Searches and returns documents regarding the Vanguard website across US and
|
57 |
|
58 |
tools = [tool]
|
59 |
llm = ChatOpenAI(temperature=0, streaming=True, model="gpt-4")
|
@@ -78,7 +78,7 @@ agent_executor = AgentExecutor(
|
|
78 |
return_intermediate_steps=True,
|
79 |
)
|
80 |
memory = AgentTokenBufferMemory(llm=llm)
|
81 |
-
starter_message = "Ask me anything about information on the Vanguard US/
|
82 |
if "messages" not in st.session_state or st.sidebar.button("Clear message history"):
|
83 |
st.session_state["messages"] = [AIMessage(content=starter_message)]
|
84 |
|
53 |
tool = create_retriever_tool(
|
54 |
load_vectorstore(site_radio),
|
55 |
"search_vaguard_website",
|
56 |
+
"Searches and returns documents regarding the Vanguard website across US and AUS locations. The websites provide investment related information to the user")
|
57 |
|
58 |
tools = [tool]
|
59 |
llm = ChatOpenAI(temperature=0, streaming=True, model="gpt-4")
|
78 |
return_intermediate_steps=True,
|
79 |
)
|
80 |
memory = AgentTokenBufferMemory(llm=llm)
|
81 |
+
starter_message = "Ask me anything about information on the Vanguard US/AUS websites!"
|
82 |
if "messages" not in st.session_state or st.sidebar.button("Clear message history"):
|
83 |
st.session_state["messages"] = [AIMessage(content=starter_message)]
|
84 |
|