Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -240,7 +240,6 @@ async def run_hackrx(req: RunRequest):
|
|
| 240 |
# base_retriever=ensemble_retriever, base_compressor=ml_models["reranker_compressor"]
|
| 241 |
# )
|
| 242 |
|
| 243 |
-
|
| 244 |
# Define the RAG chain using pre-loaded components
|
| 245 |
hybrid_rag_chain = (
|
| 246 |
{"context": itemgetter("full_query") | ensemble_retriever, "full_query": itemgetter("full_query")}
|
|
@@ -262,4 +261,4 @@ async def run_hackrx(req: RunRequest):
|
|
| 262 |
|
| 263 |
@app.get("/", include_in_schema=False)
|
| 264 |
def root():
|
| 265 |
-
return {"message": "API is running. Go to /docs for documentation."}
|
|
|
|
| 240 |
# base_retriever=ensemble_retriever, base_compressor=ml_models["reranker_compressor"]
|
| 241 |
# )
|
| 242 |
|
|
|
|
| 243 |
# Define the RAG chain using pre-loaded components
|
| 244 |
hybrid_rag_chain = (
|
| 245 |
{"context": itemgetter("full_query") | ensemble_retriever, "full_query": itemgetter("full_query")}
|
|
|
|
| 261 |
|
| 262 |
@app.get("/", include_in_schema=False)
|
| 263 |
def root():
|
| 264 |
+
return {"message": "API is running. Go to /docs for documentation."}
|