@routepilot/assistant
v0.1.0
Published
In-browser retrieval core for @routepilot/engine — maps free-text questions to the tour step that answers them. Framework-agnostic (BM25 + tokenizer + types). Pair with @routepilot/assistant-react or @routepilot/assistant-angular for UI.
Maintainers
Readme
@routepilot/assistant
Framework-agnostic retrieval core for RoutePilot — turns your tour steps into a searchable index so users can ask questions and jump straight to the answer.
- BM25 ranking in the browser (no LLM, no API key, no backend)
- Tokenizer + light stemmer with query-time synonym expansion
- Per-step
meta.assistantbag (keywords,aliases,intent,errorPatterns) - Scope rules (
all-tours,current-tour-only,current-tour-first) - Optional async reranker hook for lexical → semantic pipelines
- Ships the shared CSS consumed by the React and Angular bindings
Install:
npm install @routepilot/assistantPair with the binding for your stack:
- React:
@routepilot/assistant-react - Angular:
@routepilot/assistant-angular
Docs: https://routepilot.dev/docs#assistant Source: https://github.com/chrisfeldkircher/routepilot/tree/main/packages/assistant
