ryanshelley commited on
Commit
fe19411
·
verified ·
1 Parent(s): 0e7db85

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -13
app.py CHANGED
@@ -381,27 +381,29 @@ 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
- 1. Top-performing page for this keyword: Identify the page (ours or a competitor’s) that ranks strongest, and explain why it performs well.
385
- 2. Best-performing sections of content: Highlight which sections or topics on the strongest page perform best and why.
386
  3. What our client’s page does well: Summarize the client page’s strengths compared to competitors.
387
- 4. What our client’s page is missing: Identify specific gaps in the client’s content compared to competitors — including missing sections, thin areas, or underdeveloped concepts.
388
  5. Specific, actionable recommendations:
389
- Break this section into clearly labeled subcategories with bullet points. Examples of subcategories include (but are not limited to):
390
  • Content Expansion: Missing sections, new topics, or deeper explanations.
391
  • Content Enhancement: Improvements to clarity, examples, visuals, or formatting.
392
- • SEO Optimization: Keyword usage, headers, meta tags, etc.
393
 
394
- Each recommendation should include:
395
- • A clear title.
396
- • A brief explanation of why it matters.
397
- • A reference to competitor content that demonstrates the point.
 
 
 
398
 
399
  Output format:
400
- • Use headings and bullet points for clarity.
401
- Prioritize recommendations in order of impact.
402
- Make the recommendations specific and actionable, not just generic advice.
403
 
404
- The goal is to help our client improve content relevance, depth, and authority to rank higher for the target keyword.
405
 
406
  """
407
 
 
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
+ 1. Top-performing page for this keyword: Identify the strongest-ranking page (ours or a competitor’s), including its URL and why it performs well.
385
+ 2. Best-performing sections of content: Highlight the specific sections or content chunks (with text snippets and scores) that perform best for the keyword.
386
  3. What our client’s page does well: Summarize the client page’s strengths compared to competitors.
387
+ 4. What our client’s page is missing: Identify gaps or underdeveloped areas in the client’s content compared to competitors.
388
  5. Specific, actionable recommendations:
389
+ Break this section into clearly labeled subcategories, such as:
390
  • Content Expansion: Missing sections, new topics, or deeper explanations.
391
  • Content Enhancement: Improvements to clarity, examples, visuals, or formatting.
 
392
 
393
+ For each recommendation, include:
394
+ • A clear title.
395
+ • A brief explanation of why it matters.
396
+ • A reference to the competitor content that demonstrates the point, including:
397
+ • URL
398
+ • Score
399
+ • Content chunk or snippet
400
 
401
  Output format:
402
+ • Use clear section headings and bullet points for readability.
403
+ Include competitor references (URL, score, snippet) wherever applicable to support recommendations.
404
+ Focus only on content-related improvements, not general SEO optimizations or monitoring advice.
405
 
406
+ The goal is to help the client improve content relevance, depth, and authority for the target keyword — grounded in the analysis of vector embeddings and competitive content.
407
 
408
  """
409