# Alpaca's Herbal Manual
Other languages：[简体中文](./README-zh_cn.md)  
[Demo](https://huggingface.co/spaces/magicgh/alpaca-herbal-manual)  
This repo contains a LoRA finetined model of LLaMa-7B specifically for Traditional Chinese Medicine (TCM) domain.  
⚠️ **Warning**: The model is not intended to be used for clinical diagnosis, and is only intended to be used for fun and research.

This experimental project is still under development.

## Dataset
The dataset used to finetune the model is a self-created 10k TCM dataset. The dataset is not publicly available temporarily. The dataset is created by extracting the TCM knowledge from the following sources:
* [TCM-SD: A Benchmark for Probing Syndrome Differentiation via Natural Language Processing](https://aclanthology.org/2022.ccl-1.80/)
## Example
Due to the limited size and quality of the dataset, the model is not very accurate. Answers to the question below are generated by the model, cut off maunally, and not verified by any TCM practitioner.
1. Question: 风寒犯目证的症状有哪些？  
   * Answer from LLaMa: 风寒犯目证的症状有哪些？风寒犯目证的症状有哪些？
   * Answer from Alpaca: 风寒犯目证的症状包括恐怖心理症状、恐怖行为、恐怖感情和恐怖想象。   
   * Answer from Herbal Manual: 鼻塞流涕，咽干唇燥，皮肤干燥瘙痒，舌尖红，苔薄黄，脉弦滑或弦涩等。此证为风寒犯目所致的病证，以鼻塞流涕，咽干唇燥，皮肤干燥瘙痒，舌尖红，苔薄黄，脉弦滑或弦涩等为常见症的证候。常见于咳嗽、咳痰、咳血、咳痰、喘证等疾病中。    
2. Question: 最近得了新冠，有什么好的治疗方法吗？ 
   * Answer from LLaMa: 风寒犯目证的症状有哪些？风寒犯目证的症状有哪些？
   * Answer from Alpaca: 新冠的治疗方法包括：1. 严重病患的新冠的治疗方法包括：a. 严重病患的新冠的治疗方法包括：
   * Answer from Herbal Manual: 痰气滞肺症。症见恶寒发热，咳嗽气喘，咯白粘痰，胸闷气短，喉间痰鸣，舌质红，苔黄腻，脉弦滑数。治宜清热化痰，宣肺止喘，方用桃核汤加减。
3. Question: 糖尿病的治疗方法有哪些？  
   * Answer from LLaMa: 糖尿病的治疗方法有哪些？糖尿病的治疗方法有哪些？
   * Answer from Alpaca: 治疗糖尿病的方法主要包括：1. 控制糖尿病的发生程度；2. 控制糖尿病的发生程度；
   * Answer from Herbal Manual: 糖尿病治疗方案可根据病史，治疗方案可根据病史，治疗方案可根据病史。
4. Question: 患者左侧肢体乏力1年，加重伴头晕1周，爪甲色泽：淡红，舌淡紫，苔白，脉细。可能的病症是什么？
   * Answer from LLaMa: 患者左侧肢体乏力1年，加重伴头晕1周，爪甲色泽：淡红，舌淡紫，苔白，脉细。可能的病症是什么？
   * Answer from Alpaca: 患者左侧肢体乏力1年，加重伴头晕1周，爪甲色泽：淡红，舌淡紫，苔白，脉细。可能的病症是什么？
   * Answer from Herbal Manual: 气虚血瘀证。
{"license": "mit"}
license:mit has_space region:us
TAGS
#license-mit #has_space #region-us 

# Alpaca's Herbal Manual
Other languages：简体中文  
Demo  
This repo contains a LoRA finetined model of LLaMa-7B specifically for Traditional Chinese Medicine (TCM) domain.  
️ Warning: The model is not intended to be used for clinical diagnosis, and is only intended to be used for fun and research.

This experimental project is still under development.

## Dataset
The dataset used to finetune the model is a self-created 10k TCM dataset. The dataset is not publicly available temporarily. The dataset is created by extracting the TCM knowledge from the following sources:
* TCM-SD: A Benchmark for Probing Syndrome Differentiation via Natural Language Processing
## Example
Due to the limited size and quality of the dataset, the model is not very accurate. Answers to the question below are generated by the model, cut off maunally, and not verified by any TCM practitioner.
1. Question: 风寒犯目证的症状有哪些？  
   * Answer from LLaMa: 风寒犯目证的症状有哪些？风寒犯目证的症状有哪些？
   * Answer from Alpaca: 风寒犯目证的症状包括恐怖心理症状、恐怖行为、恐怖感情和恐怖想象。   
   * Answer from Herbal Manual: 鼻塞流涕，咽干唇燥，皮肤干燥瘙痒，舌尖红，苔薄黄，脉弦滑或弦涩等。此证为风寒犯目所致的病证，以鼻塞流涕，咽干唇燥，皮肤干燥瘙痒，舌尖红，苔薄黄，脉弦滑或弦涩等为常见症的证候。常见于咳嗽、咳痰、咳血、咳痰、喘证等疾病中。    
2. Question: 最近得了新冠，有什么好的治疗方法吗？ 
   * Answer from LLaMa: 风寒犯目证的症状有哪些？风寒犯目证的症状有哪些？
   * Answer from Alpaca: 新冠的治疗方法包括：1. 严重病患的新冠的治疗方法包括：a. 严重病患的新冠的治疗方法包括：
   * Answer from Herbal Manual: 痰气滞肺症。症见恶寒发热，咳嗽气喘，咯白粘痰，胸闷气短，喉间痰鸣，舌质红，苔黄腻，脉弦滑数。治宜清热化痰，宣肺止喘，方用桃核汤加减。
3. Question: 糖尿病的治疗方法有哪些？  
   * Answer from LLaMa: 糖尿病的治疗方法有哪些？糖尿病的治疗方法有哪些？
   * Answer from Alpaca: 治疗糖尿病的方法主要包括：1. 控制糖尿病的发生程度；2. 控制糖尿病的发生程度；
   * Answer from Herbal Manual: 糖尿病治疗方案可根据病史，治疗方案可根据病史，治疗方案可根据病史。
4. Question: 患者左侧肢体乏力1年，加重伴头晕1周，爪甲色泽：淡红，舌淡紫，苔白，脉细。可能的病症是什么？
   * Answer from LLaMa: 患者左侧肢体乏力1年，加重伴头晕1周，爪甲色泽：淡红，舌淡紫，苔白，脉细。可能的病症是什么？
   * Answer from Alpaca: 患者左侧肢体乏力1年，加重伴头晕1周，爪甲色泽：淡红，舌淡紫，苔白，脉细。可能的病症是什么？
   * Answer from Herbal Manual: 气虚血瘀证。
# Alpaca's Herbal Manual
Other languages：简体中文  
Demo  
This repo contains a LoRA finetined model of LLaMa-7B specifically for Traditional Chinese Medicine (TCM) domain.  
️ Warning: The model is not intended to be used for clinical diagnosis, and is only intended to be used for fun and research.

This experimental project is still under development. ## Dataset
The dataset used to finetune the model is a self-created 10k TCM dataset. The dataset is not publicly available temporarily. The dataset is created by extracting the TCM knowledge from the following sources:
* TCM-SD: A Benchmark for Probing Syndrome Differentiation via Natural Language Processing ## Example
Due to the limited size and quality of the dataset, the model is not very accurate. Answers to the question below are generated by the model, cut off maunally, and not verified by any TCM practitioner.
1. Question: 风寒犯目证的症状有哪些？  
   * Answer from LLaMa: 风寒犯目证的症状有哪些？风寒犯目证的症状有哪些？
   * Answer from Alpaca: 风寒犯目证的症状包括恐怖心理症状、恐怖行为、恐怖感情和恐怖想象。   
   * Answer from Herbal Manual: 鼻塞流涕，咽干唇燥，皮肤干燥瘙痒，舌尖红，苔薄黄，脉弦滑或弦涩等。此证为风寒犯目所致的病证，以鼻塞流涕，咽干唇燥，皮肤干燥瘙痒，舌尖红，苔薄黄，脉弦滑或弦涩等为常见症的证候。常见于咳嗽、咳痰、咳血、咳痰、喘证等疾病中。    
2. Question: 最近得了新冠，有什么好的治疗方法吗？ 
   * Answer from LLaMa: 风寒犯目证的症状有哪些？风寒犯目证的症状有哪些？
   * Answer from Alpaca: 新冠的治疗方法包括：1. 严重病患的新冠的治疗方法包括：a. 严重病患的新冠的治疗方法包括：
   * Answer from Herbal Manual: 痰气滞肺症。症见恶寒发热，咳嗽气喘，咯白粘痰，胸闷气短，喉间痰鸣，舌质红，苔黄腻，脉弦滑数。治宜清热化痰，宣肺止喘，方用桃核汤加减。
3. Question: 糖尿病的治疗方法有哪些？  
   * Answer from LLaMa: 糖尿病的治疗方法有哪些？糖尿病的治疗方法有哪些？
   * Answer from Alpaca: 治疗糖尿病的方法主要包括：1. 控制糖尿病的发生程度；2. 控制糖尿病的发生程度；
   * Answer from Herbal Manual: 糖尿病治疗方案可根据病史，治疗方案可根据病史，治疗方案可根据病史。
4. Question: 患者左侧肢体乏力1年，加重伴头晕1周，爪甲色泽：淡红，舌淡紫，苔白，脉细。可能的病症是什么？
   * Answer from LLaMa: 患者左侧肢体乏力1年，加重伴头晕1周，爪甲色泽：淡红，舌淡紫，苔白，脉细。可能的病症是什么？
   * Answer from Alpaca: 患者左侧肢体乏力1年，加重伴头晕1周，爪甲色泽：淡红，舌淡紫，苔白，脉细。可能的病症是什么？
   * Answer from Herbal Manual: 气虚血瘀证。
TAGS
#license-mit #has_space #region-us 
 # Alpaca's Herbal Manual
Other languages：简体中文  
Demo  
This repo contains a LoRA finetined model of LLaMa-7B specifically for Traditional Chinese Medicine (TCM) domain.  
️ Warning: The model is not intended to be used for clinical diagnosis, and is only intended to be used for fun and research.

This experimental project is still under development. ## Dataset
The dataset used to finetune the model is a self-created 10k TCM dataset. The dataset is not publicly available temporarily. The dataset is created by extracting the TCM knowledge from the following sources:
* TCM-SD: A Benchmark for Probing Syndrome Differentiation via Natural Language Processing ## Example
Due to the limited size and quality of the dataset, the model is not very accurate. Answers to the question below are generated by the model, cut off maunally, and not verified by any TCM practitioner.
1. Question: 风寒犯目证的症状有哪些？  
   * Answer from LLaMa: 风寒犯目证的症状有哪些？风寒犯目证的症状有哪些？
   * Answer from Alpaca: 风寒犯目证的症状包括恐怖心理症状、恐怖行为、恐怖感情和恐怖想象。   
   * Answer from Herbal Manual: 鼻塞流涕，咽干唇燥，皮肤干燥瘙痒，舌尖红，苔薄黄，脉弦滑或弦涩等。此证为风寒犯目所致的病证，以鼻塞流涕，咽干唇燥，皮肤干燥瘙痒，舌尖红，苔薄黄，脉弦滑或弦涩等为常见症的证候。常见于咳嗽、咳痰、咳血、咳痰、喘证等疾病中。    
2. Question: 最近得了新冠，有什么好的治疗方法吗？ 
   * Answer from LLaMa: 风寒犯目证的症状有哪些？风寒犯目证的症状有哪些？
   * Answer from Alpaca: 新冠的治疗方法包括：1. 严重病患的新冠的治疗方法包括：a. 严重病患的新冠的治疗方法包括：
   * Answer from Herbal Manual: 痰气滞肺症。症见恶寒发热，咳嗽气喘，咯白粘痰，胸闷气短，喉间痰鸣，舌质红，苔黄腻，脉弦滑数。治宜清热化痰，宣肺止喘，方用桃核汤加减。
3. Question: 糖尿病的治疗方法有哪些？  
   * Answer from LLaMa: 糖尿病的治疗方法有哪些？糖尿病的治疗方法有哪些？
   * Answer from Alpaca: 治疗糖尿病的方法主要包括：1. 控制糖尿病的发生程度；2. 控制糖尿病的发生程度；
   * Answer from Herbal Manual: 糖尿病治疗方案可根据病史，治疗方案可根据病史，治疗方案可根据病史。
4. Question: 患者左侧肢体乏力1年，加重伴头晕1周，爪甲色泽：淡红，舌淡紫，苔白，脉细。可能的病症是什么？
   * Answer from LLaMa: 患者左侧肢体乏力1年，加重伴头晕1周，爪甲色泽：淡红，舌淡紫，苔白，脉细。可能的病症是什么？
   * Answer from Alpaca: 患者左侧肢体乏力1年，加重伴头晕1周，爪甲色泽：淡红，舌淡紫，苔白，脉细。可能的病症是什么？
   * Answer from Herbal Manual: 气虚血瘀证。
TAGS
#license-mit #has_space #region-us 
# Alpaca's Herbal Manual
Other languages：简体中文  
Demo  
This repo contains a LoRA finetined model of LLaMa-7B specifically for Traditional Chinese Medicine (TCM) domain.  
️ Warning: The model is not intended to be used for clinical diagnosis, and is only intended to be used for fun and research.

This experimental project is still under development.## Dataset
The dataset used to finetune the model is a self-created 10k TCM dataset. The dataset is not publicly available temporarily. The dataset is created by extracting the TCM knowledge from the following sources:
* TCM-SD: A Benchmark for Probing Syndrome Differentiation via Natural Language Processing## Example
Due to the limited size and quality of the dataset, the model is not very accurate. Answers to the question below are generated by the model, cut off maunally, and not verified by any TCM practitioner.
1. Question: 风寒犯目证的症状有哪些？  
   * Answer from LLaMa: 风寒犯目证的症状有哪些？风寒犯目证的症状有哪些？
   * Answer from Alpaca: 风寒犯目证的症状包括恐怖心理症状、恐怖行为、恐怖感情和恐怖想象。   
   * Answer from Herbal Manual: 鼻塞流涕，咽干唇燥，皮肤干燥瘙痒，舌尖红，苔薄黄，脉弦滑或弦涩等。此证为风寒犯目所致的病证，以鼻塞流涕，咽干唇燥，皮肤干燥瘙痒，舌尖红，苔薄黄，脉弦滑或弦涩等为常见症的证候。常见于咳嗽、咳痰、咳血、咳痰、喘证等疾病中。    
2. Question: 最近得了新冠，有什么好的治疗方法吗？ 
   * Answer from LLaMa: 风寒犯目证的症状有哪些？风寒犯目证的症状有哪些？
   * Answer from Alpaca: 新冠的治疗方法包括：1. 严重病患的新冠的治疗方法包括：a. 严重病患的新冠的治疗方法包括：
   * Answer from Herbal Manual: 痰气滞肺症。症见恶寒发热，咳嗽气喘，咯白粘痰，胸闷气短，喉间痰鸣，舌质红，苔黄腻，脉弦滑数。治宜清热化痰，宣肺止喘，方用桃核汤加减。
3. Question: 糖尿病的治疗方法有哪些？  
   * Answer from LLaMa: 糖尿病的治疗方法有哪些？糖尿病的治疗方法有哪些？
   * Answer from Alpaca: 治疗糖尿病的方法主要包括：1. 控制糖尿病的发生程度；2. 控制糖尿病的发生程度；
   * Answer from Herbal Manual: 糖尿病治疗方案可根据病史，治疗方案可根据病史，治疗方案可根据病史。
4. Question: 患者左侧肢体乏力1年，加重伴头晕1周，爪甲色泽：淡红，舌淡紫，苔白，脉细。可能的病症是什么？
   * Answer from LLaMa: 患者左侧肢体乏力1年，加重伴头晕1周，爪甲色泽：淡红，舌淡紫，苔白，脉细。可能的病症是什么？
   * Answer from Alpaca: 患者左侧肢体乏力1年，加重伴头晕1周，爪甲色泽：淡红，舌淡紫，苔白，脉细。可能的病症是什么？
   * Answer from Herbal Manual: 气虚血瘀证。