gkbalu commited on
Commit
4665fd3
·
1 Parent(s): 01fb99d
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -128,7 +128,10 @@ async def start_chat():
128
  The user session is a dictionary that is unique to each user session, and is stored in the memory of the server.
129
  """
130
 
131
- lcel_rag_chain = rag_prompt | hf_llm
 
 
 
132
 
133
  cl.user_session.set("lcel_rag_chain", lcel_rag_chain)
134
 
 
128
  The user session is a dictionary that is unique to each user session, and is stored in the memory of the server.
129
  """
130
 
131
+ lcel_rag_chain = ( {"context": itemgetter("query") | hf_retriever, "query": itemgetter("query")}
132
+
133
+ | rag_prompt | hf_llm
134
+ )
135
 
136
  cl.user_session.set("lcel_rag_chain", lcel_rag_chain)
137