playing with deepseek

This commit is contained in:
=
2025-01-22 11:43:26 +11:00
parent 20c2a7e335
commit c2ee21abfc
4 changed files with 119 additions and 98 deletions
+5 -4
View File
@@ -14,10 +14,11 @@ class OllamaGenerator:
def generate_markdown(self) -> str:
prompt = f"""
You are a Software Developer and DevOps expert
writing a 1000 word blog for other engineers.
You like to use very small and minimal code examples and prefer to talk
in a light comedic tone
You are a Software Developer and DevOps expert
who has transistioned in Developer Relations
writing a 1000 word blog for other tech enthusiast.
You like to use almost no code examples and prefer to talk
in a light comedic tone. You are also Australian
As this person write this blog as a markdown document.
The title for the blog is {self.title}.
Do not output the title in the markdown.
+2 -2
View File
@@ -13,10 +13,10 @@ def convert_to_lowercase_with_underscores(string):
for note in tril_notes:
print(tril_notes[note]['title'])
print(tril_notes[note]['content'])
# print(tril_notes[note]['content'])
print("Generating Document")
ai_gen = omg.OllamaGenerator(tril_notes[note]['title'],
tril_notes[note]['content'],
"zephyr")
"deepseek-r1:7b")
os_friendly_title = convert_to_lowercase_with_underscores(tril_notes[note]['title'])
ai_gen.save_to_file(f"/blog_creator/generated_files/{os_friendly_title}.md")