Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -144,11 +144,8 @@ content_type_scorer = ContentTypeScorer(
weight=0.9
)

# Freshness scoring
freshness_scorer = FreshnessScorer(
weight=0.7,
current_year=2024
)
# Freshness scoring (current_year defaults to this year; pass it to score against another year)
freshness_scorer = FreshnessScorer(weight=0.7)

# Domain authority scoring
domain_scorer = DomainAuthorityScorer(
Expand Down Expand Up @@ -185,7 +182,7 @@ composite_scorer = CompositeScorer(
KeywordRelevanceScorer(["python", "tutorial"], weight=1.5),
PathDepthScorer(optimal_depth=3, weight=1.0),
ContentTypeScorer({"html": 1.0, "pdf": 0.8}, weight=1.2),
FreshnessScorer(weight=0.8, current_year=2024),
FreshnessScorer(weight=0.8),
DomainAuthorityScorer({
"python.org": 1.0,
"github.com": 0.9
Expand Down
9 changes: 3 additions & 6 deletions docs/md_v2/assets/llm.txt/txt/llms-full.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7393,11 +7393,8 @@ content_type_scorer = ContentTypeScorer(
weight=0.9
)

# Freshness scoring
freshness_scorer = FreshnessScorer(
weight=0.7,
current_year=2024
)
# Freshness scoring (current_year defaults to this year; pass it to score against another year)
freshness_scorer = FreshnessScorer(weight=0.7)

# Domain authority scoring
domain_scorer = DomainAuthorityScorer(
Expand Down Expand Up @@ -7434,7 +7431,7 @@ composite_scorer = CompositeScorer(
KeywordRelevanceScorer(["python", "tutorial"], weight=1.5),
PathDepthScorer(optimal_depth=3, weight=1.0),
ContentTypeScorer({"html": 1.0, "pdf": 0.8}, weight=1.2),
FreshnessScorer(weight=0.8, current_year=2024),
FreshnessScorer(weight=0.8),
DomainAuthorityScorer({
"python.org": 1.0,
"github.com": 0.9
Expand Down
Loading