Neural narratives in Python #14

I recommend you to check out the previous parts if you don’t know what this “neural narratives” thing is about. In short, I wrote in Python a system to have multi-character conversations with large language models (like Llama 3.1), in which the characters are isolated in terms of memories and bios, so no leakage to other participants like in Mantella. Here’s the GitHub repo.

My player character, a detective from Providence’s police department, delved into the kind of ancient tome one shouldn’t even glance at.

The detective feared that Elizabeth may already be lost permanently.

If the missing girl’s whereabouts could be gleaned, I required the help of the one brilliant scholar I had spent most of this playthrough inconveniencing.

That’s all for today storywise.

A section of my app allows the user to generate plot blueprints, scenarios, dilemmas, and goals, to find inspiration. I’ve added the choice to generate plot twists. Apart from that, there was plenty of code to refactor (which is a programming term referring to the arduous task of reworking the code so that the fewest number of instructions in a section of the codebase get repeated, now and in the future, to fight against entropy). That will allow me to add new “concepts” like scenarios, dilemmas, etc. significantly faster in the future.