diff --git a/custom_search_api/service.py b/custom_search_api/service.py index 0d98f9d..001b989 100644 --- a/custom_search_api/service.py +++ b/custom_search_api/service.py @@ -40,7 +40,7 @@ class CustomSearchService: } if extra_params: params.update(extra_params) - + print(f"Making request to Google CSE with params: {params}") async with httpx.AsyncClient(timeout=self.timeout) as client: response = await client.get(GOOGLE_CSE_ENDPOINT, params=params) response.raise_for_status() diff --git a/dev_backend/db_setup.py b/dev_backend/db_setup.py index 4e2a3cc..4a3731b 100644 --- a/dev_backend/db_setup.py +++ b/dev_backend/db_setup.py @@ -25,8 +25,8 @@ DATABASE_URL = URL.create( async def get_qdrant_client()->AsyncGenerator[AsyncQdrantClient,None]: - # Replace with your Qdrant URL - client = AsyncQdrantClient(url="http://localhost:6333", timeout=60) + qdrant_url = os.getenv("QDRANT_URL", "http://localhost:6333") + client = AsyncQdrantClient(url=qdrant_url, timeout=60) try: yield client finally: