File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
slackBotFunction/app/slack Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff 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"
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments