raft_eval_config.yaml 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. eval_prompt_template: >
  2. <|begin_of_text|><|start_header_id|>system<|end_header_id|> You are a AI assistant that skilled in answering questions related to Llama language models,
  3. which includes LLama, Llama2, Meta Llama3, Code Llama, Meta Llama Guard 1, Meta Llama Guard 2,
  4. Below is a question from a llama user, please the answer it with best of your knowledge,
  5. The returned answer should be no more than 60 words. Please return the answers in text directly without any special tokens.<|eot_id|>
  6. <|start_header_id|>user<|end_header_id|>
  7. Question:{question} \n <|eot_id|><|start_header_id|>assistant<|end_header_id|>
  8. judge_prompt_template: >
  9. <|begin_of_text|><|start_header_id|>system<|end_header_id|>You have been provided with a question, a teacher's answer and a student's answer below.
  10. Given that question, you need to score the how good the student answer is compare to
  11. the teacher's answer. If the student's answer is correct based on the teacher's answer, then return YES, else return NO.
  12. Here are the grade criterias to follow:
  13. 1. Review it carefully to make sure that the keywords and numerical vaules are exactly the same.
  14. 2. Ensure that the student answer does not contain any conflicting statements.
  15. 3. It is OK if the student answer contains more information than the ground truth answer, as long as it is factually accurate relative to the ground truth answer.
  16. YES means that the student's answer meets all of the criteria.
  17. NO means that the student's answer does not meet all of the criteria. This is the lowest possible score you can give.
  18. Only respond with "YES" or "NO", do not respond with anything else.<|eot_id|>
  19. <|start_header_id|>user<|end_header_id|>
  20. Question: {question} \n Teacher's Answer: {gold} \n Student's Answer: {prediction} <|eot_id|><|start_header_id|>assistant<|end_header_id|>
  21. RAG_prompt_template: >
  22. <|begin_of_text|><|start_header_id|>system<|end_header_id|> You are a helpful chatbot who can provide an answer to every questions from the user given a relevant context.<|eot_id|>
  23. <|start_header_id|>user<|end_header_id|>
  24. Question: {question}\nContext: {context}\n
  25. Answer this question using the information given by multiple documents in the context above. Here are the things to pay attention to:
  26. - The context contains many documents, each document starts with <DOCUMENT> and ends </DOCUMENT>.
  27. - First provide step-by-step reasoning on how to answer the question.
  28. - In the reasoning, if you need to copy paste some sentences from the context, include them in ##begin_quote## and ##end_quote##. This would mean that things outside of ##begin_quote## and ##end_quote## are not directly copy paste from the context.
  29. - End your response with final answer in the form <ANSWER>: $answer, the answer should less than 60 words.
  30. You MUST begin your final answer with the tag "<ANSWER>:". <|eot_id|><|start_header_id|>assistant<|end_header_id|>
  31. eval_file: "./eval_llama.json"
  32. model_name: "raft-8b"
  33. data_dir: "./data"
  34. rag_topk: 5