9 Commits
Author SHA1 Message Date
armistace 6e117e3ce9 language cleanup for integration testing 2025-06-02 12:32:21 +10:00
armistace 9a9228bc07 Merge pull request 'repo_work_fix' (#2) from repo_work_fix into master
Reviewed-on: #2
2025-05-30 17:47:31 +10:00
armistace 2dd371408f trying for the hard fix 2025-05-30 17:25:13 +10:00
armistace 0005ad1fd3 hard reset for the repo work 2025-05-30 17:20:58 +10:00
armistace 446978704d further directory cleanup 2025-01-24 04:51:50 +00:00
armistace f24bd5b361 cleanup directory 2025-01-24 04:44:23 +00:00
armistace 4d5c27cfaa clean up 2025-01-24 04:42:04 +00:00
armistace d45f0be314 env set up for remote 2025-01-24 04:41:14 +00:00
armistace e1a24aff20 get rid of think tags 2025-01-24 02:17:05 +00:00
+5 -5
View File
@@ -20,7 +20,7 @@ class OllamaGenerator:
self.llm = ChatOllama(model=self.ollama_model, temperature=0.6, top_p=0.5) #This is the level head in the room
self.prompt_inject = f"""
You are a journalist, Software Developer and DevOps expert
writing a 1000 word draft blog for other tech enthusiasts.
writing a 3000 word draft blog for other tech enthusiasts.
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.
@@ -116,9 +116,9 @@ class OllamaGenerator:
prompt_system = f"""
You are an editor taking information from {len(self.agent_models)} Software
Developers and Data experts
writing a 3000 word blog for other tech enthusiasts.
You like when they use almost no code examples and the
voice is in a light comedic tone. You are also Australian
writing a 3000 word blog. You like when they use almost no code examples.
You are also Australian. The content may have light comedic elements,
you are more professional and will attempt to tone these down
As this person produce and an amalgamtion of this blog as a markdown document.
The title for the blog is {self.inner_title}.
Do not output the title in the markdown. Avoid repeated sentences
@@ -132,7 +132,7 @@ class OllamaGenerator:
print("Showing pertinent info from drafts used in final edited edition")
pertinent_draft_info = '\n\n'.join(collection.query(query_embeddings=query_embed, n_results=100)['documents'][0])
#print(pertinent_draft_info)
prompt_human = f"Generate the final document using this information from the drafts: {pertinent_draft_info} - ONLY OUTPUT THE MARKDOWN"
prompt_human = f"Generate the final document using this information from the drafts: {pertinent_draft_info} - Only output in markdown, do not wrap in markdown tags"
print("Generating final document")
messages = [("system", prompt_system), ("human", prompt_human),]
self.response = self.llm.invoke(messages).text()