Git Product home page Git Product logo

writer's Introduction

Writer: An Extension for Text Generation Web UI

Logo

Writer is an open-source AI writing application specifically designed for novel writing, it aims to explore new options for creative writing with large language model support.

Key Features πŸ”‘

  • Summary Support: Write or paste a story summary in the summary section. This will provide necessary context to the LLM, assisting in generating content more aligned with the story background.

  • Auto-Summarisation of Chapters: Instead of writing the story summary you can have the AI doing for you. Writer auto-summarises chapters, adding incremental context to your story. This can then be edited and tweaked.

  • Auto-Collation of Chapters: Get your chapters organised automatically into a compiled story.

  • Export Options: Export your finished story to HTML, Markdown, or txt format.

Installation πŸ’Ώ

Please follow these steps to install Writer:

  1. Open a bash terminal in text-generation-webui\extensions
  2. Type git clone https://github.com/adunato/writer.git
  3. Restart Text Generation Web UI

How To Use πŸ“–

Writer Pad πŸ“

The Writer Pad is the primary workspace. It functions similarly to the Notebook mode in Text Generation Web UI. Use this text box to write, edit, and generate text as per your needs. For best LLM generation, keep each paragraph under the LLM tokens limit (e.g. 2000), then hit "Process Paragraph" and start a new one with the context from the previous ones fed automatically to the LLM.

Session πŸ’Ύ

The Session feature allows you to save and load sessions, including content from the Writer Pad, Summary, and Compiled Story.

Story Generation πŸš€

Here you can edit the story summary and get a view of the 'Latest Context' sent to the LLM. By viewing the context used by the LLM to generate text.

Settings βš™οΈ

Configure your text generation and summarisation settings. The summarisation function uses the model currently loaded. However, these settings are isolated from the text generation settings, allowing you to fine-tune them without interference.

Roadmap πŸ—ΊοΈ

I want this app to be a sandbox for AI-assisted writing and I plan to experiment with more ways to use LLM based tools:

  • Additional Context Tools: Use of textual embeddings, vectors database and other injection techniques to provide additional ways to influence the LLM's context.

  • More Story Compilation Options and Formats: Additional options for compiling your story, as well as supporting more export formats.

  • Chat with Your Story: Chat with your story! Ask the LLM for advice on story development.

Contribution 🀝

Suggestions and bug reports are welcome! Feel free to create issues and submit pull requests.

License πŸ“ƒ

This project is licensed under the MIT License.


If any of the above sounds like a corporate sales pitch, blame Chat GPT for getting carried away with its "grammar checks".

writer's People

Contributors

adunato avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

writer's Issues

where is the requirements.txt file?

I am getting this error:

Loading the extension "writer"
14:25:27-254483 ERROR Could not import the requirements for 'writer'. Make sure to install the requirements for the
extension.

                     Linux / Mac:

                     pip install -r extensions/writer/requirements.txt --upgrade

                     Windows:

                     pip install -r extensions\writer\requirements.txt --upgrade

                     If you used the one-click installer, paste the command above in the terminal window opened
                     after launching the cmd script for your OS.

14:25:27-256652 ERROR Failed to load the extension "writer".
Traceback (most recent call last):
File "C:\AI\text-generation-webui\modules\extensions.py", line 36, in load_extensions
exec(f"import extensions.{name}.script")
File "", line 1, in
File "C:\AI\text-generation-webui\extensions\writer\script.py", line 2, in
from .writer_ui import generate_gradio_ui, generate_button_callbacks
File "C:\AI\text-generation-webui\extensions\writer\writer_ui.py", line 10, in
from .writer_summarise import add_summarised_content
File "C:\AI\text-generation-webui\extensions\writer\writer_summarise.py", line 2, in
from .webui_llm import WebUILLM
File "C:\AI\text-generation-webui\extensions\writer\webui_llm.py", line 1, in
from langchain.schema import LLMResult, Generation
ModuleNotFoundError: No module named 'langchain'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.