MBilal-72 commited on
Commit
a9b6f92
·
verified ·
1 Parent(s): 79f4ef7

Update utils/optimizer.py

Browse files
Files changed (1) hide show
  1. utils/optimizer.py +1 -3
utils/optimizer.py CHANGED
@@ -432,9 +432,7 @@ class ContentOptimizer:
432
  Dict: Voice search optimization results
433
  """
434
  try:
435
- self.voice_prompt = ("Optimize the following content for voice search and conversational AI by improving natural language flow, question-based structure, tone, and featured snippet potential. Return JSON with improved content, Q&A pairs, snippet candidates, and a conversational score.\nContent: {content}")
436
-
437
-
438
  prompt_template = ChatPromptTemplate.from_messages([
439
  SystemMessagePromptTemplate.from_template(voice_prompt.format(content=content[:4000])),
440
  HumanMessagePromptTemplate.from_template("Optimize for voice search.")
 
432
  Dict: Voice search optimization results
433
  """
434
  try:
435
+ self.voice_prompt = ("Optimize the following content for voice search and conversational AI by improving natural language flow, question-based structure, tone, and featured snippet potential. Return JSON with improved content, Q&A pairs, snippet candidates, and a conversational score.\nContent: {content}")
 
 
436
  prompt_template = ChatPromptTemplate.from_messages([
437
  SystemMessagePromptTemplate.from_template(voice_prompt.format(content=content[:4000])),
438
  HumanMessagePromptTemplate.from_template("Optimize for voice search.")