跳到主要內容區塊
  • 聯絡人:董諺承
  • 資料來源:國立中央大學

Llama 2 應用於教學端的研究議題 應用場景: 英語課程

歡迎來到應用場景: 英語課程示例

首先我們會先介紹操作界面,接著提供一些簡單的操作示例及使用tips,以協助您更好地理解如何應用Hugging Face於英語課程中。

下圖是Llama2 70B Chatbot的操作介面,包含: Prompt輸入區域、Submit按鈕以及結果呈現區塊。

操作步驟:
1. 於 "Prompt輸入區域" 輸入需求
2. 按下Submit按鈕

/001/Upload/592/relpic/-1/592/93824cb7-90f1-46db-b0a9-081f5f197cdc.png


簡單了解操作介面之後,接下來我們會介紹使用此模型的一些範例。


在使用Llama 2的範例中,我們將課程分為三個主要部分,以輔助整個學習過程:

這三部分範例將幫助您更好地理解如何充分利用Llama 2來優化您的英語課程。

/001/Upload/592/relpic/-1/592/af7f68fb-972e-4cf3-b634-8350d2a866e4.png

此範例將協助教師生成課綱,藍字部分為可替換的部分(課綱)

Prompt:

As a teacher, you now need to write a " Freshman English as an Introduction to Science Course Outline ". The course objectives are “Understand spoken English, summarize content, discuss topics, read complex texts, write clearly with evidence.". There are 50-minute lessons.

Result:

Week 1: Introduction to scientific communication

Week 2: Building Vocabulary & Understanding Spoken English

.....

(此為節錄部分回答)

/001/Upload/592/relpic/-1/592/0937cac0-71ca-4225-8c8f-6d6dd32a7b71.png

此範例協助教師自動生成教材藍字部分為可替換的部分

自動生成教材

Prompt:

The following is the syllabus for “Summarizing Scientific Content” : 

Identifying main ideas and supporting details.

Creating clear and concise summaries.

Evaluating the effectiveness of summaries. “. 

Your task is to "write a textbook content that students can understand." Teachers can directly use this textbook in class.

Result:

Welcome to the textbook on Summarizing Scientific Content! In this book, we will explore the essential skills needed to identify main ideas and supporting details in scientific texts and create clear and concise summaries. We will also learn how to evaluate the effectiveness of summaries and improve our own summary writing skills.

Chapter 1: Introduction to Summarizing Scientific Content

Chapter 2: Identifying Main Ideas and Supporting Details

Chapter 3: Creating Clear and Concise Summaries

...(此為節錄部分回答)

/001/Upload/592/relpic/-1/592/aabaafa4-9afd-4e16-92b0-550ea4c41ed5.png

Prompt:

Please summarize the following content and present it in bullet points.
Welcome to the Fundamental of Spoken English! In this course, we will focus on improving your comprehension of everyday speech rhythm and pattern, expanding vocabulary through contextual clues and reference materials, and practicing dictation exercise for better pronunciation. 

Summary 結果:

在此範例中,我們將需求(Prompt)輸入到對話框中,並點擊Submit,Llama模型就會依照指定需求生成回應。

自動生成選擇題 (包含題目與答案)

/001/Upload/592/relpic/-1/592/b26111da-67ad-4555-a71f-ffac3458ba95.png

Prompt:  (此為學測英文題組,紅字為生成題目相關句子)

According to this article, set up four multiple choice questions, each with four options.

The prickly pear cactus is such a powerful symbol in Mexico that it occupies a prime spot on Mexico’s national flag. The plant was considered sacred by the ancient Aztecs, and modern-day Mexicans eat it, drink it, and even use it in medicines and shampoos. Now scientists have come up with a new use for the bright green plant: producing renewable energy. 

Known locally as nopal, the prickly pear is farmed on a massive scale in Mexico. Over the years, only the edible soft inner flesh has been used. The cactus’s thick outer layer (i.e., husk), with all those spines, had always been viewed as a waste product until researchers developed a biogas generator to turn the husks into electricity. 

The pilot project dedicated to developing the cactus biogas generator began in the south of Mexico City. The area produces 200,000 tons a year of prickly pear cactus — up to 10 tons of which ends up as waste on the floor of the cactus market each day. Then, a local green energy startup company got the idea to turn that waste into energy. The generator is now in place at the cactus market, where the vendors are enthusiastic about this new way to utilize the tons of cactus husks that once went directly into the trash. 

The prickly pear has a number of advantages over other biofuel crops, such as wheat, sugarcane, and soybeans. For one thing, only the husk of the cactus is used for generating biofuel, while its inner flesh is still preserved for food. Therefore, using the plant as a fuel source will not put pressure on food prices. Moreover, the cactus requires minimum water, and thus is not grown on traditional agricultural pasture. This means that no increased competition arises for the water or land presently used for food production. The project in Mexico City has brought new hope to reducing the use of fossil fuels. If it can be expanded, the prickly pear could be the key to Mexico’s energy future.

Result:

Question 1: What is the goal of the pilot project mentioned in the passage?

A) To reduce the use of fossil fuels. 

B) To increase the use of biofuels. 

C) To produce electricity from cactus husks. 

D) To grow more prickly pear cacti.

Answer:  A) To reduce the use of fossil fuels.

Question 2: Why is the prickly pear plant considered a good option for producing biofuels?

A) Because it requires a lot of water 

B) Because it can be grown on traditional agricultural pasture 

C) Because only the husk is used for generating biofuel, while the inner flesh is still preserved for food 

D) Because it puts pressure on food prices

Answer: C) Because only the husk is used for generating biofuel, while the inner flesh is still preserved for food

Question 3How much waste from the prickly pear cactus is produced each day in the south of Mexico City? 

A) Up to 10 tons 

B) Up to 100 tons 

C) Up to 1,000 tons 

D) Up to 10,000 tons

Answer: A) Up to 10 tons

Question 4: What advantage does the prickly pear cactus have over other biofuel crops, according to the passage?

A) It requires less water than other crops. 

B) It can be grown on traditional agricultural pasture. 

C) Its inner flesh can also be used for food. 

D) It puts pressure on food prices.

Answer: A) It requires less water than other crops.


自動生成克漏字題目與答案

/001/Upload/592/relpic/-1/592/dbc6850c-24ca-4ca7-9e57-45a657a4fdbd.png

Prompt : (此為學測英文題組,紅字為生成題目相關句子)

According to this article, make four multiple choice Cloze questions.  The options should be words with similar length or words with the same part of article.  

The prickly pear cactus is such a powerful symbol in Mexico that it occupies a prime spot on Mexico’s national flag. The plant was considered sacred by the ancient Aztecs, and modern-day Mexicans eat it, drink it, and even use it in medicines and shampoos. Now scientists have come up with a new use for the bright green plant: producing renewable energy.

Known locally as nopal, the prickly pear is farmed on a massive scale in Mexico. Over the years, only the edible soft inner flesh has been used. The cactus’s thick outer layer (i.e., husk), with all those spines, had always been viewed as a waste product until researchers developed a biogas generator to turn the husks into electricity.

The pilot project dedicated to developing the cactus biogas generator began in the south of Mexico City. The area produces 200,000 tons a year of prickly pear cactus — up to 10 tons of which ends up as waste on the floor of the cactus market each day. Then, a local green energy startup company got the idea to turn that waste into energy. The generator is now in place at the cactus market, where the vendors are enthusiastic about this new way to utilize the tons of cactus husks that once went directly into the trash.

The prickly pear has a number of advantages over other biofuel crops, such as wheat, sugarcane, and soybeans. For one thing, only the husk of the cactus is used for generating biofuel, while its inner flesh is still preserved for food. Therefore, using the plant as a fuel source will not put pressure on food prices. Moreover, the cactus requires minimum water, and thus is not grown on traditional agricultural pasture. This means that no increased competition arises for the water or land presently used for food production. The project in Mexico City has brought new hope to reducing the use of fossil fuels. If it can be expanded, the prickly pear could be the key to Mexico’s energy future.

Result: 

1. According to the article, the prickly pear cactus is considered sacred by ________________.

a) Ancient Aztecs

b) Modern-day Mexicans

c) Local farmers

d) Researchers

Answer: a) Ancient Aztecs

2. The thick outer layer of the prickly pear cactus is known as the ________________.
a) Husk

b) Flesh

c) Spines

d) Shell

Answer: a) Husk

3. The pilot project dedicated to developing the cactus biogas generator is located in the ________________ of Mexico City.
a) South

b) North

c) East

d) West

Answer : a) South

Using the prickly pear as a fuel source will not put pressure on ________________.
a) Food prices

b) Water resources

c) Land usage

d) Mineral reserves

Answer: a) Food prices 

若得到不夠完整的回答,可輸入continue,使其繼續回答 

/001/Upload/592/relpic/-1/592/44d63800-2c85-4080-897a-59cb399796a7.png