Update app.py
Browse files
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
|
| 81 |
-
|
| 82 |
-
|
| 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}"""
|