You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
slack_buffer_token_size=10# Number of tokens to buffer before updating Slack
43
+
slack_message_size_limit_words=350# Slack limit of characters in response is 4k. That's ~420 words. 350 words is a safe undershot of words that'll fit in a slack response. Used in the system prompt for Vera.
model_id="us.anthropic.claude-3-7-sonnet-20250219-v1:0"# US regional Claude 3.7 Sonnet model
30
47
anthropic_version="bedrock-2023-05-31"
31
48
temperature=0.2
32
49
top_k=25
33
50
34
51
# Secrets manager secret name. Json payload should contain SLACK_BOT_TOKEN and SLACK_SIGNING_SECRET
35
52
bot_secret_name="DEVOPSBOT_SECRETS_JSON"
36
53
37
-
# Guardrail information
54
+
# Bedrock guardrail information
38
55
enable_guardrails=False# Won't use guardrails if False
39
56
guardrailIdentifier="xxxxxxxxxx"
40
57
guardrailVersion="DRAFT"
@@ -53,13 +70,15 @@
53
70
rerank_model_id="amazon.rerank-v1:0"
54
71
55
72
# Model guidance, shimmed into each conversation as instructions for the model
56
-
model_guidance="""Assistant is a large language model trained to provide the best possible experience for developers and operations teams.
57
-
Assistant is designed to provide accurate and helpful responses to a wide range of questions.
58
-
Assistant answers should be short and to the point, usually less than 100 words and should be relevant to the user's question.
59
-
Assistant should follow Slack's best practices for formatting messages.
60
-
Assistant should address the user by name.
61
-
Assistant should always provide a Confluence citation link when providing information from the knowledge base.
62
-
"""
73
+
model_guidance=f"""Assistant is a large language model named {bot_name} who is trained to support Veradigm in providing the best possible experience for their developers and operations team.
74
+
Assistant must follow Slack's best practices for formatting messages.
75
+
Assistant must limit messages to {slack_message_size_limit_words} words, including code blocks. For longer responses Assistant should provide the first part of the response, and then prompt User to ask for the next part of the response.
76
+
Assistant should address the user by name, and shouldn't echo user's pronouns.
77
+
When Assistant finishes responding entirely, Assistant should suggest questions the User can ask.
78
+
Assistant should always provide a Confluence citation link when providing information from the knowledge base.
79
+
When providing Splunk query advice, Assistant must recommend queries that use the fewest resources.
80
+
The current date and time is {current_utc_string} UTC.
0 commit comments