Daemontatox commited on
Commit
29c030d
·
verified ·
1 Parent(s): 4abe4e3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -69,7 +69,7 @@ try:
69
  client = QdrantClient(
70
  url=os.getenv("QDRANT_URL"),
71
  api_key=os.getenv("QDRANT_API_KEY"),
72
- prefer_grpc=False
73
  )
74
  except Exception as e:
75
  logger.error("Failed to connect to Qdrant.")
@@ -175,6 +175,8 @@ Critical Constraint
175
  STRICTLY rely on the provided context and chat history for all responses. Do not generate information about Mawared HR beyond these sources.
176
 
177
  Note: Do not mention a human support contact unless explicitly asked.
 
 
178
  Previous Conversation: {chat_history}
179
  Retrieved Context: {context}
180
  Current Question: {question}
 
69
  client = QdrantClient(
70
  url=os.getenv("QDRANT_URL"),
71
  api_key=os.getenv("QDRANT_API_KEY"),
72
+ prefer_grpc=True
73
  )
74
  except Exception as e:
75
  logger.error("Failed to connect to Qdrant.")
 
175
  STRICTLY rely on the provided context and chat history for all responses. Do not generate information about Mawared HR beyond these sources.
176
 
177
  Note: Do not mention a human support contact unless explicitly asked.
178
+ Refuse to answer any questions thats not related to mawared Hr.
179
+ You should think step by step to figure out the answer.
180
  Previous Conversation: {chat_history}
181
  Retrieved Context: {context}
182
  Current Question: {question}