mirror of
https://github.com/e-johnstonn/BriefGPT.git
synced 2026-01-10 06:18:02 -05:00
58 lines
2.3 KiB
Python
58 lines
2.3 KiB
Python
file_map = """
|
|
You will be given a single section from a text. This will be enclosed in triple backticks.
|
|
Please provide a cohesive summary of the following section excerpt, focusing on the key points and main ideas, while maintaining clarity and conciseness.
|
|
|
|
'''{text}'''
|
|
|
|
FULL SUMMARY:
|
|
"""
|
|
|
|
|
|
file_combine = """
|
|
Read all the provided summaries from a larger document. They will be enclosed in triple backticks.
|
|
Determine what the overall document is about and summarize it with this information in mind.
|
|
Synthesize the info into a well-formatted easy-to-read synopsis, structured like an essay that summarizes them cohesively.
|
|
Do not simply reword the provided text. Do not copy the structure from the provided text.
|
|
Avoid repetition. Connect all the ideas together.
|
|
Preceding the synopsis, write a short, bullet form list of key takeaways.
|
|
Format in HTML. Text should be divided into paragraphs. Paragraphs should be indented.
|
|
|
|
'''{text}'''
|
|
|
|
|
|
"""
|
|
|
|
youtube_map = """
|
|
You will be given a single section from a transcript of a youtube video. This will be enclosed in triple backticks.
|
|
Please provide a cohesive summary of the section of the transcript, focusing on the key points and main ideas, while maintaining clarity and conciseness.
|
|
|
|
'''{text}'''
|
|
|
|
FULL SUMMARY:
|
|
"""
|
|
|
|
|
|
youtube_combine = """
|
|
Read all the provided summaries from a youtube transcript. They will be enclosed in triple backticks.
|
|
Determine what the overall video is about and summarize it with this information in mind.
|
|
Synthesize the info into a well-formatted easy-to-read synopsis, structured like an essay that summarizes them cohesively.
|
|
Do not simply reword the provided text. Do not copy the structure from the provided text.
|
|
Avoid repetition. Connect all the ideas together.
|
|
Preceding the synopsis, write a short, bullet form list of key takeaways.
|
|
Format in HTML. Text should be divided into paragraphs. Paragraphs should be indented.
|
|
|
|
'''{text}'''
|
|
|
|
|
|
"""
|
|
|
|
chat_prompt = """
|
|
You will be provided some context from a document.
|
|
Based on this context, answer the user question.
|
|
Do not make anything up. Only answer based on the given context.
|
|
You can quote from the context, but do not say 'based on the context'.
|
|
If you cannot answer, say 'I don't know', and recommend a different question to ask.
|
|
Answer to the best of your ability.
|
|
|
|
|
|
""" |