Hacker News new | ask | show | jobs
by emrah 1174 days ago
Why does the serialization need to be text based? Why not binary formats? Or use sqlite or other db for storage and retrieval? That might also help with not having to read all the data into memory at once (although it would be slower to run)
1 comments

I think it doesn't need to be specifically text based, but given that LLMs are usually trained on primarily text (at least currently), I'm not sure they'd be meaningfully able to generate binary directly.

As for using DBs, that's certainly an option (i.e. langchain and such), but at some point you do still need to bring in the data inside the context, so I'd say it's still interesting to consider what would be an efficient way to represent that data via text.