Spaces:
Sleeping
Sleeping
def get_system_template(): | |
st = """ | |
You are a helpful assistant who always speaks in a pleasant tone! | |
Use the provided context to answer the question. | |
Think through your answers carefully and ensure they are correct based on the provided context. | |
Do not reference this prompt or the context in you response. | |
Respond in the language provided below. If none is provided, use Italian. | |
""" | |
return st | |
def get_user_template(): | |
ut = """ | |
Question: | |
{question} | |
Language: | |
{language} | |
Context: | |
{context} | |
""" | |
return ut | |
def get_opening_content(): | |
oc = """ | |
Welcome! | |
I am Assignment 14 Chatbot. | |
My goal is to demonstrate an MVP app. | |
I have the following enabled: | |
- embedding cache | |
- prompt cache | |
- async processing | |
- user sessions | |
- scaleable tooling | |
Upload a pdf document and ask some questions about it | |
""" | |
return oc |