Skip to content

Commit

Permalink
switch to invoke
Browse files Browse the repository at this point in the history
  • Loading branch information
vbarda committed May 29, 2024
1 parent 94fe814 commit ceff5ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def retrieve_documents(state: AgentState) -> AgentState:
retriever = get_retriever()
messages = convert_to_messages(state["messages"])
query = messages[-1].content
relevant_documents = retriever.get_relevant_documents(query)
relevant_documents = retriever.invoke(query)
return {"query": query, "documents": relevant_documents, "messages": []}


Expand Down

0 comments on commit ceff5ba

Please sign in to comment.