Skip to content

Commit

Permalink
chore: change default prompt for recursive summary
Browse files Browse the repository at this point in the history
  • Loading branch information
sean1832 committed Mar 26, 2023
1 parent ada88df commit 3ba9eaf
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/Components/sidebar.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,9 @@ def sidebar():
"""
{text}
Structured markdown explanation with heading (###): """
""" + \
f"""Structured markdown explanation with heading (###) in perfect {language}: """
persona_rec = st.text_area('Bot Persona Recursive',
value=_set_config(config_file, "OPENAI_PERSONA_REC", _legacy(enable_legacy, default_persona_rec_legacy, default_persona_rec)),
help='System message is a pre-defined message used to instruct the assistant at the '
Expand All @@ -101,8 +102,9 @@ def sidebar():
'following text in the way that can be read fluently, make sense and avoid ' \
'repetition. Make sure to include all information. Write it in beautiful and ' \
f'structured markdown in perfect {language}. '
default_persona_sum = """Write a detailed summary of the following:
default_persona_sum = f"""Write a detailed summary of the following in {language}:
""" + \
"""
{text}
Identify and summarise them into five headings. Use #### headings in markdown. Under headings, summarize a list of key points that best encapsulate the core information.""" + \
Expand Down

0 comments on commit 3ba9eaf

Please sign in to comment.