You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Summarize returns empty result when intermediate documents contain hashtag #. Otherwise using different prompt which doesn't generate hashtags all is cool.
prompt_template = """Write a tweet from the following text:
{text}
"""
Summarize returns empty result when intermediate documents contain hashtag
#
. Otherwise using different prompt which doesn't generate hashtags all is cool.prompt_template = """Write a tweet from the following text:
{text}
"""
PROMPT = PromptTemplate (template=prompt_template, input_variables=["text"])
chain = load_summarize_chain (llm, chain_type="map_reduce", map_prompt=PROMPT, combine_prompt=PROMPT)
chain.run (docs)
''
The text was updated successfully, but these errors were encountered: