flip some prompting around
All checks were successful
Create Blog Article if new notes exist / prepare_blog_drafts_and_push (push) Successful in 8m43s

This commit is contained in:
Andrew Ridgway 2025-09-17 10:55:17 +10:00
parent 92e9f3dcc2
commit 733241554f
Signed by: armistace
GPG Key ID: C8D9EAC514B47EF1

View File

@ -134,7 +134,7 @@ class OllamaGenerator:
<blog>{self.content}</blog> <blog>{self.content}</blog>
""" """
try: try:
query_embed = self.ollama_client.embed(model=self.embed_model, input=prompt_system)['embeddings'] query_embed = self.ollama_client.embed(model=self.embed_model, input=prompt_human)['embeddings']
collection = self.load_to_vector_db() collection = self.load_to_vector_db()
collection_query = collection.query(query_embeddings=query_embed, n_results=100) collection_query = collection.query(query_embeddings=query_embed, n_results=100)
print("Showing pertinent info from drafts used in final edited edition") print("Showing pertinent info from drafts used in final edited edition")