Live data from Hacker News

Local LLMs versus offline Wikipedia

evanhahn.com

41–50 of 200 posts

Re: Local LLMs versus offline Wikipedia

#41
One thing to note is that the quality of LLM output is related to the quality and depth of the input prompt. If you don't know what to ask (likely in the apocalypse scenario), then that info is locked away in the weights.

On the other hand, with Wikipedia, you can just read and search everything.

Re: Local LLMs versus offline Wikipedia

#42
I've found this amusing because right now i'm downloading `wikipedia_en_all_maxi_2024-01.zim` so i can use it with an LLM with pages extracted using `libzim` :-P. AFAICT the zim files have the pages as HTML and the file i'm downloading is ~100GB.

(reason: trying to cross-reference my tons of downloaded games my HDD - for which i only have titles as i never bothered to do any further categorization over the years aside than the place i got them from - with wikipedia articles - assuming they have one - to organize them in genres, some info, etc and after some experimentation it turns out an LLM - specifically a quantized Mistral Small 3.2 - can make some sense of the chaos while being fast enough to run from scripts via a custom llama.cpp program)

Re: Local LLMs versus offline Wikipedia

#43
post #34
post #25

Wouldn’t Wikipedia compress a lot more than llms? Are these uncompressed sizes?

Yes, they're uncompressed. For reference, `enwiki-20250620-pages-articles-multistream.xml.bz2` is 25,176,364,573 bytes; you could get that lower with better compression. You can do partial reads from multistream bz2, though, which is handy.

Kiwix (what the author used) uses "zim" files, which are compressed. I don't know where the difference come from, but Kiwix is a website image, which may include some things the raw Wikipedia dump doesn't.

And 57 GB to 25 GB would be pretty bad compression. You can expect a compression ratio of at least 3 on natural English text.

Re: Local LLMs versus offline Wikipedia

#44
post #26
post #11

Earlier quoted context omitted.

FYI: non-Western countries exist.

People who are from those countries that can nag on HN and know whant HN is are most likely still better off than most of their fellow countrymen.

Do you have any evidence to back that up? The barrier for entry to HN is an email account, it isn't necessarily this tech industry exclusive zone you're imagining.

Re: Local LLMs versus offline Wikipedia

#45
post #15
post #11

Earlier quoted context omitted.

FYI: non-Western countries exist.

Eh, even just “countries that are not the US” would be a correct statement. US tech salaries are just in an entire different ballpark to what most companies outside the US can offer. I’m in Canada, I make good money (as far as Canadian salaries go), but nowhere near “buy an expensive laptop whenever” money.

It's not uncommon for professionals to spend many thousands of dollars on the tools and equipment they need for their trade.

Try telling a plumber that $2,000 for a laptop is a financial burden for a software engineer.

Re: Local LLMs versus offline Wikipedia

#46
post #45
post #15

Earlier quoted context omitted.

Eh, even just “countries that are not the US” would be a correct statement. US tech salaries are just in an entire different ballpark to what most companies outside the US can offer. I’m in Canada, I make good money (as far as Canadian salaries go), but nowhere near “buy an expensive laptop whenever” money.

It's not uncommon for professionals to spend many thousands of dollars on the tools and equipment they need for their trade. Try telling a plumber that $2,000 for a laptop is a financial burden for a software engineer.

Comparing my problems to other people’s problems don’t make mine go away. A single purchase hitting a unit of percentage or more of anyone’s income is a large purchase regardless of what they’re making. Professionals being expected to shell out their own money to make their boss money is another problem entirely. A decent laptop is a big expense for me, their tools are an even bigger one for them, and none of these statements are contradictory.

Re: Local LLMs versus offline Wikipedia

#47

Earlier quoted context omitted.

Imagine taking the whole Web, removing spam, duplicates, bad explanations It will be the free new Wikipedia+ to learn anything in the best way possible, with the best graphs, interactive widgets, etc What LLMs have for free but humans for some reason don’t In some places it is possible to use copyrighted materials to educate if not directly for profit

Love it when Silicon Valley reinvents encyclopedias

The proposed project is a non profit, I don’t think it can be a for profit legally (it didn’t stop AI companies, though)

Re: Local LLMs versus offline Wikipedia

#48
post #7

One important distinction is that the strength of LLMs isn't just in storing or retrieving knowledge like Wikipedia, it’s in comprehension. LLMs will return faulty or imprecise information at times, but what they can do is understand vague or poorly formed questions and help guide a user toward an answer. They can explain complex ideas in simpler terms, adapt responses based on the user's level of understanding, and…

I think some combination of both search (perhaps of an offline database of wikipedia and other sources) and a local LLM would be the best, as long as the LLM is terse and provides links to relevant pages.

I find LLMs with the search functionality to be weak because they blab on too much when they should be giving me more outgoing links I can use to find more information.

Re: Local LLMs versus offline Wikipedia

#49
I just posted incidentally about Wikipedia Monthly[0], a monthly dump of wikipedia broken down by language and cleaned MediaWiki markup into plain text, so perfect for a local search index or other scenarios.

There are 341 languages in there and 205GB of data, with English alone making up 24GB! My perspective on Simple English Wikipedia (from the OP), it's decent but the content tends to be shallow and imprecise.

0: https://omarkama.li/blog/wikipedia-monthly-fresh-clean-dumps...

Re: Local LLMs versus offline Wikipedia

#50
post #7

One important distinction is that the strength of LLMs isn't just in storing or retrieving knowledge like Wikipedia, it’s in comprehension. LLMs will return faulty or imprecise information at times, but what they can do is understand vague or poorly formed questions and help guide a user toward an answer. They can explain complex ideas in simpler terms, adapt responses based on the user's level of understanding, and…

In a 'rebooting society' doomsday scenario you're assuming that our language and understanding would persist. An LLM would essentially be a blackbox that you cannot understand or decipher, and would be doubly prone to hallucinations and issues when interacting with it using a language it was not trained on. Wikipedia is something you could gradually untangle, especially if the downloaded version also contained associ…

> associated images

fun to imagine whether images help in this scenario

Post reply on HN