Problem
The Squad docs site needs a chat/search experience that lets users ask questions and get answers grounded in the documentation. The question is: can we do this with SQLite + vector search instead of requiring a cloud vector database?
Context
- Squad already uses SQLite (
node:sqlite in Node 22.5+) for the StorageProvider and session store
- The docs site is custom Astro (not Starlight)
- We want to avoid adding cloud dependencies (Azure AI Search, Pinecone, etc.) if possible
- The docs content is markdown files in
docs/src/content/
Research Questions
1. SQLite Vector Search Capabilities
2. Embedding Pipeline
3. Chat UI Architecture
4. Alternative Approaches to Evaluate
5. Build vs Buy
Deliverables for the PRD
- Feasibility report: Can SQLite vector search handle our scale (~100 pages, ~500 chunks)?
- Architecture proposal: Recommended stack with trade-offs table
- Prototype scope: What's the MVP? (search only? chat? streaming?)
- Cost estimate: Per-query cost for each approach
- Implementation plan: Phased rollout with dependencies
Success Criteria
Labels
squad, enhancement, go:needs-research
Problem
The Squad docs site needs a chat/search experience that lets users ask questions and get answers grounded in the documentation. The question is: can we do this with SQLite + vector search instead of requiring a cloud vector database?
Context
node:sqlitein Node 22.5+) for the StorageProvider and session storedocs/src/content/Research Questions
1. SQLite Vector Search Capabilities
sqlite-vecorsqlite-vssprovide vector similarity search?better-sqlite3vsnode:sqlitebuilt-in)sqlite-vecvssqlite-vssvsvectorlite— which is production-ready?2. Embedding Pipeline
all-MiniLM-L6-v2via@xenova/transformersfor local?)squad docs:buildstep? CI?)3. Chat UI Architecture
4. Alternative Approaches to Evaluate
5. Build vs Buy
Deliverables for the PRD
Success Criteria
Labels
squad,enhancement,go:needs-research