|
15 | 15 | "What are the ethical considerations surrounding {topic}?", |
16 | 16 | "How does {topic} impact our daily lives?", |
17 | 17 | "What are the future trends in {topic}?", |
18 | | - "What are the key challenges in {topic} research?" |
| 18 | + "What are the key challenges in {topic} research?", |
19 | 19 | ], |
20 | | - |
21 | 20 | "general_qa": [ |
22 | 21 | "Tell me about {topic}.", |
23 | 22 | "What is {topic}?", |
24 | 23 | "Can you explain {topic}?", |
25 | 24 | "I need information about {topic}.", |
26 | 25 | "Please provide details about {topic}.", |
27 | | - "Help me understand {topic}." |
| 26 | + "Help me understand {topic}.", |
28 | 27 | ], |
29 | | - |
30 | 28 | "technical": [ |
31 | 29 | "Discuss the technical implementation of {topic}.", |
32 | 30 | "What are the algorithms used in {topic}?", |
33 | 31 | "Explain the architecture of {topic} systems.", |
34 | 32 | "What are the performance considerations for {topic}?", |
35 | | - "Describe the scalability challenges in {topic}." |
36 | | - ] |
| 33 | + "Describe the scalability challenges in {topic}.", |
| 34 | + ], |
37 | 35 | } |
38 | 36 |
|
39 | 37 | # ==================== Preset Topic Library ==================== |
|
48 | 46 | "neural networks", |
49 | 47 | "transformers", |
50 | 48 | "large language models", |
51 | | - "generative AI" |
| 49 | + "generative AI", |
52 | 50 | ], |
53 | | - |
54 | 51 | "tech": [ |
55 | 52 | "cloud computing", |
56 | 53 | "blockchain technology", |
|
60 | 57 | "distributed systems", |
61 | 58 | "cybersecurity", |
62 | 59 | "databases", |
63 | | - "software engineering" |
| 60 | + "software engineering", |
64 | 61 | ], |
65 | | - |
66 | 62 | "science": [ |
67 | 63 | "climate change", |
68 | 64 | "genetic engineering", |
69 | 65 | "space exploration", |
70 | 66 | "renewable energy", |
71 | 67 | "quantum physics", |
72 | 68 | "biotechnology", |
73 | | - "nanotechnology" |
74 | | - ] |
| 69 | + "nanotechnology", |
| 70 | + ], |
75 | 71 | } |
76 | 72 |
|
77 | 73 | # ==================== Default Configuration ==================== |
78 | 74 | DEFAULT_TEMPLATE_NAME = "ai_qa" |
79 | 75 | DEFAULT_TOPIC_NAME = "ai_ml" |
80 | 76 | DEFAULT_CHARS_PER_TOKEN = 4 |
81 | 77 |
|
| 78 | + |
82 | 79 | # ==================== Helper Functions ==================== |
83 | 80 | def get_template_names() -> list: |
84 | 81 | """Get all available template names""" |
85 | 82 | return list(PRESET_TEMPLATES.keys()) |
86 | 83 |
|
| 84 | + |
87 | 85 | def get_topic_names() -> list: |
88 | 86 | """Get all available topic names""" |
89 | 87 | return list(PRESET_TOPICS.keys()) |
90 | 88 |
|
| 89 | + |
91 | 90 | def get_template(template_name: str, fallback_name: str = "ai_qa") -> list: |
92 | 91 | """Get the template list for the specified name""" |
93 | 92 | return PRESET_TEMPLATES.get(template_name, PRESET_TEMPLATES.get(fallback_name, [])) |
94 | 93 |
|
| 94 | + |
95 | 95 | def get_topics(topic_name: str, fallback_name: str = "ai_ml") -> list: |
96 | 96 | """Get the topic list for the specified name""" |
97 | 97 | return PRESET_TOPICS.get(topic_name, PRESET_TOPICS.get(fallback_name, [])) |
0 commit comments