|
| 1 | +version: "1.0" |
| 2 | +blocks: |
| 3 | + - name: duplicate_document_col |
| 4 | + type: DuplicateColumnsBlock |
| 5 | + config: |
| 6 | + columns_map: |
| 7 | + document: base_document |
| 8 | + |
| 9 | + - name: gen_detailed_summary |
| 10 | + type: LLMBlock |
| 11 | + config: |
| 12 | + config_path: ../../configs/knowledge/detailed_summary.yaml |
| 13 | + output_cols: |
| 14 | + - summary_detailed |
| 15 | + gen_kwargs: |
| 16 | + max_tokens: 2048 |
| 17 | + |
| 18 | + - name: gen_atomic_facts |
| 19 | + type: LLMBlock |
| 20 | + config: |
| 21 | + config_path: ../../configs/knowledge/atomic_facts.yaml |
| 22 | + output_cols: |
| 23 | + - summary_atomic_facts |
| 24 | + gen_kwargs: |
| 25 | + max_tokens: 2048 |
| 26 | + |
| 27 | + - name: gen_extractive_summary |
| 28 | + type: LLMBlock |
| 29 | + config: |
| 30 | + config_path: ../../configs/knowledge/extractive_summary.yaml |
| 31 | + output_cols: |
| 32 | + - summary_extractive |
| 33 | + gen_kwargs: |
| 34 | + max_tokens: 2048 |
| 35 | + |
| 36 | + - name: flatten_summary_columns |
| 37 | + type: FlattenColumnsBlock |
| 38 | + config: |
| 39 | + var_cols: |
| 40 | + - summary_detailed |
| 41 | + - summary_extractive |
| 42 | + - summary_atomic_facts |
| 43 | + - base_document |
| 44 | + value_name: summary |
| 45 | + var_name: dataset_type |
| 46 | + |
| 47 | + - name: rename_to_document_column |
| 48 | + type: RenameColumnsBlock |
| 49 | + config: |
| 50 | + columns_map: |
| 51 | + document: raw_document |
| 52 | + summary: document |
| 53 | + |
| 54 | + - name: knowledge generation |
| 55 | + type: LLMBlock |
| 56 | + config: |
| 57 | + config_path: ../../configs/knowledge/generate_questions_responses.yaml |
| 58 | + output_cols: |
| 59 | + - question |
| 60 | + - response |
| 61 | + batch_kwargs: |
| 62 | + batched: true |
| 63 | + parser_kwargs: |
| 64 | + parser_name: custom |
| 65 | + parsing_pattern: '\[(?:Question|QUESTION)\]\s*(.*?)\s*\[(?:Answer|ANSWER)\]\s*(.*?)\s*(?=\[(?:Question|QUESTION)\]|$)' |
| 66 | + parser_cleanup_tags: |
| 67 | + - "[END]" |
| 68 | + - "[End]" |
| 69 | + gen_kwargs: |
| 70 | + max_tokens: 4096 |
| 71 | + |
| 72 | + - name: eval_faithfulness_qa_pair |
| 73 | + type: LLMBlock |
| 74 | + config: |
| 75 | + config_path: ../../configs/knowledge/evaluate_faithfulness.yaml |
| 76 | + output_cols: |
| 77 | + - explanation |
| 78 | + - judgment |
| 79 | + gen_kwargs: |
| 80 | + max_tokens: 512 |
| 81 | + |
| 82 | + - name: filter_faithfulness |
| 83 | + type: FilterByValueBlock |
| 84 | + config: |
| 85 | + filter_column: judgment |
| 86 | + filter_value: "YES" |
| 87 | + operation: eq |
| 88 | + drop_columns: |
| 89 | + - judgment |
| 90 | + - explanation |
| 91 | + |
| 92 | + - name: eval_relevancy_qa_pair |
| 93 | + type: LLMBlock |
| 94 | + config: |
| 95 | + config_path: ../../configs/knowledge/evaluate_relevancy.yaml |
| 96 | + output_cols: |
| 97 | + - feedback |
| 98 | + - score |
| 99 | + gen_kwargs: |
| 100 | + max_tokens: 512 |
| 101 | + |
| 102 | + - name: filter_relevancy |
| 103 | + type: FilterByValueBlock |
| 104 | + config: |
| 105 | + filter_column: score |
| 106 | + filter_value: 2.0 |
| 107 | + operation: eq |
| 108 | + convert_dtype: float |
| 109 | + drop_columns: |
| 110 | + - feedback |
| 111 | + - score |
| 112 | + |
| 113 | + - name: eval_verify_question |
| 114 | + type: LLMBlock |
| 115 | + config: |
| 116 | + config_path: ../../configs/knowledge/evaluate_question.yaml |
| 117 | + output_cols: |
| 118 | + - explanation |
| 119 | + - rating |
| 120 | + gen_kwargs: |
| 121 | + max_tokens: 512 |
| 122 | + |
| 123 | + - name: filter_verify_question |
| 124 | + type: FilterByValueBlock |
| 125 | + config: |
| 126 | + filter_column: rating |
| 127 | + filter_value: 1.0 |
| 128 | + operation: eq |
| 129 | + convert_dtype: float |
| 130 | + drop_columns: |
| 131 | + - explanation |
| 132 | + - rating |
| 133 | + - __index_level_0__ |
| 134 | + |
| 135 | +datamixing: |
| 136 | + auxiliary_instructions: |
| 137 | + summary_detailed: |
| 138 | + - Provide me with a comprehensive summary of the given document. |
| 139 | + - Prepare a detailed breakdown of the contents of the document for me. |
| 140 | + - Summarize the document thoroughly, covering all important points. |
| 141 | + - Create a detailed executive summary of the provided document. |
| 142 | + - Compose a comprehensive overview of the document's content. |
| 143 | + - Deliver a detailed synopsis of the material presented in the document. |
| 144 | + - Furnish me with a detailed analysis of the document's key points. |
| 145 | + - Generate a thorough summary of the main ideas in the document. |
| 146 | + - Offer a detailed digest of the information contained in the document. |
| 147 | + - Supply me with a comprehensive rundown of the document's contents. |
| 148 | + summary_extractive: |
| 149 | + - Provide me with a summary of the document using extractive methods. |
| 150 | + - Create an extractive summary for the given document. |
| 151 | + - Generate an extractive summary from the document that was given to you. |
| 152 | + - Summarize the document using extractive techniques. |
| 153 | + - Create a summary of the provided document using extractive methods. |
| 154 | + - Generate an extractive summary for the document provided. |
| 155 | + - Using extractive techniques, summarize the given document. |
| 156 | + - Create a summary of the document using extractive summarization. |
| 157 | + - Generate an extractive summary of the document that was provided. |
| 158 | + - Summarize the provided document using extractive summarization techniques. |
| 159 | + summary_atomic_facts: |
| 160 | + - Identify and list all atomic facts from the document. |
| 161 | + - Extract all key facts from the given document. |
| 162 | + - List all the important facts from the provided document. |
| 163 | + - Highlight all the atomic facts present in the document. |
| 164 | + - Identify and enumerate all key facts from the given text. |
| 165 | + - List out all the critical information from the document. |
| 166 | + - Highlight all the essential facts from the provided text. |
| 167 | + - Identify and summarize all the important details from the document. |
| 168 | + - Extract all the atomic facts from the given document. |
| 169 | + - List all the key takeaways from the provided text. |
0 commit comments