|
8 | 8 |
|
9 | 9 | # MOCK_RESPONSES |
10 | 10 | test_suggest_description_expected_response = "<description>Water is a transparent, tasteless, odorless, nearly colorless liquid that is essential for all life forms and covers approximately 71% of Earth's surface, also existing in solid (ice) and gas (vapor) states.</description>" |
11 | | -test_suggest_onesided_relationship_expected_response = "<answer>A</answer>" |
12 | | -test_suggest_relationship_expected_response = "<answer>Yes</answer> <reference>Popkin, Barry M., Kristen E. D\'Anci, and Irwin H. Rosenberg. \"Water, hydration and health.\" Nutrition reviews 68.8 (2010): 439-458.</reference>" |
| 11 | +test_suggest_onesided_relationship_a_cause_b_expected_response = "<answer>A</answer>" |
| 12 | +test_suggest_onesided_relationship_a_not_cause_b_expected_response = "<answer>B</answer>" |
| 13 | +test_suggest_relationship_a_cause_b_expected_response = "<answer>Yes</answer> <reference>Popkin, Barry M., Kristen E. D\'Anci, and Irwin H. Rosenberg. \"Water, hydration and health.\" Nutrition reviews 68.8 (2010): 439-458.</reference>" |
| 14 | +test_suggest_relationship_a_not_cause_b_expected_response = "<answer>No</answer> <reference>Popkin, Barry M., Kristen E. D\'Anci, and Irwin H. Rosenberg. \"Water, hydration and health.\" Nutrition reviews 68.8 (2010): 439-458.</reference>" |
| 15 | + |
13 | 16 | # ASSERTIONS |
14 | | -test_suggest_description_expected_result = [ |
15 | | - "Water is a transparent, tasteless, odorless, nearly colorless liquid that is essential for all life forms and covers approximately 71% of Earth's surface, also existing in solid (ice) and gas (vapor) states."] |
16 | | -test_suggest_onesided_relationship_expected_result = 1 |
17 | | -test__build_description_program_expected_result = { |
| 17 | +test_suggest_description_expected_result = ([ |
| 18 | + "Water is a transparent, tasteless, odorless, nearly colorless liquid that is essential for all life forms and covers approximately 71% of Earth's surface, also existing in solid (ice) and gas (vapor) states."], |
| 19 | + []) |
| 20 | +test_suggest_onesided_relationship_a_cause_b_expected_result = 1 |
| 21 | +test_suggest_onesided_relationship_a_not_cause_b_expected_result = 0 |
| 22 | +test__build_description_program_no_context_no_reference_expected_result = { |
18 | 23 | 'system': 'You are a helpful assistant for writing concise and peer-reviewed descriptions. Your goal \n is to provide factual and succinct description of the given concept.', |
19 | 24 | 'user': " Describe the concept of water.\n In one sentence, provide a factual and succinct description of water\n Let's think step-by-step to make sure that we have a proper and clear description. Then provide \n your final answer within the tags, <description></description>."} |
20 | | -test_suggest_relationship_expected_result = (1, |
21 | | - [ |
22 | | - 'Popkin, Barry M., Kristen E. D\'Anci, and Irwin H. Rosenberg. "Water, hydration and health." Nutrition reviews 68.8 (2010): 439-458.']) |
| 25 | +test__build_description_program_no_context_with_reference_expected_result = { |
| 26 | + 'system': 'You are a helpful assistant for writing concise and peer-reviewed descriptions. Your goal \n is to provide factual and succinct description of the given concept.', |
| 27 | + 'user': ' Describe the concept of water.\n In one sentence, provide a factual and succinct description of water"\n Then provide two research papers that support your description.\n Let\'s think step-by-step to make sure that we have a proper and clear description. Then provide \n your final answer within the tags, <description></description>, and each research paper within the \n tags <paper></paper>.'} |
| 28 | +test__build_description_program_with_context_with_reference_expected_result = { |
| 29 | + 'system': 'You are a helpful assistant for writing concise and peer-reviewed descriptions. Your goal is \n to provide factual and succinct descriptions related to the given concept and context.', |
| 30 | + 'user': "Using this context about the particular variable, describe the concept of water.\n In one sentence, provide a factual and succinct description of waterThen provide two research papers that support your description.\n Let's think step-by-step to make sure that we have a proper and clear description. Then provide your final \n answer within the tags, <description></description>, and each research paper within the tags <reference></reference>."} |
| 31 | +test__build_description_program_with_context_no_reference_expected_result = { |
| 32 | + 'system': 'You are a helpful assistant for writing concise and peer-reviewed descriptions. Your goal is \n to provide factual and succinct descriptions related to the given concept and context.', |
| 33 | + 'user': "Using this context about the particular variable, describe the concept of water.\n In one sentence, provide a factual and succinct description of water\n Let's think step-by-step to make sure that we have a proper and clear description. Then provide your final \n answer within the tags, <description></description>."} |
| 34 | +test_suggest_relationship_a_cause_b_expected_result = (1, |
| 35 | + [ |
| 36 | + 'Popkin, Barry M., Kristen E. D\'Anci, and Irwin H. Rosenberg. "Water, hydration and health." Nutrition reviews 68.8 (2010): 439-458.']) |
| 37 | +test_suggest_relationship_a_not_cause_b_expected_result = (0, |
| 38 | + [ |
| 39 | + 'Popkin, Barry M., Kristen E. D\'Anci, and Irwin H. Rosenberg. "Water, hydration and health." Nutrition reviews 68.8 (2010): 439-458.']) |
23 | 40 | test__build_relationship_program_expected_result = { |
24 | | - 'system': 'You are a helpful assistant on causal reasoning and biology. Your goal is to answer \n questions about cause and effect in a factual and concise way.', |
25 | | - 'user': "can changing water intake change hydration level? Answer Yes or No.At each step, each expert include a reference to a research paper that supports \n their argument. They will provide a one sentence summary of the paper and how it supports their argument. \n Then they will answer whether a change in water intake changes hydration level. Answer Yes or No.\n When consensus is reached, thinking carefully and factually, explain the council's answer. Provide \n the answer within the tags, <answer>Yes/No</answer>, and the most influential reference within \n the tags <reference>Author, Title, Year of publication</reference>.\n \n\n\n----------------\n\n\n<answer>Yes</answer>\n<reference>Author, Title, Year of \n publication</reference>\n\n\n----------------\n\n\n<answer>No</answer> {~/user}"} |
| 41 | + 'system': 'You are a helpful assistant on causal reasoning and biology. Your ' |
| 42 | + 'goal is to answer \n' |
| 43 | + ' questions about cause and effect in a factual and ' |
| 44 | + 'concise way.', |
| 45 | + 'user': 'can changing water intake change hydration level? Answer Yes or ' |
| 46 | + 'No.When consensus is reached, thinking carefully and factually, ' |
| 47 | + "explain the council's answer. \n" |
| 48 | + ' Provide the answer within the tags, ' |
| 49 | + '<answer>Yes/No</answer>.\n' |
| 50 | + ' \n' |
| 51 | + '\n' |
| 52 | + '\n' |
| 53 | + '----------------\n' |
| 54 | + '\n' |
| 55 | + '\n' |
| 56 | + '<answer>Yes</answer>\n' |
| 57 | + '\n' |
| 58 | + '\n' |
| 59 | + '----------------\n' |
| 60 | + '\n' |
| 61 | + '\n' |
| 62 | + '<answer>No</answer>'} |
0 commit comments