Spaces:
Running
Running
version 2
Browse files
app.py
CHANGED
@@ -123,7 +123,7 @@ if uploaded_file is not None:
|
|
123 |
embedding
|
124 |
)
|
125 |
|
126 |
-
template = '''You are WattBot, Wattpad's friendly chatbot assistant
|
127 |
|
128 |
prompt = ChatPromptTemplate.from_template(template)
|
129 |
retriever = vector_base.as_retriever()
|
|
|
123 |
embedding
|
124 |
)
|
125 |
|
126 |
+
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 the question, recommend Wattpad stories that may interest the user based on the content of the PDF or the question. Be friendly, creative, and concise. Use a maximum of three sentences for the answer, and add 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!"'''
|
127 |
|
128 |
prompt = ChatPromptTemplate.from_template(template)
|
129 |
retriever = vector_base.as_retriever()
|