achapman commited on
Commit
d4b3eda
·
1 Parent(s): e1ebd2d
Files changed (2) hide show
  1. app.py +2 -1
  2. data/paul_graham_essays.txt +0 -0
app.py CHANGED
@@ -125,7 +125,7 @@ async def start_chat():
125
 
126
  The user session is a dictionary that is unique to each user session, and is stored in the memory of the server.
127
  """
128
-
129
  lcel_rag_chain = (
130
  {"context": itemgetter("query") | hf_retriever, "query": itemgetter("query")}
131
  | rag_prompt | hf_llm
@@ -142,6 +142,7 @@ async def main(message: cl.Message):
142
 
143
  The LCEL RAG chain is stored in the user session, and is unique to each user session - this is why we can access it here.
144
  """
 
145
  lcel_rag_chain = cl.user_session.get("lcel_rag_chain")
146
 
147
  msg = cl.Message(content="")
 
125
 
126
  The user session is a dictionary that is unique to each user session, and is stored in the memory of the server.
127
  """
128
+ print("entering on_chat_start")
129
  lcel_rag_chain = (
130
  {"context": itemgetter("query") | hf_retriever, "query": itemgetter("query")}
131
  | rag_prompt | hf_llm
 
142
 
143
  The LCEL RAG chain is stored in the user session, and is unique to each user session - this is why we can access it here.
144
  """
145
+ print("entering on_message")
146
  lcel_rag_chain = cl.user_session.get("lcel_rag_chain")
147
 
148
  msg = cl.Message(content="")
data/paul_graham_essays.txt CHANGED
The diff for this file is too large to render. See raw diff