From b4e8bf1398c36b2d70c4d862c0ff203221d1c892 Mon Sep 17 00:00:00 2001 From: Russell Bryant Date: Wed, 17 Jul 2024 17:48:53 -0400 Subject: [PATCH] full: Adjust knowledge prompt for v3 schema For more information on the v3 schema, see this issue: https://github.com/instructlab/sdg/issues/160 This change to the prompt does a couple of important things: - Make use of document-specific context for the provided sample q&a. - Add the new `document_outline` field which provides a summary of the document. Co-authored-by: abhi1092 Co-authored-by: shiv Co-authored-by: Aakanksha Duggal Signed-off-by: Russell Bryant --- .../generate_questions_responses.yaml | 22 +++++-------------- 1 file changed, 5 insertions(+), 17 deletions(-) diff --git a/src/instructlab/sdg/configs/knowledge/generate_questions_responses.yaml b/src/instructlab/sdg/configs/knowledge/generate_questions_responses.yaml index 910c64a5..a2decd76 100644 --- a/src/instructlab/sdg/configs/knowledge/generate_questions_responses.yaml +++ b/src/instructlab/sdg/configs/knowledge/generate_questions_responses.yaml @@ -27,24 +27,9 @@ principles: | examples: | Here are some examples of questions: - [QUESTION] - Explain the process of photosynthesis in plants. Include in your answer the roles of chlorophyll, light, water, and carbon dioxide, and describe how oxygen and glucose are produced. - [ANSWER] - Photosynthesis is the process by which plants, algae, and some bacteria use sunlight to synthesize food from carbon dioxide and water. Photosynthesis in plants primarily occurs in the leaves, specifically in the chloroplasts. Chlorophyll, the green pigment in chloroplasts, absorbs light energy, which is then used to convert carbon dioxide (from the air) and water (from the soil) into glucose, a simple sugar. This process also releases oxygen as a byproduct. Light energy splits water molecules, releasing electrons and hydrogen ions and forming oxygen. The light-dependent reactions convert light energy into chemical energy (ATP and NADPH), which is used in the light-independent reactions (Calvin cycle) to convert carbon dioxide into glucose. The overall result is the conversion of solar energy into chemical energy in the form of glucose, which plants use for growth and development. - [END] - - [QUESTION] - In a study on the effects of temperature on enzyme activity, an enzyme exhibited its highest activity at 37°C. At both higher and lower temperatures, its activity decreased. Based on this information, which of the following best explains the enzyme's behavior? - Options: - a) Enzymes are temperature-sensitive and can denature at high temperatures, losing their functional shape, while at low temperatures, their reaction rates decrease due to reduced molecular motion. - b) Enzymes are more effective at higher temperatures as increased heat provides more energy for reactions, and lower temperatures cause enzymes to become more active due to enhanced molecular stability. - c) The enzyme's behavior is unrelated to temperature; instead, it is likely due to changes in pH levels, which affect enzyme activity. - d) All enzymes universally work best at exactly 37°C, as this is the standard temperature for all biochemical reactions in nature. - [ANSWER] - a) Enzymes are temperature-sensitive and can denature at high temperatures, losing their functional shape, while at low temperatures, their reaction rates decrease due to reduced molecular motion. - [END] + [Document] + {icl_document} - For this {domain} domain here are some sample questions: [QUESTION] {icl_query_1} [ANSWER] @@ -65,4 +50,7 @@ examples: | generation: | Here is the document: + + [DOCUMENT] + {document_outline} {document}