Advertisement
Cabaca

Untitled

Aug 6th, 2024
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.26 KB | None | 0 0
  1. from langchain_core.prompts import PromptTemplate
  2.  
  3.  
  4.  
  5. prompt = PromptTemplate.from_template(
  6.  
  7.   “””
  8.  
  9.   You are an assistant that provides funny jokes from a user input.
  10.  
  11.  
  12.  
  13.   user input:
  14.  
  15.   Tell me {quantity} jokes about {topic}
  16.  
  17.   “””)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement