flip some prompting around
All checks were successful
Create Blog Article if new notes exist / prepare_blog_drafts_and_push (push) Successful in 8m43s
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:
parent
92e9f3dcc2
commit
733241554f
@ -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")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user