Better Vector Search for Long Documents: Chunking Inside Manticore Search
Thread
Unofficial Hacker News client; not affiliated with Y Combinator.
Better Vector Search for Long Documents: Chunking Inside Manticore Search
Unofficial Hacker News client; not affiliated with Y Combinator.
Chance-Device · · focus · HN ↗
entrope · · focus · HN ↗
My baseline was (vibe coded) full-text search with SQLite, and we landed on long chunks with overlap, with a really simple nearest-neighbor search: quantize the index to a sign bit per scalar, which makes it super cheap to estimate dot products, then calculate better (8-bit quant index times native precision for the query) dot products to sort the top documents. A vector database would make sense for a much larger corpus, but I currently have fewer than two million rows. Claude vibe-coded it to use an OpenAI-speaking local inference server and made semantic search an optional augmentation for the full-text search.
Neywiny · · focus · HN ↗
entrope · · focus · HN ↗
If you have billions of vectors, you should use a dedicated implementation: nearest-neighbor algorithms in high-dimensional space can be tricky, and there are a lot of trade-offs. My case is amenable to a simple implementation because I don't need huge scale. That's also why I did not need or want an out-of-process server.