diff --git a/pylib/prompting/model_style.py b/pylib/prompting/model_style.py index a7a206b..9aa69a5 100644 --- a/pylib/prompting/model_style.py +++ b/pylib/prompting/model_style.py @@ -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 diff --git a/pylib/text_helper.py b/pylib/text_helper.py index 3b0e038..febb1d2 100644 --- a/pylib/text_helper.py +++ b/pylib/text_helper.py @@ -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)})?')