fix: update remaining 31x→42x speedup references in typeAwareQueryPlanner

- Updated type range comment: 1-31 → 1-42
- Updated speedup factor comment: 31.0 → 42.0
- Updated statistics calculation: 31.0 → 42.0
- Updated statistics display: 31x → 42x
This commit is contained in:
David Snelling 2025-11-06 09:41:22 -08:00
parent 823cd5cf1b
commit 2dd9678a7f

View file

@ -45,12 +45,12 @@ export interface TypeAwareQueryPlan {
routing: QueryRoutingStrategy routing: QueryRoutingStrategy
/** /**
* Target types to search (1-31 types) * Target types to search (1-42 types)
*/ */
targetTypes: NounType[] targetTypes: NounType[]
/** /**
* Estimated speedup factor (1.0 = no speedup, 31.0 = 31x faster) * Estimated speedup factor (1.0 = no speedup, 42.0 = 42x faster)
*/ */
estimatedSpeedup: number estimatedSpeedup: number
@ -337,7 +337,7 @@ export class TypeAwareQueryPlanner {
// Calculate weighted average speedup // Calculate weighted average speedup
const avgSpeedup = ( const avgSpeedup = (
(this.stats.singleTypeQueries * 31.0 + (this.stats.singleTypeQueries * 42.0 +
this.stats.multiTypeQueries * 10.0 + this.stats.multiTypeQueries * 10.0 +
this.stats.allTypesQueries * 1.0) / this.stats.allTypesQueries * 1.0) /
total total
@ -345,7 +345,7 @@ export class TypeAwareQueryPlanner {
return ` return `
Query Statistics (${total} total): Query Statistics (${total} total):
- Single-type: ${this.stats.singleTypeQueries} (${singlePct}%) - 31x speedup - Single-type: ${this.stats.singleTypeQueries} (${singlePct}%) - 42x speedup
- Multi-type: ${this.stats.multiTypeQueries} (${multiPct}%) - ~10x speedup - Multi-type: ${this.stats.multiTypeQueries} (${multiPct}%) - ~10x speedup
- All-types: ${this.stats.allTypesQueries} (${allPct}%) - 1x speedup - All-types: ${this.stats.allTypesQueries} (${allPct}%) - 1x speedup
- Avg confidence: ${avgConf}% - Avg confidence: ${avgConf}%