Skip to content

A simple framework for using a local Koboldcpp LLM to help with story-writing

License

Notifications You must be signed in to change notification settings

FaceDeer/storyteller

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

storyteller

A simple framework for using a local Koboldcpp LLM to help with story-writing

This application uses PyQt to provide an interface to a local Koboldcpp instance that's designed to make story-writing easier to keep organized and make good use of a smaller context size than the story can fit into.

It divides the story up into chapters, and scenes within those chapters, and when generating the text for scenes it combines the text and summaries of previous scenes and chapters to hopefully provide the salient details needed for the current scene to generate well.

The following shows what is included in the prompt (outlined in green) that is used to generate a scene's text (outlined in red). In a nutshell:

  • The background information is always included first.
  • Each "previous chapter" summary is included.
  • The summary of each previous scene in the current chapter is included. Scene summaries from previous chapters are not included, it is expected that all salient information from them is contained in the "previous chapter" summary following it.
  • The summary of the scene immediately prior to the current one is not included, instead the complete text of the previous scene is included.
  • Finally, the summary of the current scene is used to tell the LLM what it is supposed to write about in the current scene.

Since the complete text of the previous scene is included in the prompt for the next scene, it's important to proofread and edit each secene in the story after it's generated before going ahead and generating the next one. This ensures that mistakes the LLM makes aren't propagated forward.

About

A simple framework for using a local Koboldcpp LLM to help with story-writing

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages