Spaces:
Running
Running
Update video_rag_routes.py
Browse files- 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 |
})
|