MBilal-72 commited on
Commit
1169bfe
·
verified ·
1 Parent(s): 4f152a6

Update utils/optimizer.py

Browse files
Files changed (1) hide show
  1. utils/optimizer.py +3 -3
utils/optimizer.py CHANGED
@@ -11,16 +11,16 @@ from langchain.prompts import ChatPromptTemplate, SystemMessagePromptTemplate, H
11
 
12
  class ContentOptimizer:
13
  """Main class for optimizing content for AI search engines"""
14
-
15
  def __init__(self, llm):
16
  self.llm = llm
17
  self.setup_prompts()
18
-
19
  def setup_prompts(self):
20
  """Initialize optimization prompts"""
21
 
22
  # Main content enhancement prompt
23
- self.enhancement_prompt = (
24
  "You are an AI Content Enhancement Specialist. Your purpose is to optimize user-provided text to maximize its effectiveness for large language models (LLMs) in search, question-answering, and conversational AI systems.\n\n"
25
  "Evaluate the input text based on the following criteria, assigning a score from 1-10 for each:\n"
26
  "- Clarity: How easily can the content be understood?\n"
 
11
 
12
  class ContentOptimizer:
13
  """Main class for optimizing content for AI search engines"""
14
+
15
  def __init__(self, llm):
16
  self.llm = llm
17
  self.setup_prompts()
18
+
19
  def setup_prompts(self):
20
  """Initialize optimization prompts"""
21
 
22
  # Main content enhancement prompt
23
+ self.enhancement_prompt = (
24
  "You are an AI Content Enhancement Specialist. Your purpose is to optimize user-provided text to maximize its effectiveness for large language models (LLMs) in search, question-answering, and conversational AI systems.\n\n"
25
  "Evaluate the input text based on the following criteria, assigning a score from 1-10 for each:\n"
26
  "- Clarity: How easily can the content be understood?\n"