Spaces:
Sleeping
Sleeping
gizemsarsinlar
commited on
Update app.py
Browse files
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(
|
154 |
-
| RunnableAssign({'context' : itemgetter('input') | docstore.as_retriever(
|
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 |
|