from fastapi import FastAPI from app.api.auth import router as auth_router from app.api.chat import router as chat_router from app.api.agent import router as agent_router from app.api.excel import router as excel_router from app.models.base_model import init_db init_db() app = FastAPI( title="basic_rag_gateway", version="0.1", description="", ) app.include_router(auth_router, prefix='/auth', tags=["auth"]) app.include_router(chat_router, prefix='/chat', tags=["chat"]) app.include_router(agent_router, prefix='/agent', tags=["agent"]) app.include_router(excel_router, prefix='/document', tags=["document"]) if __name__ == "__main__": import uvicorn uvicorn.run(app, host="0.0.0.0", port=9201)