Re:Vector indexing all of Wikipedia on a laptop
by hivacruz on Wednesday May 29, 2024 @01:54PM
(#40514761)
Did you do use the same method, i.e. split by chunks each article and vectorize each chunk?
[ Parent
| on HN ]
Re:Vector indexing all of Wikipedia on a laptop
by dudus on Wednesday May 29, 2024 @02:28PM
(#40515149)
That's the only way to do it. You can't index the whole thing. The challenge is chunking. There are several different algorithms to chunk content for vectorization with different pros and cons.
Re:Vector indexing all of Wikipedia on a laptop
by minimaxir on Wednesday May 29, 2024 @02:54PM
(#40515454)
You can do much bigger chunks with models that support RoPE embeddings, such as nomic-embed-text-1.5 which has a 8192 context length: https://huggingface.co/nomic-ai/nomic-embed-text-v1.5
In theory this would be an efficiency boost but the performance math can be tricky.
Re:Vector indexing all of Wikipedia on a laptop
by qudat on Wednesday May 29, 2024 @04:19PM
(#40516524)
As far as I understand it, context length degrades llm performance, so just because an llm "supports" a large context length it basically just clips a top and bottom chunk and skips over the middle bits.
Re:Vector indexing all of Wikipedia on a laptop
by rahimnathwani on Wednesday May 29, 2024 @04:24PM
(#40516587)
Why would you want chunks that big for vector search? Wouldn't there be too much information in each chunk, making it harder to match a query to a concept within the chunk?
Re:Vector indexing all of Wikipedia on a laptop
by nostrebored on Wednesday May 29, 2024 @11:57PM
(#40519928)
The problem is that often semantic meaning depends on state multiple paragraphs or sections away.
This is a coarse way to tackle that