Daemontatox commited on
Commit
7fed2d1
·
verified ·
1 Parent(s): bb9892b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -56,14 +56,14 @@ if not HF_TOKEN:
56
  exit(1)
57
 
58
  # HuggingFace Embeddings
59
- embeddings = HuggingFaceEmbeddings(model_name="BAAI/bge-large-en-v1.5")
60
 
61
  # Qdrant Client Setup
62
  try:
63
  client = QdrantClient(
64
  url=os.getenv("QDRANT_URL"),
65
  api_key=os.getenv("QDRANT_API_KEY"),
66
- prefer_grpc=False
67
  )
68
  except Exception as e:
69
  logger.error("Failed to connect to Qdrant. Ensure QDRANT_URL and QDRANT_API_KEY are correctly set.")
 
56
  exit(1)
57
 
58
  # HuggingFace Embeddings
59
+ #embeddings = HuggingFaceEmbeddings(model_name="BAAI/bge-large-en-v1.5")
60
 
61
  # Qdrant Client Setup
62
  try:
63
  client = QdrantClient(
64
  url=os.getenv("QDRANT_URL"),
65
  api_key=os.getenv("QDRANT_API_KEY"),
66
+ prefer_grpc=True
67
  )
68
  except Exception as e:
69
  logger.error("Failed to connect to Qdrant. Ensure QDRANT_URL and QDRANT_API_KEY are correctly set.")