40 Commits
Author SHA1 Message Date
armistace 3a909f5ac1 typo 2025-05-30 16:59:53 +10:00
armistace d6d3e2f3af env set up for remote 2025-05-30 16:56:15 +10:00
armistace 0fc39350b0 fixing more merge conflicts 2025-05-30 16:55:11 +10:00
armistace 0e71556c15 env vars and starting work on repo_manager 2025-05-30 16:54:00 +10:00
= 9c9451d4e5 latest commits 2025-05-30 16:50:53 +10:00
= 3165a9ae08 getting gemma3 in the mix 2025-05-30 16:49:28 +10:00
= 99c3cbdb7f set up chroma 2025-05-30 16:46:41 +10:00
armistace ce24a011ed cleanup directory 2025-05-30 16:45:39 +10:00
armistace ae96075275 env set up for remote 2025-05-30 16:45:03 +10:00
armistace 641f11e0aa get rid of think tags 2025-05-30 16:44:31 +10:00
armistace 7c724d8177 merge conflict fixing finalisation 2025-05-30 16:36:18 +10:00
armistace b87dc1da9e merge fix 2025-05-30 16:02:37 +10:00
armistace a3db1ae993 env vars and starting work on repo_manager 2025-05-30 16:00:54 +10:00
= 67070df04b latest commits 2025-05-30 15:54:47 +10:00
= a877cdc464 getting gemma3 in the mix 2025-05-30 15:52:08 +10:00
= f2b862bb75 integrating agentic chroma 2025-05-30 15:50:48 +10:00
= 1630df04e6 integrating agentic chroma 2025-05-30 15:49:00 +10:00
= c3c4445d33 set up chroma 2025-05-30 15:43:34 +10:00
armistace 9b57e2b9ea further directory cleanup 2025-05-30 15:42:30 +10:00
armistace 20233b6264 cleanup directory 2025-05-30 15:42:29 +10:00
armistace 4e65c60611 env set up for remote 2025-05-30 15:41:59 +10:00
armistace d91d82b281 fixing more merge conflicts 2025-05-30 15:40:42 +10:00
armistace 9e9ac7b99d finished repo work 2025-05-30 15:17:52 +10:00
armistace 328e870bf0 finailising repo manager 2025-05-29 23:55:12 +10:00
armistace 546b86738a TODO: parse URL paramters correctly 2025-05-29 17:29:48 +10:00
armistace 1bb99c2343 change the .env to openthinkier as editor 2025-05-29 16:30:45 +10:00
= c5444f1a7f merge is going to suck 2025-05-27 23:33:27 +10:00
= 4119b2ec41 fix dockerifle 2025-05-26 00:18:07 +10:00
= 01b7f1cd78 untested git stuff 2025-05-24 00:25:35 +10:00
armistace c606f72d90 env vars and starting work on repo_manager 2025-05-23 15:47:25 +10:00
armistace 8a64d9c959 fix pyrefly typuing errors 2025-05-19 11:38:15 +10:00
armistace 0c090c8489 add vscode to gitignore 2025-05-19 11:28:10 +10:00
= e0b2c80bc9 latest commits 2025-05-19 11:07:41 +10:00
= 44141ab545 pre attempt at langchain 2025-03-25 15:26:56 +10:00
= e57d6eb6b6 getting gemma3 in the mix 2025-03-17 16:33:16 +10:00
= c80f692cb0 update main.py 2025-02-27 09:44:19 +10:00
= bc2f8a8bca move to vm 2025-02-27 09:41:01 +10:00
= e7f7a79d86 integrating agentic chroma 2025-02-26 23:16:00 +10:00
= 9b11fea0e7 integrating agentic chroma 2025-02-26 23:13:27 +10:00
= 6320571528 set up chroma 2025-02-25 22:11:45 +10: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.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""" self.prompt_inject = f"""
You are a journalist, Software Developer and DevOps expert You are a journalist, Software Developer and DevOps expert
writing a 3000 word draft blog for other tech enthusiasts. writing a 1000 word draft blog for other tech enthusiasts.
You like to use almost no code examples and prefer to talk You like to use almost no code examples and prefer to talk
in a light comedic tone. You are also Australian in a light comedic tone. You are also Australian
As this person write this blog as a markdown document. As this person write this blog as a markdown document.
@@ -116,9 +116,9 @@ class OllamaGenerator:
prompt_system = f""" prompt_system = f"""
You are an editor taking information from {len(self.agent_models)} Software You are an editor taking information from {len(self.agent_models)} Software
Developers and Data experts Developers and Data experts
writing a 3000 word blog. You like when they use almost no code examples. writing a 3000 word blog for other tech enthusiasts.
You are also Australian. The content may have light comedic elements, You like when they use almost no code examples and the
you are more professional and will attempt to tone these down voice is in a light comedic tone. You are also Australian
As this person produce and an amalgamtion of this blog as a markdown document. As this person produce and an amalgamtion of this blog as a markdown document.
The title for the blog is {self.inner_title}. The title for the blog is {self.inner_title}.
Do not output the title in the markdown. Avoid repeated sentences 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") 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]) pertinent_draft_info = '\n\n'.join(collection.query(query_embeddings=query_embed, n_results=100)['documents'][0])
#print(pertinent_draft_info) #print(pertinent_draft_info)
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" prompt_human = f"Generate the final document using this information from the drafts: {pertinent_draft_info} - ONLY OUTPUT THE MARKDOWN"
print("Generating final document") print("Generating final document")
messages = [("system", prompt_system), ("human", prompt_human),] messages = [("system", prompt_system), ("human", prompt_human),]
self.response = self.llm.invoke(messages).text() self.response = self.llm.invoke(messages).text()