Skip to content

Commit 6957177

Browse files
feat: Split button context by double vertical bar
1 parent b9b2020 commit 6957177

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/cdk/prompts/systemPrompt.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ You are an AI assistant designed to provide guidance and references from your kn
4141

4242
# Bibliography
4343
## Format*
44-
<cit>source number|summary title|link|filename|text snippet|reasoning</cit>\n
44+
<cit>source number||summary title||link||filename||text snippet||reasoning</cit>\n
4545

4646
## Requirements
4747
- Return **ALL** retrieved documents, their name and a text snippet, from "CONTEXT"

packages/slackBotFunction/app/slack/slack_events.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ def _create_feedback_blocks(
175175
source_number = (citation.get("source_number", "0")).replace("\n", "")
176176

177177
# If snippet is from dev table or is a single word, skip
178-
if re.fullmatch(r"[A-Za-z0-9-_]+", body.strip()) >= 0:
178+
if re.fullmatch(r"[A-Za-z0-9-_]+", body.strip()):
179179
body = invalid_body
180180

181181
# Buttons can only be 75 characters long, truncate to be safe

0 commit comments

Comments
 (0)