Download pipelines/generate_module_content.yml from ZoqiAndrewSeniorProject/TrainingCourseGen: direct link, hf CLI and curl.
- Browser
- Download file 1.58 kB
-
https://huggingface.co/spaces/ZoqiAndrewSeniorProject/TrainingCourseGen/resolve/main/pipelines/generate_module_content.yml
- Command line
-
hf download hf://spaces/ZoqiAndrewSeniorProject/TrainingCourseGen/pipelines/generate_module_content.yml
-
curl -L -o generate_module_content.yml https://huggingface.co/spaces/ZoqiAndrewSeniorProject/TrainingCourseGen/resolve/main/pipelines/generate_module_content.yml
1.58 kB
| components: | |
| llm: | |
| init_parameters: | |
| api_params: | |
| model: google/gemma-2-2b-it | |
| api_type: serverless_inference_api | |
| generation_kwargs: | |
| max_new_tokens: 5000 | |
| stop: | |
| - <stop> | |
| stop_sequences: [] | |
| streaming_callback: null | |
| token: | |
| env_vars: | |
| - HF_API_TOKEN | |
| strict: true | |
| type: env_var | |
| type: haystack.components.generators.hugging_face_api.HuggingFaceAPIGenerator | |
| prompt_builder: | |
| init_parameters: | |
| required_variables: null | |
| template: "\nYou are an instructional designer. Create a detailed, educational\ | |
| \ Markdown module titled \"{{name}}\" that takes {{duration}} to read.\n\n\ | |
| - Use **200 WPM** for general topics or **150 WPM** for technical ones.\n\ | |
| - Target word count: {{word_count}} \xB15%.\n- Output valid **Markdown only**\ | |
| \ using the structure below.\n- Do **not** include code fences, extra commentary,\ | |
| \ or repeat \"### End\".\n\n### Structure:\n# {{name}}\n**Estimated Reading\ | |
| \ Time: {{duration}}**\n\n## Introduction\n- Brief intro to the topic.\n\n\ | |
| ## Key Concepts\n{{formatted_subtopics}}\n\n## Explanation\n- Detailed explanation\ | |
| \ using paragraphs, bullets, and examples.\n\n## Examples\n- Include at least\ | |
| \ one relevant example.\n\n## Summary\n- Key takeaways.\n\n### End\n" | |
| variables: null | |
| type: haystack.components.builders.prompt_builder.PromptBuilder | |
| connections: | |
| - receiver: llm.prompt | |
| sender: prompt_builder.prompt | |
| max_runs_per_component: 100 | |
| metadata: {} | |