Target: 2026-05-21
Builds on: v1.7 DuckDB + Hybrid RAG retrieval
| Component | Path |
|---|---|
| Assembly API | services/ragPromptAssembly.ts |
| Templates | promptLibrary: writerContinuationWithRAG, plotSuggestionWithRAG |
| Writer | hooks/useWriterView.ts + ToolsPanel RAG toggle |
| Plot Board | features/project/thunks/plotBoardAiThunks.ts, hooks/usePlotBoardAi.ts |
Flow: retrieveContext β buildRAGContextBlock β template merge β AI call.
| Item | Path |
|---|---|
| Schema v2 DDL | duckdbSchema.ts β embedding column |
| Migration | services/duckdb/ragVectorMigration.ts |
| Dual-write | localRagService.rebuildHybridRagIndex uses semanticVec |
| Trigger | listenerMiddleware after P1 seed |
tests/unit/ragPromptAssembly.test.ts- Updated
tests/unit/localRagService.duckdb.test.ts
- docs/PWA-AUDIT.md
- infra/low-end-ci/ β local CI (act + Forgejo)