Spaces:
Sleeping
Sleeping
januarevan
commited on
Commit
•
054de85
1
Parent(s):
08c0bda
init
Browse files
main.py
CHANGED
@@ -147,6 +147,6 @@ async def rag(request: RAGRequest):
|
|
147 |
retrieved_lines_with_distances = [
|
148 |
(res["entity"]["content"]) for res in search_res[0]
|
149 |
]
|
150 |
-
return JSONResponse(status_code=200, content={"result": retrieved_lines_with_distances
|
151 |
except Exception as e:
|
152 |
return JSONResponse(status_code=400, content={"error": str(e)})
|
|
|
147 |
retrieved_lines_with_distances = [
|
148 |
(res["entity"]["content"]) for res in search_res[0]
|
149 |
]
|
150 |
+
return JSONResponse(status_code=200, content={"result": retrieved_lines_with_distances})
|
151 |
except Exception as e:
|
152 |
return JSONResponse(status_code=400, content={"error": str(e)})
|