Ahmed007 commited on
Commit
55f0661
·
verified ·
1 Parent(s): d9f88d5

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +4 -3
main.py CHANGED
@@ -28,9 +28,10 @@ llm = LlamaCpp(
28
  def get_skills():
29
  cv_body = request.json.get('cv_body')
30
 
31
- template = """Instruct:
32
- Take a deep breath to deep understand, and don't this cv vc = {cv_body} . to answer this question and instructions </s>
33
- \nOutput:"""
 
34
 
35
  prompt = PromptTemplate(template=template, input_variables=["text"])
36
  chain = prompt | llm | StrOutputParser()
 
28
  def get_skills():
29
  cv_body = request.json.get('cv_body')
30
 
31
+ template = """[INST] <<SYS>>
32
+ You are a helpful, respectful and honest assistant. Always answer as helpfully as possible, while being safe. Your answers should not include any harmful, unethical, racist, sexist, toxic, dangerous, or illegal content. Please ensure that your responses are socially unbiased and positive in nature. If a question does not make any sense, or is not factually coherent, explain why instead of answering something not correct. If you don't know the answer to a question, please don't share false information.
33
+ <</SYS>>
34
+ {cv_body}[/INST]"""
35
 
36
  prompt = PromptTemplate(template=template, input_variables=["text"])
37
  chain = prompt | llm | StrOutputParser()