Skip to content

Commit 5799fed

Browse files
v1.0.0
2 parents e664c86 + 92cfc88 commit 5799fed

File tree

3 files changed

+17
-17
lines changed

3 files changed

+17
-17
lines changed

examples/kaggle-gemma-template-gemma-2b-it-unsloth.ipynb

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.

gemma_template/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
__url__ = "https://github.com/thewebscraping/gemma-template"
44
__author__ = "Tu Pham"
55
__author_email__ = "[email protected]"
6-
__version__ = "0.1.8"
6+
__version__ = "1.0.0"
77
__license__ = "Apache-2.0"

gemma_template/models.py

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -435,12 +435,12 @@ class Template(BaseTemplate):
435435
)
436436
tags: list[str] = PydanticField(
437437
default=[
438-
"Rewrite tags to include relevant keywords.",
439-
"Add trending terms or phrases to the tags for increased visibility.",
440-
"Use tags that reflect the article’s subtopics or themes.",
441-
"Ensure the tags align with popular search queries.",
442-
"Rewrite tags to make them more specific and targeted.",
443-
"Match tags to similar content for cross-promotion opportunities.",
438+
"Rewrite tags to include relevant keywords in about 5 keywords.",
439+
"Add trending terms or phrases to the tags for increased visibility from 3 to 5 keywords.",
440+
"Use 5 keywords or tags that reflect the article’s subtopics or themes.",
441+
"Ensure the tags align with popular search queries under 5 keywords.",
442+
"Rewrite 5 tags or keywords to make them more specific and targeted.",
443+
"Match tags to similar content for cross-promotion opportunities under 5 keywords.",
444444
]
445445
)
446446

@@ -793,7 +793,6 @@ def generate_prompt(
793793
self,
794794
input_template: Optional[TemplateTypes] = INPUT_TEMPLATE,
795795
*,
796-
instruction_template: Optional[TemplateTypes] = None,
797796
prompt_template: Optional[TemplateTypes] = GEMMA_PROMPT_TEMPLATE,
798797
**kwargs,
799798
):
@@ -1203,14 +1202,14 @@ def _get_origin_data(self, **kwargs) -> dict:
12031202
"Viết lại các danh mục để làm nổi bật các lĩnh vực trọng tâm chính của bài viết.",
12041203
],
12051204
tags=[
1206-
"Tạo danh sách từ khóa thịnh hành giúp SEO tốt hơn.",
1207-
"Tạo danh sách từ khóa có liên quan phù hợp với truy vấn tìm kiếm phổ biến.",
1208-
"Tập trung vào các từ khóa phổ biến trong bài viết để SEO tốt hơn.",
1209-
"Viết lại từ khóa để bao gồm các từ khóa có liên quan.",
1210-
"Thêm các thuật ngữ hoặc cụm từ khóa thịnh hành để tăng khả năng hiển thị.",
1211-
"Sử dụng các từ khóa phản ánh các chủ đề phụ hoặc chủ đề của bài viết.",
1212-
"Đảm bảo các từ khóa phù hợp với các truy vấn tìm kiếm phổ biến.",
1213-
"Viết lại từ khóa để làm cho chúng cụ thể và có mục tiêu hơn.",
1214-
"Phù hợp với các từ khóa với nội dung tương tự để có cơ hội quảng cáo chéo.",
1205+
"Tạo danh sách 5 từ khóa thịnh hành giúp SEO tốt hơn.",
1206+
"Tạo danh sách 5 từ khóa có liên quan phù hợp với truy vấn tìm kiếm phổ biến.",
1207+
"Tập trung vào các từ khóa phổ biến trong bài viết để SEO tốt hơn dưới 5 từ khoá.",
1208+
"Viết lại 3 đến 5 từ khóa để bao gồm các từ khóa có liên quan.",
1209+
"Thêm các cụm từ khóa thịnh hành để tăng khả năng hiển thị trong khoảng 3 đến 5 từ khoá.",
1210+
"Sử dụng các từ khóa phản ánh các chủ đề phụ hoặc chủ đề của bài viết trong phạm vi dưới 5 từ khoá.",
1211+
"Đảm bảo các từ khóa phù hợp với các truy vấn tìm kiếm phổ biến dưới 5 từ khoá.",
1212+
"Viết lại từ 3 đến 5 từ khóa để làm cho chúng cụ thể và có mục tiêu hơn.",
1213+
"Tạo 5 từ khóa phù hợp với nội dung tương tự để có cơ hội quảng cáo chéo.",
12151214
],
12161215
)

0 commit comments

Comments
 (0)