ryanshelley commited on
Commit
81c820b
·
verified ·
1 Parent(s): e93085a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -7
app.py CHANGED
@@ -381,14 +381,19 @@ class SEOContentAnalyzer:
381
  OVERALL TOP PERFORMING CONTENT:
382
  {chr(10).join([f"Score {c.similarity_score:.4f} ({c.page_type}): {c.content[:150]}..." for c in top_chunks])}
383
 
384
- Please provide:
385
- 1. Which page/content is strongest for this keyword?
386
- 2. What sections are performing best?
387
- 3. What is our client page doing well?
388
- 4. What is our client page missing compared to competitors?
389
- 5. Specific actionable recommendations to improve content relevance
 
 
 
 
 
 
390
 
391
- Format as a clear, actionable SEO report.
392
  """
393
 
394
  response = await self.llm.ainvoke(prompt)
 
381
  OVERALL TOP PERFORMING CONTENT:
382
  {chr(10).join([f"Score {c.similarity_score:.4f} ({c.page_type}): {c.content[:150]}..." for c in top_chunks])}
383
 
384
+ Please analyze the target keyword and provide an SEO content performance report, including the following:
385
+
386
+ 1. Top-performing page for this keyword: Identify which page (ours or a competitor’s) currently ranks strongest and why.
387
+ 2. Best-performing sections: Highlight which sections or topics within that page perform best for the keyword.
388
+ 3. What our client’s page does well: Summarize the strengths of our client’s page compared to competitors.
389
+ 4. What our client’s page is missing: Identify gaps in the client’s content compared to top competitors — including missing sections, underdeveloped concepts, or thin content.
390
+ 5. Actionable recommendations: Provide specific, prioritized suggestions to improve the client’s content relevance. These should include:
391
+ • Missing sections or topics present in competitor content.
392
+ • Thin or underdeveloped areas that need expansion.
393
+ • Any other recommendations to improve SEO and user experience.
394
+
395
+ Output format: A clear, structured SEO report with actionable insights.
396
 
 
397
  """
398
 
399
  response = await self.llm.ainvoke(prompt)