refactor: Update app.py to fix model dropdown value
Browse files
app.py
CHANGED
@@ -47,8 +47,8 @@ def create_rag_chain(chat_history: List[Tuple[str, str]], model: str):
|
|
47 |
|
48 |
return (
|
49 |
{
|
50 |
-
"context": retriever
|
51 |
-
|
52 |
"question": RunnablePassthrough(),
|
53 |
}
|
54 |
| prompt
|
|
|
47 |
|
48 |
return (
|
49 |
{
|
50 |
+
"context": retriever
|
51 |
+
| RunnableLambda(LongContextReorder().transform_documents),
|
52 |
"question": RunnablePassthrough(),
|
53 |
}
|
54 |
| prompt
|