chore: Raise if QDRANT_URI is not set

Signed-off-by: Anush008 <anushshetty90@gmail.com>
This commit is contained in:
Anush008 2025-07-04 13:17:46 +05:30
parent c8a49d373a
commit 17debaa6de
No known key found for this signature in database
1 changed files with 3 additions and 2 deletions

View File

@ -53,8 +53,9 @@ class QdrantClient(VectorDBBase):
self.GRPC_PORT = QDRANT_GRPC_PORT
if not self.QDRANT_URI:
self.client = None
return
raise ValueError(
"QDRANT_URI is not set. Please configure it in the environment variables."
)
# Unified handling for either scheme
parsed = urlparse(self.QDRANT_URI)