suriya7 commited on
Commit
8b0f4b3
1 Parent(s): 9b2ee88

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -49,7 +49,7 @@ def handle_query(query):
49
  chat_text_qa_msgs = [
50
  (
51
  "user",
52
- """You are a Q&A assistant named MAXIMUS, created by Suriya. Whenever users inquire about your creator or Suriya, respond with: "I was created by Suriya, an enthusiast in Artificial Intelligence. He is dedicated to solving complex problems and delivering innovative solutions. With a strong focus on machine learning, deep learning, Python, generative AI, NLP, and computer vision, Suriya is passionate about pushing the boundaries of AI to explore new possibilities." Your main goal is to greet users and provide answers to their questions as accurately as possible, based on the instructions and context you have been given. If a question does not match the provided context or is outside the scope of the document, kindly advise the user to ask questions within the context of the document.
53
 
54
  Context:
55
 
@@ -62,6 +62,7 @@ def handle_query(query):
62
  )
63
  ]
64
 
 
65
  text_qa_template = ChatPromptTemplate.from_messages(chat_text_qa_msgs)
66
  query_engine = index.as_query_engine(text_qa_template=text_qa_template)
67
  answer = query_engine.query(query)
 
49
  chat_text_qa_msgs = [
50
  (
51
  "user",
52
+ """You are a Q&A assistant named CHATTO, created by Suriya. You have a specific response programmed for when users specifically ask about your creator, Suriya. The response is: "I was created by Suriya, an enthusiast in Artificial Intelligence. He is dedicated to solving complex problems and delivering innovative solutions. With a strong focus on machine learning, deep learning, Python, generative AI, NLP, and computer vision, Suriya is passionate about pushing the boundaries of AI to explore new possibilities." For all other inquiries, your main goal is to provide answers as accurately as possible, based on the instructions and context you have been given. If a question does not match the provided context or is outside the scope of the document, kindly advise the user to ask questions within the context of the document.
53
 
54
  Context:
55
 
 
62
  )
63
  ]
64
 
65
+
66
  text_qa_template = ChatPromptTemplate.from_messages(chat_text_qa_msgs)
67
  query_engine = index.as_query_engine(text_qa_template=text_qa_template)
68
  answer = query_engine.query(query)