mominah commited on
Commit
10c7a75
·
verified ·
1 Parent(s): 48318ed

Update video_rag_routes.py

Browse files
Files changed (1) hide show
  1. video_rag_routes.py +1 -1
video_rag_routes.py CHANGED
@@ -135,7 +135,7 @@ async def query_rag(body: QueryIn):
135
  if not sess:
136
  raise HTTPException(status_code=404, detail="Session not found")
137
  chain = create_chain(sess["retriever"])
138
- result = chain({
139
  "question": body.query,
140
  "chat_history": sess["history"]
141
  })
 
135
  if not sess:
136
  raise HTTPException(status_code=404, detail="Session not found")
137
  chain = create_chain(sess["retriever"])
138
+ result = chain.invoke({
139
  "question": body.query,
140
  "chat_history": sess["history"]
141
  })