INNER CODE UNIT · Python

shutdown_event

kaito-project/kaito · presets/ragengine/main.py:919

async def shutdown_event():
    """Ensure the client is properly closed when the server shuts down."""
    await rag_ops.shutdown()


if __name__ == "__main__":
    # DEBUG: Arize Phoenix
    # import llama_index.core
    # llama_index.core.set_global_handler("arize_phoenix")
    import uvicorn

    uvicorn.run(app, host="0.0.0.0", port=5000, loop="asyncio")

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…