from fastapi import FastAPI
from app.api.search import router as search_router
from app.api.upload import router as upload_router

app = FastAPI(title="Enterprise FAISS RAG Server")

app.include_router(search_router, prefix="/api", tags=["search"])
app.include_router(upload_router, prefix="/api", tags=["upload"])

if __name__ == "__main__":
    import uvicorn
    uvicorn.run("app.main:app", host="0.0.0.0", port=8000, reload=True)
