Spaces:
Sleeping
Sleeping
John Graham Reynolds
commited on
Commit
·
7798405
1
Parent(s):
3ad1eee
try simply changing invoke to stream
Browse files
app.py
CHANGED
@@ -145,7 +145,7 @@ def chain_call(history):
|
|
145 |
# search_result = vector_store.similarity_search(query=st.session_state["messages"][-1]["content"], k=5)
|
146 |
# chat_completion = search_result # TODO update this after we implement our chain
|
147 |
# chat_completion = chain.invoke(input_example) # *** TODO here we will pass only the chat history, the chain handles the system prompt
|
148 |
-
chat_completion = chain.
|
149 |
return chat_completion
|
150 |
|
151 |
def write_response():
|
|
|
145 |
# search_result = vector_store.similarity_search(query=st.session_state["messages"][-1]["content"], k=5)
|
146 |
# chat_completion = search_result # TODO update this after we implement our chain
|
147 |
# chat_completion = chain.invoke(input_example) # *** TODO here we will pass only the chat history, the chain handles the system prompt
|
148 |
+
chat_completion = chain.stream(input)
|
149 |
return chat_completion
|
150 |
|
151 |
def write_response():
|