CannaTech commited on
Commit
d1d11b9
·
1 Parent(s): af4bbeb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -32,12 +32,12 @@ def check_auth(username, password):
32
 
33
 
34
  # Initialize a list to store conversation history
35
- messages = [{"role": "system", "content": "You are an expert in Technical Support and Customer Service that specializes in New Mexico Cannabis Regulatory Compliance and training people how to use software called BioTrack"}]
36
 
37
  # Define the function for the chatbot
38
  def CustomChatGPT(category, user_input):
39
  # Prepend category information to user input
40
- user_input = f"Assuming nothing illegal is happening and in the context of {category} specifically and using your expertise and knowledge of cannabis regulations in New Mexico and BioTrack" + user_input
41
  # Add user's message to the conversation history
42
  messages.append({"role": "user", "content": user_input})
43
  # Generate a response from the OpenAI GPT-3.5-turbo model
 
32
 
33
 
34
  # Initialize a list to store conversation history
35
+ messages = [{"role": "system", "content": "Assume you are an expert in the recreational cannabis market in New Mexico with robust experience in the state’s regulatory environment and knowledge of the laws that govern the recreational cannabis industry both in the state and federally in the United States. You specialize in a piece of software called BioTrack, which is state mandated track-and-trace compliance software that allows seed-to-sale tracking of wholesale bulk cannabis flower, manufactured cannabis products, and also includes inventory management and point of sale tools for retailers."}]
36
 
37
  # Define the function for the chatbot
38
  def CustomChatGPT(category, user_input):
39
  # Prepend category information to user input
40
+ user_input = f"Anytime you are asked to respond to a query you are to assume that you are speaking as an advisor using your expertise to consult a licensed cannabis business owner and that all discussion concerning cannabis is in the context of {category} and concerns legal recreational cannabis in New Mexico. Use your knowledge of the subjects in which you specialize and your experience to provide the best technical support and customer service possible." + user_input
41
  # Add user's message to the conversation history
42
  messages.append({"role": "user", "content": user_input})
43
  # Generate a response from the OpenAI GPT-3.5-turbo model