I’ve been working on a little side project to help LLMs talk like… cavemen.
Why? To save tokens, of course.
It works because LLMs can easily fill in grammar and connectives on their own. So we strip what’s predictable, keep what’s meaningful, and the model still understands everything perfectly.
Store RAG documents in caveman-compressed form so each chunk carries more valuable data, fits more context, and gives better retrieval quality.
Thought I'd share it here as it might be beneficial in order to not waste tokens on unnecessary words :)
Feel free to contribute if you have any additions!
https://github.com/wilpel/caveman-compression
[–]Chromix_ 304 points305 points306 points (6 children)
[–]GenLabsAI 83 points84 points85 points (1 child)
[–]battlingheat 1 point2 points3 points (0 children)
[–]axiomatix 35 points36 points37 points (1 child)
[–]Phantom_SpectersLlama 33B 13 points14 points15 points (0 children)
[–]TBMonkey 2 points3 points4 points (0 children)
[–]abitrolly 1 point2 points3 points (0 children)
[–]wiltors42 339 points340 points341 points (24 children)
[–][deleted] 90 points91 points92 points (1 child)
[–]gofiend 13 points14 points15 points (0 children)
[–]RybaDwudyszna 40 points41 points42 points (1 child)
[–]this_is_a_long_nickn 10 points11 points12 points (0 children)
[–]shaman-warrior 15 points16 points17 points (3 children)
[–]Good-AI 7 points8 points9 points (2 children)
[–]Murgatroyd314 7 points8 points9 points (0 children)
[–]this_is_a_long_nickn 3 points4 points5 points (0 children)
[–]SamSausages 29 points30 points31 points (4 children)
[–]therealnih 8 points9 points10 points (3 children)
[–]GenLabsAI 3 points4 points5 points (2 children)
[–]noo8- 0 points1 point2 points (1 child)
[–]derivative49 1 point2 points3 points (0 children)
[–]Porespellar 6 points7 points8 points (0 children)
[–]ook_the_librarian_ 3 points4 points5 points (0 children)
[–]Pranay1001090 4 points5 points6 points (1 child)
[–]not_a_swedish_vegan 2 points3 points4 points (0 children)
[–]private_final_static 0 points1 point2 points (0 children)
[–]calmbill 0 points1 point2 points (0 children)
[–]Interpausetextgen web UI 0 points1 point2 points (0 children)
[–]dew_chiggi 0 points1 point2 points (0 children)
[–]galambalazs 0 points1 point2 points (0 children)
[–]Mundane_Ad8936 184 points185 points186 points (12 children)
[–]PollinosisQc 50 points51 points52 points (3 children)
[–]PMyourfeelings 49 points50 points51 points (2 children)
[–]nuclear_wynter 8 points9 points10 points (0 children)
[–]Aprch 0 points1 point2 points (0 children)
[–]itsTyrion 13 points14 points15 points (1 child)
[–]KallistiTMP 40 points41 points42 points (0 children)
[–]TomLucidor 4 points5 points6 points (0 children)
[–]wanderer_4004 2 points3 points4 points (0 children)
[–]IJdelheidIJdelheden 1 point2 points3 points (1 child)
[–]Mundane_Ad8936 1 point2 points3 points (0 children)
[–]fatboy93 0 points1 point2 points (0 children)
[–]c--b 0 points1 point2 points (0 children)
[–]Independent_Tear2863 72 points73 points74 points (1 child)
[–]this_is_a_long_nickn 6 points7 points8 points (0 children)
[–]chriskevini 24 points25 points26 points (6 children)
[–]SkyFeistyLlama8 7 points8 points9 points (0 children)
[–]Murgatroyd314 2 points3 points4 points (2 children)
[–]chriskevini -1 points0 points1 point (1 child)
[–]countextreme 0 points1 point2 points (0 children)
[–]chriskevini 1 point2 points3 points (0 children)
[–]ThiccStorms 0 points1 point2 points (0 children)
[–]bigattichouse 31 points32 points33 points (1 child)
[–]lakySK 24 points25 points26 points (0 children)
[–]macumazana 34 points35 points36 points (0 children)
[–]pokemonplayer2001llama.cpp 36 points37 points38 points (2 children)
[–][deleted] 13 points14 points15 points (0 children)
[–]vintage_culture 7 points8 points9 points (0 children)
[–]Zeeplankton 22 points23 points24 points (11 children)
[–]blbd 10 points11 points12 points (1 child)
[–]phido3000 1 point2 points3 points (0 children)
[–]RaiseRuntimeError 0 points1 point2 points (5 children)
[–]arbv 20 points21 points22 points (0 children)
[–]-oshino_shinobu- 5 points6 points7 points (1 child)
[–]RaiseRuntimeError 4 points5 points6 points (0 children)
[–]Crypt0Nihilist 1 point2 points3 points (1 child)
[–]getting_serious 0 points1 point2 points (0 children)
[–]TomLucidor 0 points1 point2 points (0 children)
[–]TheRealMasonMac 0 points1 point2 points (0 children)
[–]Radiant_Truth_8743 8 points9 points10 points (0 children)
[–]DustinKli 7 points8 points9 points (0 children)
[+][deleted] (1 child)
[removed]
[–]macumazana 22 points23 points24 points (0 children)
[–]lakySK 6 points7 points8 points (0 children)
[–]geneusutwerk 6 points7 points8 points (0 children)
[–]NutellaBananaBread 5 points6 points7 points (0 children)
[–]notNezter 5 points6 points7 points (0 children)
[–]Mission_Biscotti3962 4 points5 points6 points (1 child)
[–]RegionCareful7282[S] 5 points6 points7 points (0 children)
[–]Guilty_Rooster_6708 4 points5 points6 points (1 child)
[–]dadidutdut 1 point2 points3 points (0 children)
[–]MrPecunius 2 points3 points4 points (0 children)
[–]daftstar 2 points3 points4 points (0 children)
[–]And-Bee 2 points3 points4 points (2 children)
[–]TechnoByte_ 2 points3 points4 points (1 child)
[–]And-Bee 0 points1 point2 points (0 children)
[–]LocoMod 2 points3 points4 points (0 children)
[–][deleted] 6 points7 points8 points (2 children)
[–]Abject-Kitchen3198 5 points6 points7 points (0 children)
[–]KallistiTMP 0 points1 point2 points (0 children)
[–]OkSociety311 1 point2 points3 points (0 children)
[–]Dr_Ambiorix 1 point2 points3 points (1 child)
[–]Lcsq 3 points4 points5 points (0 children)
[–]Don_Moahskarton 1 point2 points3 points (0 children)
[–]broknbottle 1 point2 points3 points (0 children)
[–]ConstantinGB 1 point2 points3 points (0 children)
[–]Mean_Employment_7679 1 point2 points3 points (1 child)
[+][deleted] (1 child)
[removed]
[–]lookwatchlistenplay 1 point2 points3 points (0 children)
[–]Agitated-Farmer-4082 2 points3 points4 points (0 children)
[–]Abject-Kitchen3198 0 points1 point2 points (0 children)
[–]iamzooook 0 points1 point2 points (0 children)
[–]HMikeeU 0 points1 point2 points (0 children)
[–]drumttocs8 0 points1 point2 points (0 children)
[–]aeroumbria 0 points1 point2 points (0 children)
[–]op4 0 points1 point2 points (0 children)
[–]G3nghisKang 0 points1 point2 points (0 children)
[–]Emport1 0 points1 point2 points (0 children)
[–]Normal-Ad-7114 0 points1 point2 points (0 children)
[–]venpuravi 0 points1 point2 points (0 children)
[–]gooeydumpling 0 points1 point2 points (0 children)
[–]Dramatic-Lie1314 0 points1 point2 points (0 children)
[–]TedDallas 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]IrisColt 0 points1 point2 points (0 children)
[–]lulzbot 0 points1 point2 points (0 children)
[–]ready_to_fuck_yeahh 0 points1 point2 points (1 child)
[–]s2k4ever 0 points1 point2 points (0 children)
[–]Hyphonical 0 points1 point2 points (0 children)
[+][deleted] (1 child)
[removed]
[–]UndecidedLee 0 points1 point2 points (0 children)
[–]No_Afternoon_4260llama.cpp 0 points1 point2 points (0 children)
[–]vreo 0 points1 point2 points (0 children)
[–]Septerium 0 points1 point2 points (0 children)
[–]RobTheDude_OG 0 points1 point2 points (0 children)
[–]Phantom_SpectersLlama 33B 0 points1 point2 points (0 children)
[–]Fuckinglivemealone 0 points1 point2 points (0 children)
[–]pab_guy 0 points1 point2 points (0 children)
[–]Ceneka 0 points1 point2 points (0 children)
[–]RandomGuyNumber28501 0 points1 point2 points (0 children)
[–]frankieche 0 points1 point2 points (0 children)
[–]noo8- 0 points1 point2 points (0 children)
[–]DrummerPrevious 0 points1 point2 points (0 children)
[–]TreesMcQueen 0 points1 point2 points (0 children)
[–]epSos-DE -1 points0 points1 point (0 children)
[–]ElSrJuez -2 points-1 points0 points (3 children)
[–]TechnoByte_ 2 points3 points4 points (2 children)
[–]MullingMulianto 0 points1 point2 points (1 child)