Released: Feb 4, 2026
Paused the Bibliography Storage feature (RAG 1.0) after research revealed fundamental limitations. Added automatic thumbnail upscaling for talk images to improve social sharing quality.
- Removed RAG 1.0 ingestion pipeline (naive chunking approach deemed insufficient)
- Cleaned up generated SQL files (~14MB of broken/oversized inserts)
- Removed Drizzle schema entry for
bibliography_chunkstable - Preserved PDF collection and research documentation for future use
- All new talk thumbnails automatically upscaled to 1280×720 (YouTube maxresdefault equivalent)
- Converted to WebP format for better compression (25-30% smaller than JPEG)
- Uses Sharp with Lanczos3 interpolation for high-quality upscaling
- Graceful fallback to original image if processing fails
- Improves social sharing appearance on Twitter/X, Facebook, LinkedIn
lib/utils/image-processing.ts- Sharp-based image upscaling and WebP conversion
lib/supabase/storage.ts- Integrated image processing into upload pipelinelib/db/schema.ts- RemovedbibliographyChunkstable definition
scripts/output/- Generated SQL files (6.7MB+)scripts/ingest-bibliography.ts- PDF ingestion scriptlib/db/migrations/0011_bibliography_chunks.sql- Database migrationlib/db/queries/bibliography.ts- Query functions
docs/pdfs/- 10 Tarot PDF books (for future RAG 2.0)devnotes/Improving Document Ingestion Strategy.md- Research for better approach
RAG 1.0 approach using pdf-parse + naive 4000-char chunking was found to have:
- Layout Blindness - loses visual hierarchy from PDFs
- Semantic Fracture - severs context across chunks
- Keyword-only matching - misses semantic similarity
Future RAG 2.0 will use:
- Docling (IBM) for PDF → structured Markdown
- Jina Embeddings v3 with Late Chunking
- Hybrid Search (semantic + keyword via RRF)
- Verify deleted files no longer exist
- Verify
bibliographyChunksremoved from schema.ts - Verify PDFs preserved in
docs/pdfs/
- Create new talk via https://tarottalks.app/admin/talks/new
- Verify thumbnail saved as
.webpin Supabase Storage - Check Vercel logs for upscaling output (e.g., "640×360 → 1280×720")
- Generate spread reading that creates new talk, verify WebP thumbnail
- Deploy to https://tarottalks.app