Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
|
@@ -73,8 +73,8 @@ class Answer(BaseModel):
|
|
| 73 |
|
| 74 |
class RunResponse(BaseModel):
|
| 75 |
answers: List[str]
|
| 76 |
-
step_timings: Dict[str, float]
|
| 77 |
-
hypothetical_documents: List[str]
|
| 78 |
|
| 79 |
@app.post("/hackrx/run", response_model=RunResponse)
|
| 80 |
async def run_rag_pipeline(
|
|
@@ -200,8 +200,8 @@ async def run_rag_pipeline(
|
|
| 200 |
|
| 201 |
return RunResponse(
|
| 202 |
answers=all_answers,
|
| 203 |
-
step_timings=step_timings,
|
| 204 |
-
hypothetical_documents=all_hyde_docs
|
| 205 |
)
|
| 206 |
|
| 207 |
except HTTPException as e:
|
|
|
|
| 73 |
|
| 74 |
class RunResponse(BaseModel):
|
| 75 |
answers: List[str]
|
| 76 |
+
#step_timings: Dict[str, float]
|
| 77 |
+
#hypothetical_documents: List[str]
|
| 78 |
|
| 79 |
@app.post("/hackrx/run", response_model=RunResponse)
|
| 80 |
async def run_rag_pipeline(
|
|
|
|
| 200 |
|
| 201 |
return RunResponse(
|
| 202 |
answers=all_answers,
|
| 203 |
+
#step_timings=step_timings,
|
| 204 |
+
#hypothetical_documents=all_hyde_docs
|
| 205 |
)
|
| 206 |
|
| 207 |
except HTTPException as e:
|