Skip to content

Commit

Permalink
"x < 2" to "x <= 1" for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
choccccy committed Jul 17, 2023
1 parent f02780d commit daaa4fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pylib/prompting/model_style.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
AIROBOROS_DELIMITERS = VICUNA_DELIMITERS

# XXX: Should this just be a FIXED_PREAMBLE?
AIROBOROS_SUGGESTED_PREAMBLE = 'A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user\'s questions, and doesn\'t make up answers if it doesn\'t know.' # noqa
AIROBOROS_SUGGESTED_PREAMBLE = 'A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user\'s questions, and doesn\'t make up answers if it doesn\'t know.' # noqa E501

AIR_CONOB_INPUT_PRETMPL = '''\
BEGINCONTEXT
Expand Down
2 changes: 1 addition & 1 deletion pylib/text_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def text_splitter(text, chunk_size, chunk_overlap, separator='\n\n',
fine_split = re.split(sep_pat, text)
separator_len = len_func(separator)

if len(fine_split) < 2:
if len(fine_split) <= 1:
warnings.warn(
f'No splits detected. Problem with separator ({repr(separator)})?')

Expand Down

0 comments on commit daaa4fc

Please sign in to comment.