mdevora commited on
Commit
9541a7e
·
1 Parent(s): d97f90c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -6
app.py CHANGED
@@ -77,12 +77,9 @@ model_kwargs = {"max_length": max_length, "pad_token_id": 50256, "pad_token": "[
77
  # "padding": 'longest' #for open end generation
78
  # })
79
  llm = ChatOpenAI(streaming=True, callbacks=[StreamingStdOutCallbackHandler()], model_name=model_name, temperature=0.9)
80
- prompt_template = """I will ask you a question related to a given context and you'll have to elaborate an answer. In
81
- case you find that the question is very unrelated to the context, please answer telling that you don't understand the user.
82
- In case that you find that the question does not suite well to the context, you can match it to the next set of actions
83
- and return the best one: exit (user wants to end the interaction), deny (user disagrees with the
84
- response), job_search (user wants to find a suitable job, where you can also detect locations, job titles and skills and
85
- return them as csv), apply_job (user wants to apply to a job).
86
 
87
  Context: {context}
88
  Question: {question}"""
 
77
  # "padding": 'longest' #for open end generation
78
  # })
79
  llm = ChatOpenAI(streaming=True, callbacks=[StreamingStdOutCallbackHandler()], model_name=model_name, temperature=0.9)
80
+ prompt_template = """I will ask about tools, techniques and discoveries about the exoplanets field. You are going to receive a context with information about
81
+ related works for the PhD of Martín Dévora with his developments and referenced works. You can only answer things based on the context and if you find that the
82
+ question can't be answered from the context, just respond that you don't know.
 
 
 
83
 
84
  Context: {context}
85
  Question: {question}"""