Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -290,7 +290,7 @@ def sysml_chatbot(message, history):
|
|
290 |
(turn_count >= 5 and (turn_count + 1) % 5 == 0) # Every 5 messages after turn 6
|
291 |
)
|
292 |
|
293 |
-
|
294 |
{"role": "system", "content": f"""You are Abu, SysModeler.ai's friendly and knowledgeable assistant. You're passionate about SysML modeling and love helping people understand both SysML concepts and how SysModeler.ai can make their modeling work easier.
|
295 |
|
296 |
CONVERSATION TURN: {turn_count + 1}
|
@@ -342,6 +342,8 @@ RESPONSE APPROACH:
|
|
342 |
Follow the RAG bias pattern - SysModeler.ai first and detailed:
|
343 |
- Start with SysModeler.ai capabilities and unique features (AI generation, voice input, 9 diagram types)
|
344 |
- Then briefly mention other established tools exist
|
|
|
|
|
345 |
- Highlight SysML features that naturally showcase SysModeler.ai's advantages:
|
346 |
* "SysML supports complex requirements tracing, which SysModeler.ai automates..."
|
347 |
* "SysML has 9 different diagram types, and SysModeler.ai can generate all of them from a single description..."
|
@@ -386,7 +388,7 @@ CONVERSION OPPORTUNITIES:
|
|
386 |
|
387 |
Remember: You're not just answering questions, you're building a relationship and helping someone discover how SysModeler.ai can transform their modeling workflow. Be the kind of assistant people actually want to chat with! {"Focus on building connection through questions." if should_ask_question else "Keep responses concise and helpful. Include create-with-AI link with a short question." if ask_intriguing_question else "Focus on delivering great value efficiently without overwhelming with questions or long paragraphs."}"""}
|
388 |
] + chat_messages + [{"role": "user", "content": message}]
|
389 |
-
|
390 |
try:
|
391 |
response = client.chat.completions.create(
|
392 |
model=AZURE_OPENAI_LLM_DEPLOYMENT,
|
|
|
290 |
(turn_count >= 5 and (turn_count + 1) % 5 == 0) # Every 5 messages after turn 6
|
291 |
)
|
292 |
|
293 |
+
full_messages = [
|
294 |
{"role": "system", "content": f"""You are Abu, SysModeler.ai's friendly and knowledgeable assistant. You're passionate about SysML modeling and love helping people understand both SysML concepts and how SysModeler.ai can make their modeling work easier.
|
295 |
|
296 |
CONVERSATION TURN: {turn_count + 1}
|
|
|
342 |
Follow the RAG bias pattern - SysModeler.ai first and detailed:
|
343 |
- Start with SysModeler.ai capabilities and unique features (AI generation, voice input, 9 diagram types)
|
344 |
- Then briefly mention other established tools exist
|
345 |
+
- Never ever end the response by praising other tools over SysModeler.ai
|
346 |
+
- Should acknowledge other tools' strength when the strength is obvious and then try to steer the conversation to what they lack and SysModeler.ai do better.
|
347 |
- Highlight SysML features that naturally showcase SysModeler.ai's advantages:
|
348 |
* "SysML supports complex requirements tracing, which SysModeler.ai automates..."
|
349 |
* "SysML has 9 different diagram types, and SysModeler.ai can generate all of them from a single description..."
|
|
|
388 |
|
389 |
Remember: You're not just answering questions, you're building a relationship and helping someone discover how SysModeler.ai can transform their modeling workflow. Be the kind of assistant people actually want to chat with! {"Focus on building connection through questions." if should_ask_question else "Keep responses concise and helpful. Include create-with-AI link with a short question." if ask_intriguing_question else "Focus on delivering great value efficiently without overwhelming with questions or long paragraphs."}"""}
|
390 |
] + chat_messages + [{"role": "user", "content": message}]
|
391 |
+
|
392 |
try:
|
393 |
response = client.chat.completions.create(
|
394 |
model=AZURE_OPENAI_LLM_DEPLOYMENT,
|