Skip to content

Commit

Permalink
fix: Prevent blocking healthcheck during Inference (#837)
Browse files Browse the repository at this point in the history
**Reason for Change**:
Minimal changes required for ensuring rag engine image doesn't fail

Signed-off-by: Ishaan Sehgal <ishaanforthewin@gmail.com>
  • Loading branch information
ishaansehgal99 authored Jan 23, 2025
1 parent 9fe5b86 commit f7ee0ec
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions presets/ragengine/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,8 @@
rag_ops = VectorStoreManager(vector_store_handler)

@app.get("/health", response_model=HealthStatus)
async def health_check():
def health_check():
try:

if embedding_manager is None:
raise HTTPException(status_code=500, detail="Embedding manager not initialized")

Expand Down

0 comments on commit f7ee0ec

Please sign in to comment.