Spaces:
Running
Running
Asish Karthikeya Gogineni
Refactor: Upgraded to Agentic Chatbot with AST & Call Graph support
5b89d45 | """ | |
| Health check endpoint | |
| """ | |
| from fastapi import APIRouter | |
| router = APIRouter() | |
| async def health_check(): | |
| """ | |
| Health check endpoint to verify API is running. | |
| Returns: | |
| dict: Health status and basic system info | |
| """ | |
| from api.state import app_state | |
| return { | |
| "status": "healthy", | |
| "indexed": app_state.chat_engine is not None, | |
| "provider": app_state.provider, | |
| "vector_db": app_state.vector_db, | |
| "documents_count": app_state.documents_count | |
| } | |