tangent b5250e302d optimized cache
I'm not going to use this though, because I need a better file reference in general
2026-09-14 19:32:46 -06:00
2026-09-14 19:22:42 -06:00
2026-09-14 19:32:46 -06:00
2026-04-16 20:54:35 -06:00

LLM Tricks

Trying to find anything useful to do with local LLMs.

All scripts work with data within PRIVATE_DATA/ so that private data can't be accidentally committed.

cosine_similarity.lua

Opens embeddings.json and creates similarities.json with a sorted list of comparisons.

generate_embeddings.lua

Opens every file on its whitelist within the notebook directory, and generates embeddings (placed in embeddings.json). When files are too long, it truncates them.

least_similar.lua

Opens similarities.json, reverses the sort order, and saves it as differences.json.

synopsis_generator.lua

Chooses a random file within notebook, and generates a novel synopsis from it.

Arguments:

  • refresh_file_list: Refreshes the cached file list to choose from.
  • export_ordered_list_of_prompts: Makes an epub to review generated synopses.

Tasks

  • synopsis_generator cache should include file sizes to make script running easier/faster
  • The whitelisting/blacklisting of tree should be in list too.
S
Description
Finding useful things to do with local LLMs.
Readme
265 KiB
Languages
Lua 100%