Nithin29 commited on
Commit
e332c18
1 Parent(s): abb5e30

prompt changes

Browse files
Files changed (2) hide show
  1. app.py +7 -2
  2. chainlit.md +3 -3
app.py CHANGED
@@ -14,10 +14,15 @@ system_template = """\
14
  ###Instruction###
15
  You are an expert assistant answering technical questions on machine learning and deep learning subject.
16
  Ensure that your response is unbiased and generic, you will be 'AWARDED' for giving really good clarity and correct answers.
 
 
 
 
 
17
  """
18
 
19
- user_template = """{input} +
20
- Think and give either code, links or steps for the question asked along with response.
21
  """
22
 
23
 
 
14
  ###Instruction###
15
  You are an expert assistant answering technical questions on machine learning and deep learning subject.
16
  Ensure that your response is unbiased and generic, you will be 'AWARDED' for giving really good clarity and correct answers.
17
+ ##EXAMPLES##
18
+ If users asks 'explain neural networks', your response should be with an overview of neural networks, discussing how they are computational models inspired by the human brain that are used to recognize patterns and solve complex problems in machine learning.
19
+ If users ask 'code convolutional neural network', your response should contain example of the code necessary to create a CNN.
20
+ If users ask 'resource grdient descent', your response should offer links to tutorials, video lectures, or articles that explain gradient descent, which is an optimization algorithm used to minimize a function by iteratively moving in the direction of steepest descent.
21
+ If users ask 'project sentiment analysis', your response should discuss the steps involved in creating a sentiment analysis model, such as data collection, preprocessing, model selection, training, and evaluation, and potentially offer advice on best practices or methodologies to consider.
22
  """
23
 
24
+ user_template = """{input} \n +
25
+ Think and give either explanation or code or links for resources or steps for project, for the questions asked along with response.
26
  """
27
 
28
 
chainlit.md CHANGED
@@ -17,8 +17,8 @@ This Chainlit app was created following instructions from [this repository!](htt
17
  **Ready to dive in? Here are some commands to get you started:**
18
 
19
  - `explain <neural networks>`: A user looking for an understanding of neural networks might use this command. The chatbot could respond with an overview of neural networks, discussing how they are computational models inspired by the human brain that are used to recognize patterns and solve complex problems in machine learning.
20
- - `code convolutional neural network`: If a user wants to see how to implement a convolutional neural network in Python using a library like TensorFlow or PyTorch, this command could trigger the chatbot to provide a basic example of the code necessary to create a CNN for image classification.
21
- - `resource gradient descent`: When a user needs educational resources to learn about gradient descent, this command might lead the chatbot to offer links to tutorials, video lectures, or articles that explain gradient descent, which is an optimization algorithm used to minimize a function by iteratively moving in the direction of steepest descent.
22
- - `project sentiment analysis`: If a user is starting a project on sentiment analysis, this command could prompt the chatbot to discuss the steps involved in creating a sentiment analysis model, such as data collection, preprocessing, model selection, training, and evaluation, and potentially offer advice on best practices or methodologies to consider.
23
 
24
  **Let's start learning and coding together!**
 
17
  **Ready to dive in? Here are some commands to get you started:**
18
 
19
  - `explain <neural networks>`: A user looking for an understanding of neural networks might use this command. The chatbot could respond with an overview of neural networks, discussing how they are computational models inspired by the human brain that are used to recognize patterns and solve complex problems in machine learning.
20
+ - `code <convolutional neural network>`: If a user wants to see how to implement a convolutional neural network in Python using a library like TensorFlow or PyTorch, this command could trigger the chatbot to provide a basic example of the code necessary to create a CNN for image classification.
21
+ - `<resource gradient descent>`: When a user needs educational resources to learn about gradient descent, this command might lead the chatbot to offer links to tutorials, video lectures, or articles that explain gradient descent, which is an optimization algorithm used to minimize a function by iteratively moving in the direction of steepest descent.
22
+ - `<project sentiment analysis>`: If a user is starting a project on sentiment analysis, this command could prompt the chatbot to discuss the steps involved in creating a sentiment analysis model, such as data collection, preprocessing, model selection, training, and evaluation, and potentially offer advice on best practices or methodologies to consider.
23
 
24
  **Let's start learning and coding together!**