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
fromlangchain.promptsimportPromptTemplatefromlangchain.llmsimportOpenAIimportosos.environ["OPENAI_API_KEY"] = "sk-Your-API-KEY”
llm=OpenAI(temperature=0.9)
prompt=PromptTemplate(
input_variables=["Brand", "Product"],
template="What would be the name of {Brand} that sells {Product}?",
)
fromlangchain.chainsimportLLMChainchain=LLMChain(llm=llm, prompt=prompt)
print(chain.run({
'Brand': "Art supplies",
'Product': "colors"
}))
Hi there!
After setting up something like the following:
Is there an easy way to get the formatted prompt?
Thank you
The text was updated successfully, but these errors were encountered: