gizemsarsinlar commited on
Commit
31909e5
·
verified ·
1 Parent(s): 12e3dc5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -150,8 +150,8 @@ retrieval_chain = (
150
  {'input' : (lambda x: x)}
151
  ## TODO: Make sure to retrieve history & context from convstore & docstore, respectively.
152
  ## HINT: Our solution uses RunnableAssign, itemgetter, long_reorder, and docs2str
153
- | RunnableAssign({'history' : itemgetter('input') | convstore.as_retriever(k=40) | long_reorder | docs2str})
154
- | RunnableAssign({'context' : itemgetter('input') | docstore.as_retriever(k=40) | long_reorder | docs2str})
155
  | RPrint()
156
  )
157
 
 
150
  {'input' : (lambda x: x)}
151
  ## TODO: Make sure to retrieve history & context from convstore & docstore, respectively.
152
  ## HINT: Our solution uses RunnableAssign, itemgetter, long_reorder, and docs2str
153
+ | RunnableAssign({'history' : itemgetter('input') | convstore.as_retriever() | long_reorder | docs2str})
154
+ | RunnableAssign({'context' : itemgetter('input') | docstore.as_retriever() | long_reorder | docs2str})
155
  | RPrint()
156
  )
157