Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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=
|
| 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}
|