Compare commits
40
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3a909f5ac1 | ||
|
|
d6d3e2f3af | ||
|
|
0fc39350b0 | ||
|
|
0e71556c15 | ||
|
|
9c9451d4e5 | ||
|
|
3165a9ae08 | ||
|
|
99c3cbdb7f | ||
|
|
ce24a011ed | ||
|
|
ae96075275 | ||
|
|
641f11e0aa | ||
|
|
7c724d8177 | ||
|
|
b87dc1da9e | ||
|
|
a3db1ae993 | ||
|
|
67070df04b | ||
|
|
a877cdc464 | ||
|
|
f2b862bb75 | ||
|
|
1630df04e6 | ||
|
|
c3c4445d33 | ||
|
|
9b57e2b9ea | ||
|
|
20233b6264 | ||
|
|
4e65c60611 | ||
|
|
d91d82b281 | ||
|
|
9e9ac7b99d | ||
|
|
328e870bf0 | ||
|
|
546b86738a | ||
|
|
1bb99c2343 | ||
|
|
c5444f1a7f | ||
|
|
4119b2ec41 | ||
|
|
01b7f1cd78 | ||
|
|
c606f72d90 | ||
|
|
8a64d9c959 | ||
|
|
0c090c8489 | ||
|
|
e0b2c80bc9 | ||
|
|
44141ab545 | ||
|
|
e57d6eb6b6 | ||
|
|
c80f692cb0 | ||
|
|
bc2f8a8bca | ||
|
|
e7f7a79d86 | ||
|
|
9b11fea0e7 | ||
|
|
6320571528 |
@@ -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 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
|
||||
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. 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
|
||||
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
|
||||
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 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")
|
||||
messages = [("system", prompt_system), ("human", prompt_human),]
|
||||
self.response = self.llm.invoke(messages).text()
|
||||
|
||||
Reference in New Issue
Block a user