Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -100,7 +100,7 @@ db = Qdrant(
|
|
| 100 |
|
| 101 |
retriever = db.as_retriever(
|
| 102 |
search_type="similarity",
|
| 103 |
-
search_kwargs={"k":
|
| 104 |
)
|
| 105 |
|
| 106 |
# Create a new collection for logs
|
|
@@ -153,7 +153,7 @@ def log_to_qdrant(question: str, answer: str):
|
|
| 153 |
|
| 154 |
llm = ChatGoogleGenerativeAI(
|
| 155 |
model="gemini-2.0-flash-thinking-exp-01-21",
|
| 156 |
-
temperature=0,
|
| 157 |
max_tokens=None,
|
| 158 |
timeout=None,
|
| 159 |
max_retries=2,
|
|
@@ -228,7 +228,8 @@ Critical Constraints
|
|
| 228 |
|
| 229 |
- Strict Context Reliance: Base all responses solely on the provided context and chat history.
|
| 230 |
- Non-Mawared HR Queries: Politely decline to answer questions unrelated to Mawared HR.
|
| 231 |
-
- Answer Format: Always provide accurate answers in
|
|
|
|
| 232 |
|
| 233 |
---
|
| 234 |
|
|
|
|
| 100 |
|
| 101 |
retriever = db.as_retriever(
|
| 102 |
search_type="similarity",
|
| 103 |
+
search_kwargs={"k": 7}
|
| 104 |
)
|
| 105 |
|
| 106 |
# Create a new collection for logs
|
|
|
|
| 153 |
|
| 154 |
llm = ChatGoogleGenerativeAI(
|
| 155 |
model="gemini-2.0-flash-thinking-exp-01-21",
|
| 156 |
+
temperature=0.3,
|
| 157 |
max_tokens=None,
|
| 158 |
timeout=None,
|
| 159 |
max_retries=2,
|
|
|
|
| 228 |
|
| 229 |
- Strict Context Reliance: Base all responses solely on the provided context and chat history.
|
| 230 |
- Non-Mawared HR Queries: Politely decline to answer questions unrelated to Mawared HR.
|
| 231 |
+
- Answer Format: Always provide accurate answers in steps without revealing your thought process or using code.
|
| 232 |
+
- Never answer in Json.
|
| 233 |
|
| 234 |
---
|
| 235 |
|