anpigon commited on
Commit
c80fa93
·
1 Parent(s): 60d7b42

refactor: Update app.py to fix model dropdown value

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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
- # | RunnableLambda(LongContextReorder().transform_documents),
52
  "question": RunnablePassthrough(),
53
  }
54
  | prompt
 
47
 
48
  return (
49
  {
50
+ "context": retriever
51
+ | RunnableLambda(LongContextReorder().transform_documents),
52
  "question": RunnablePassthrough(),
53
  }
54
  | prompt