You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
langchain-hub/prompts/summarize/refine
Harrison Chase a7a97f96de cr 1 year ago
..
README.md add usage readmes 1 year ago
prompt.yaml cr 1 year ago

README.md

Description of {{prompt}}

{{High level text description of the prompt, including use cases.}}

Compatible Chains

Below is a list of chains we expect this prompt to be compatible with.

  1. {{Chain Name}}: {{Path to chain in module}}
  2. ...

Inputs

This is a description of the inputs that the prompt expects.

  1. {{input_var}}: {{Description}}
  2. ...

Usage

Below is a code snippet for how to use the prompt.

from langchain.prompts import load_from_hub
from langchain.chains.summarize import load_summarize_chain

llm = ...
prompt = load_from_hub('summarize/refine/<file-name>')
chain = load_summarize_chain(llm, chain_type="refine", refine_prompt=prompt)