From 2dd9678a7f59f95070741ec2ebce229277cca75e Mon Sep 17 00:00:00 2001 From: David Snelling Date: Thu, 6 Nov 2025 09:41:22 -0800 Subject: [PATCH] =?UTF-8?q?fix:=20update=20remaining=2031x=E2=86=9242x=20s?= =?UTF-8?q?peedup=20references=20in=20typeAwareQueryPlanner?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 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 --- src/query/typeAwareQueryPlanner.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/query/typeAwareQueryPlanner.ts b/src/query/typeAwareQueryPlanner.ts index df62599c..e06e65de 100644 --- a/src/query/typeAwareQueryPlanner.ts +++ b/src/query/typeAwareQueryPlanner.ts @@ -45,12 +45,12 @@ export interface TypeAwareQueryPlan { routing: QueryRoutingStrategy /** - * Target types to search (1-31 types) + * Target types to search (1-42 types) */ 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 @@ -337,7 +337,7 @@ export class TypeAwareQueryPlanner { // Calculate weighted average speedup const avgSpeedup = ( - (this.stats.singleTypeQueries * 31.0 + + (this.stats.singleTypeQueries * 42.0 + this.stats.multiTypeQueries * 10.0 + this.stats.allTypesQueries * 1.0) / total @@ -345,7 +345,7 @@ export class TypeAwareQueryPlanner { return ` 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 - All-types: ${this.stats.allTypesQueries} (${allPct}%) - 1x speedup - Avg confidence: ${avgConf}%