Skip to main content

Interface: ScoringConfig

Defined in: Services/Search/SearchPipelineConfig.ts:146

Properties

facetScoring?

optional facetScoring?: "max" | "main-prefer"

Defined in: Services/Search/SearchPipelineConfig.ts:154

How to score verses with multiple facets (main descriptions vs terse sub-facets).

  • "max" (default): Use the highest score across all facets.
  • "main-prefer": Dampen sub-facet scores so that detailed main facets win when the sub-facet advantage is marginal. Prevents terse phrases like "not being afraid of disaster" from outranking "people terrified by thunderstorm".

subFacetDamping?

optional subFacetDamping?: number

Defined in: Services/Search/SearchPipelineConfig.ts:161

Sub-facet score multiplier when facetScoring is "main-prefer". Sub-facet scores are multiplied by this value before comparing to main facet scores. Lower = more aggressive demotion. Default: 0.92


topicBoost?

optional topicBoost?: number

Defined in: Services/Search/SearchPipelineConfig.ts:175

Score boost per unit of tag strength for topic-expanded verses. Formula: verseScore = topicScore × topicDamping + topicBoost × tagStrength. Default: 0.15


topicDamping?

optional topicDamping?: number

Defined in: Services/Search/SearchPipelineConfig.ts:168

Topic-expanded verse score multiplier when facetScoring is "main-prefer". Topic entries are terse labels with the same over-matching risk as sub-facets. Default: 0.85


topicMinScore?

optional topicMinScore?: number

Defined in: Services/Search/SearchPipelineConfig.ts:184

Minimum topic embedding similarity score required before expanding a topic into its verse list. Topics below this threshold are ignored entirely. Good matches (exact concepts) typically score 0.50+; false positives (loosely related concepts like "earthquakes" for "storms") score below 0.50. Default: 0.50


topicSources?

optional topicSources?: TopicSourcesConfig

Defined in: Services/Search/SearchPipelineConfig.ts:190

Controls which topic sources are included in semantic search expansion. When omitted, all sources are enabled by default.