from typing import Annotated from fastapi import Depends, Header, HTTPException,APIRouter from typing import List,Optional from db_setup import get_session,get_qdrant_client # from .models import Product from sqlalchemy.ext.asyncio import AsyncSession from qdrant_client import AsyncQdrantClient from fastapi.responses import JSONResponse app_router = APIRouter() @app_router.get("/products") async def get_all_products( session: Annotated[AsyncSession, Depends(get_session)], vector_db:Annotated[AsyncQdrantClient, Depends(get_qdrant_client)], ): try: return JSONResponse(content={"message": "Hello World"}) except Exception as e: raise HTTPException(status_code=500, detail=str(e))