)
link_one = LLMChain(llm=wizardlm, prompt=prompt)
# Build the second link in the chain
prompt = PromptTemplate(
    input_variables=["entree"],
    template="What are three sides that would go with {entree}. Respond with only a list of the sides.",
)
link_two = LLMChain(llm=wizardlm, prompt=prompt)
# Build the third link in the chain
prompt = PromptTemplate(
    input_variables=["sides"],
    template="What is one alcoholic and one non-alcoholic beverage that would go well with this list of sides: {sides}. Respond with only the names of the beverages.",
)
link_three = LLMChain(llm=wizardlm, prompt=prompt)
# Run the full chain!
menu_maker = SimpleSequentialChain(chains=[link_one, link_two, link_three], verbose=True)
menu_maker.run("South Indian")
previous
Banana
next
Beam
 Contents
  
Baseten
Setup
Single model call
Chained model calls
By Harrison Chase
    
      © Copyright 2023, Harrison Chase.
      
  Last updated on Jun 16, 2023.
rtdocs_stable/api.python.langchain.com/en/stable/modules/models/llms/integrations/baseten.html