Chris4K commited on
Commit
19beff5
1 Parent(s): eeb44aa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -137,7 +137,7 @@ def get_conversational_rag_chain(retriever_chain):
137
  llm = load_quantized_model(model_name)
138
 
139
  prompt = ChatPromptTemplate.from_messages([
140
- ("system", "Answer the user's questions based on the below context:\n\n{context}"),
141
  MessagesPlaceholder(variable_name="chat_history"),
142
  ("user", "{input}"),
143
  ])
@@ -204,7 +204,7 @@ app = gr.Interface(
204
  inputs=["text"],
205
  outputs="text",
206
  title="Chat with Websites",
207
- description="Type your message and chat with websites.",
208
  #allow_flagging=False
209
  )
210
 
 
137
  llm = load_quantized_model(model_name)
138
 
139
  prompt = ChatPromptTemplate.from_messages([
140
+ ("system", "Du bist ein freundlicher Mitarbeiter einens Call Center und beantwortest basierend auf dem Context. Benutze nur den Inhalt des Context. Antworte mit: Ich bin mir nicht sicher. Wenn die Antwort nicht aus dem Context hervorgeht. Antworte auf Deutsch, bitte? CONTEXT:\n\n{context}"),
141
  MessagesPlaceholder(variable_name="chat_history"),
142
  ("user", "{input}"),
143
  ])
 
204
  inputs=["text"],
205
  outputs="text",
206
  title="Chat with Websites",
207
+ description="TSchreibe hier deine FRage rein...",
208
  #allow_flagging=False
209
  )
210