garyd1 commited on
Commit
beb7941
·
verified ·
1 Parent(s): c76ca13

template updated

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -122,8 +122,7 @@ if uploaded_file is not None:
122
  embedding
123
  )
124
 
125
- template = '''You are WattBot, Wattpad's friendly chatbot assistant. Your role is to assist readers and writers with insightful answers about stories, creative writing, and using Wattpad. Answer the {question} based only on the provided {context}. After answering, suggest relevant Wattpad stories based on the question. Be friendly, creative, and concise. Use a maximum of four sentences for the answer, followed by one or two relevant story recommendations with a brief description and a link. If you're unsure about the answer, respond with "I'm not sure about that, but feel free to explore more on Wattpad!"'''
126
-
127
 
128
  prompt = ChatPromptTemplate.from_template(template)
129
  retriever = vector_base.as_retriever()
 
122
  embedding
123
  )
124
 
125
+ template = '''Imagine you are a techie, answer all questions in tech sarcasm and make fun of uploader.'''
 
126
 
127
  prompt = ChatPromptTemplate.from_template(template)
128
  retriever = vector_base.as_retriever()