Bug: SemanticRouter documented in README but not exported
The README documents SemanticRouter as the main class for semantic routing, but the package only exports VectorDb and DistanceMetric. The documented API is not available.
Expected Behavior (per README)
import { SemanticRouter } from '@ruvector/router';
const router = new SemanticRouter({ dimension: 384 });
router.addIntent({
name: 'weather',
utterances: ['What is the weather today?', 'Will it rain tomorrow?'],
metadata: { handler: 'weather_agent' }
});
const results = await router.route('What will the weather be like?');
Actual Behavior
import { SemanticRouter } from '@ruvector/router';
// ❌ Error: Module '"@ruvector/router"' has no exported member 'SemanticRouter'
- Version: 0.1.25
- Node: v20.x