Find answers from the community

Updated 2 months ago

can i limit the size of summary

can i limit the size of summary generated by the summary extractor?
L
F
2 comments
hmm, I think youd have to change the summary prompt

Here's an example with the default template
Plain Text
DEFAULT_SUMMARY_EXTRACT_TEMPLATE = """\
Here is the content of the section:
{context_str}

Summarize the key topics and entities of the section. \

Summary: """

extractor = SummaryExtractor(prompt_template=DEFAULT_SUMMARY_EXTRACT_TEMPLATE)
Add a reply
Sign up and join the conversation on Discord