<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Home</title><link>https://sourceforge.net/p/genbook/wiki/Home/</link><description>Recent changes to Home</description><atom:link href="https://sourceforge.net/p/genbook/wiki/Home/feed" rel="self"/><language>en</language><lastBuildDate>Sat, 25 Jan 2025 08:24:51 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/genbook/wiki/Home/feed" rel="self" type="application/rss+xml"/><item><title>Home modified by Krory</title><link>https://sourceforge.net/p/genbook/wiki/Home/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v8
+++ v9
@@ -1,220 +1,285 @@
-# GenBook 
-
-## Description of the Application
-
-**GenBook** is an application designed to assist users in generating literary or creative content based on a LLM. The application allows users to interact with a specialized AI server, processing inputs and generating text based on the provided context. This tool is ideal for anyone looking to explore the potential of AI in creative writing or automation.
-
-GenBook harnesses the power of advanced models hosted locally, ensuring optimal performance and data privacy by avoiding the use of external servers.
-
----
-
-## Key Features
-
-- **Creative Text Generation**: Input descriptions or ideas and receive chapters, summaries, or full text segments.
-- **Support for Multiple Chapters**: Generate chapter indices and organize the generated content.
-- **Interactive Interface**: Enables users to send commands to guide the writing flow.
-- **Local Optimization**: The model operates entirely on your machine, ensuring privacy and speed.
-- **CUDA and Non-CUDA Support**: Can run optimized servers for machines with or without GPU support.
-
----
-
-## System Requirements
-
+
+GenBook - README 
+Description of the Application
+GenBook is an advanced application designed to assist users in generating literary or creative content using a Local Language Model (LLM). The application facilitates interaction with a specialized AI server, processing user inputs and generating text based on the provided context. Ideal for writers, students, content creators, and researchers, GenBook leverages the power of AI to enhance creative writing and automation tasks.
+GenBook ensures optimal performance and data privacy by operating entirely on your local machine, eliminating the need for external servers.
+
+Key Features
+Creative Text Generation: Input descriptions or ideas and receive chapters, summaries, or full text segments.
+Support for Multiple Chapters and Subchapters: Generate chapter indices and organize content with detailed subchapters.
+Interactive Interface: Enables users to send commands to guide the writing flow.
+Local Optimization: The model operates entirely on your machine, ensuring privacy and speed.
+CUDA and Non-CUDA Support: Can run optimized servers for machines with or without GPU support.
+Save and Load Game State: Save your progress and load previous sessions to continue your story without losing context.
+Multi-language Support: Switch between English and Spanish seamlessly to cater to a diverse user base.
+Customizable Settings: Adjust parameters like temperature, max tokens, repetition penalty, and more to fine-tune the AI's output.
+Detailed Interaction History: View a comprehensive history of your interactions and generated content.
+User-Friendly Menu and Sidebar: Access all functionalities through an intuitive menu and sidebar with clearly labeled buttons.
+About Section Customization: Personalize the "About" section to reflect your project's details.
+
+System Requirements
 To use GenBook, you'll need:
-
-- **Operating System**: Windows 10/11 (64-bit)
-- **RAM**: Minimum 8 GB (16 GB recommended for large text volumes)
-- **GPU** (optional): CUDA-compatible for enhanced performance
-- **Disk Space**: At least 10 GB free (for model files and other resources)
-
----
-
-## File Structure
-
+Operating System: Windows 10/11 (64-bit)
+RAM: Minimum 8 GB (16 GB recommended for large text volumes)
+GPU (optional): CUDA-compatible for enhanced performance
+Disk Space: At least 10 GB free (for model files and other resources)
+
+File Structure
 The application is distributed with the following folder structure:
-
-```
-│   main.exe          # Main executable file
-│
-├───llama.cpp         # Resources to run the AI server
-│       server.exe    # CUDA server
-│       servernocuda.exe # Non-CUDA server
-│       7z.exe        # Tool to decompress models
-│
-└───models            # Compressed model files
-        Hermes-3-Llama-3.2-3B.Q5_K_M.7z.001
-        Hermes-3-Llama-3.2-3B.Q5_K_M.7z.002
-        ...
-```
-
----
-
-## Installation
-   - Download the `GenBookInstaller.exe` and all the `GenBookInstaller-*.bin` . files, make sure they are all in the same folder.
-
-1. **Run the installer**:
-   - Use the `GenBookInstaller.exe` file to install the application.
-   - During installation, the compressed model files will automatically be decompressed into the `models` folder.
-
-2. **Verify the installation**:
-   - Ensure the `llama.cpp` folder contains the server files (`server.exe` and `servernocuda.exe`) and `7z.exe`.
-   - Confirm that the model files are decompressed correctly in the `models` folder.
-
-3. **Run the application**:
-   - Launch the `main.exe` file to start GenBook.
-
----
-
-## Using the Application
-
-### Available Commands
-
-- **`/start`**: Start a new session and set the initial context.
-- **`/chapter [number]`**: Select a specific chapter from the generated index.
-- **`/subchapter [number]`**: Choose a subchapter within the selected chapter.
-- **`/more`**: Generate additional chapters based on the current index.
-- **`/more_subchapters`**: Expand subchapters within a chapter.
-- **`/recap`**: Provide a summary of the content generated so far.
-- **`/finalizar`**: Save all generated content to a text file.
-- **`/help`**: Display available commands.
-
----
-
-### Suggested Workflow
-
-1. **Set the initial context**:
-   - Input a general description or idea of your project using the `/start` command.
-
-2. **Generate the chapter index**:
-   - Use the `/more` command to expand the chapter list as needed.
-
-3. **Explore chapters and subchapters**:
-   - Navigate through the content using `/chapter` and `/subchapter`.
-
-4. **Generate additional content**:
-   - Request more text using `/more` or `/more_subchapters`.
-
-5. **Save the generated content**:
-   - Use `/finalizar` to save all text to a text file.
-
----
-
-## Utility
-
-GenBook is a versatile tool for:
-
-- **Writers**: Generate ideas, chapters, or summaries for novels and stories.
-- **Students**: Get assistance with drafting essays or creative projects.
-- **Content Creators**: Automate the creation of scripts or content ideas.
-- **Researchers**: Outline and organize information efficiently.
-
----
-
-## Troubleshooting
-
-### Common Issues
-
-1. **The server doesn't start**:
-   - Verify that the `server.exe` or `servernocuda.exe` files are in the `llama.cpp` folder.
-   - Ensure your GPU is compatible if using the CUDA server.
-
-2. **Model files not found**:
-   - Confirm that the model files are correctly decompressed in the `models` folder.
-
-3. **The application is unresponsive**:
-   - Ensure sufficient available RAM.
-   - Close other applications to free up resources.
-
----
-
-# GenBook - README (Development Version)
-
-## Status: **Under Development**
-
-GenBook is currently in its development phase. While it provides functional features for content generation, improvements and additional features are being actively worked on. Feedback is highly appreciated to help refine and enhance the application.
-
----
-
-## Application Overview
-
-GenBook is designed to harness the power of AI for generating creative content, such as stories, chapters, and summaries. The application consists of several Python scripts that interact with a local AI server to process user inputs and generate text dynamically. 
-
----
-
-## Pre-compiled  (Before PyInstaller)
-
-
-
-### Key Files
-
-1. **`main.py`**:  
-   This is the entry point of the application. It initializes the user interface, manages user input, and calls the necessary scripts to handle server communication and text generation.
-
-2. **`server_manager.py`**:  
-   This script is responsible for starting and stopping the AI server (`server.exe` or `servernocuda.exe`). It ensures that the appropriate server version (CUDA or non-CUDA) is launched based on the user's system capabilities.
-
-3. **`utils.py`**:  
-   A helper script containing functions for handling resources, file paths, and localization. It includes the logic for finding the right paths to the model files and server binaries.
-
-
----
-
-## How It Works
-
-1. **Initialization**:  
-   When the application starts, it reads the system configuration (GPU vs. CPU) and prepares the required server binaries. The interface is built using a library like `Tkinter`.
-
-2. **Server Communication**:  
-   - The `server_manager.py` script starts the AI server in the background.
-   - Commands and prompts are sent from `main.py` to the server using a socket-based communication protocol.
-
-3. **Model Handling**:  
-   - Models are compressed into `.7z` files to save space.
-   - During installation, the compressed models are decompressed using `7z.exe` into the `models` folder.
-
-4. **Text Generation**:  
-   - Users input descriptions or commands (e.g., `/start`, `/chapter`, `/more`).
-   - The AI server processes the input and returns generated text.
-   - The generated text is displayed in the application's UI.
-
-5. **Saving Progress**:  
-   Users can save the generated text to a file using the `/finalizar` command. The output is written to a `.txt` file, allowing users to retain their generated content.
-
----
-
-## Development Workflow
-
-### Setting Up the Environment
-
+GenBook/
+│   main.exe                 # Main executable file
+│
+├───llama.cpp                # Resources to run the AI server
+│       server.exe           # CUDA server
+│       servernocuda.exe     # Non-CUDA server
+│       7z.exe               # Tool to decompress models
+│
+├───models                   
+│       Hermes-3-Llama-3.2-3B.Q5_K_M.7z.gguf
+│       ...
+│
+├───resources                # Additional resources
+│       back.png             # Background image
+│
+├───translations             # Localization files
+│       en.json              # English translations
+│       es.json              # Spanish translations
+│
+├───utils.py                 # Helper functions and utilities
+├───server_manager.py        # Server management script
+└───README.md                # This README file
+
+
+Installation
+Download the Installer and Model Files:
+
+
+Obtain the GenBookInstaller.exe and all GenBookInstaller-*.bin files.
+Ensure all files are placed in the same folder before proceeding.
+Run the Installer:
+
+
+Execute the GenBookInstaller.exe file to begin installation.
+The installer will automatically decompress the model files into the models folder.
+Verify the Installation:
+
+
+Ensure the llama.cpp folder contains the server files (server.exe and servernocuda.exe) and 7z.exe.
+Confirm that the model files are correctly decompressed in the models folder.
+Launch the Application:
+
+
+Navigate to the installation directory and run the main.exe file to start GenBook.
+
+Using the Application
+Available Commands
+/start: Start a new session and set the initial context.
+/chapter [number]: Select a specific chapter from the generated index.
+/subchapter [number]: Choose a subchapter within the selected chapter.
+/more: Generate additional chapters based on the current index.
+/more_subchapters: Expand subchapters within a chapter.
+/recap: Provide a summary of the content generated so far.
+/finalizar: Save all generated content to a text file and exit the application.
+/save_story: Save the story history to a .txt file.
+/save_game: Save the entire game state to a .json file.
+/load_game: Load a previously saved game state from a .json file.
+/help: Display available commands.
+
+Suggested Workflow
+Set the Initial Context:
+
+
+Upon launching GenBook, if starting a new session, input a general description or idea of your project using the /start command.
+Generate the Chapter Index:
+
+
+Use the /more command to expand the chapter list as needed.
+Explore Chapters and Subchapters:
+
+
+Navigate through the content using /chapter and /subchapter.
+Generate Additional Content:
+
+
+Request more text using /more or /more_subchapters.
+Save Your Progress:
+
+
+Periodically save your story history using /save_story.
+Save the entire game state using /save_game to allow resuming later.
+Load a Previous Session:
+
+
+Use /load_game to load a saved game state and continue your story without losing context.
+Finalize and Save Your Story:
+
+
+When you’re done, use /finalizar to save all generated content to a text file and exit the application.
+
+Save and Load Game State
+Saving Your Story
+Save Story History:
+
+
+Click the "Save Story" button in the sidebar or use the /save_story command.
+Choose a location and filename to save your story history as a .txt file.
+This file contains all interactions and generated content, allowing you to review or export your story.
+Save Entire Game State:
+
+
+Click the "Save Game" button in the sidebar or use the /save_game command.
+Choose a location and filename to save your game state as a .json file.
+This file includes all variables and history, enabling you to resume your session seamlessly.
+Loading a Previous Session
+Load Game State:
+Click the "Load Game" button in the sidebar or use the /load_game command.
+Select a previously saved .json game state file.
+GenBook will restore your entire session, including story history and current state, allowing you to continue generating content without re-entering the initial description.
+Note: When loading a game state, the AI retains all previous context, eliminating the need for an initial prompt. You can directly proceed with selecting chapters and subchapters.
+
+Menu and Sidebar
+Sidebar Buttons
+Finish and Save: Save your progress and exit the application.
+Run Server (CUDA): Start the AI server optimized for CUDA-compatible GPUs.
+Run Server (Non-CUDA): Start the AI server for systems without CUDA support.
+Settings: Adjust AI parameters such as temperature, max tokens, repetition penalty, and more.
+View Model Path: Display the file path of the currently used AI model.
+Save Story: Save the story history to a .txt file.
+Save Game: Save the entire game state to a .json file.
+Load Game: Load a previously saved game state from a .json file.
+Exit: Close the application.
+Application Menu
+File:
+Save and Exit: Save all generated content and exit the application.
+Exit: Exit the application without saving.
+Help:
+Help: Display available commands and usage instructions.
+About: Show information about the application and its creators.
+Language:
+English: Switch the interface to English.
+Español: Switch the interface to Spanish.
+
+Settings
+Adjust AI parameters to fine-tune the text generation process:
+Temperature: Controls the randomness of the AI's output. Higher values yield more creative results.
+Max Tokens: Sets the maximum number of tokens (words or word pieces) the AI can generate.
+Model Name: Select the AI model to use for text generation.
+Top-p: Implements nucleus sampling, controlling the diversity of the output.
+Top-k: Limits the AI to consider only the top-k probable next tokens.
+Repetition Penalty: Penalizes the model for repeating the same text, enhancing output variety.
+Repetition Penalty Range: Defines the range within which repetition penalties are applied.
+Stop Sequence: Specifies sequences where the AI should stop generating further text.
+To access settings:
+Click the "Settings" button in the sidebar.
+Adjust the desired parameters.
+Click "Save" to apply changes or "Cancel" to discard.
+
+Multi-language Support
+GenBook supports multiple languages to cater to a diverse user base. Currently, English and Spanish are available.
+Changing the Language
+Open the application.
+Navigate to the "Language" menu in the application menu bar.
+Select your preferred language (English or Español).
+The interface will update to reflect the chosen language.
+
+
+Troubleshooting
+Common Issues
+The server doesn't start:
+
+
+Verify that the server.exe or servernocuda.exe files are in the llama.cpp folder.
+Ensure your GPU is compatible if using the CUDA server.
+Model files not found:
+
+
+Confirm that the model files are correctly decompressed in the models folder.
+The application is unresponsive:
+
+
+Ensure sufficient available RAM.
+Close other applications to free up resources.
+Language not changing:
+
+
+Ensure that translation files are present in the translations folder.
+Restart the application after changing the language.
+Error loading game state:
+
+
+Ensure the .json file is not corrupted and contains all required keys.
+Use only .json files generated by GenBook for loading.
+Additional Support
+If you encounter issues not listed here, consider reaching out through the application's support channels or consult the GenBook GitHub Repository for more information.
+
+Development Workflow
+Setting Up the Environment
 To run GenBook in development mode, ensure you have the following installed:
-
-- Python 3.8+  
-- Required Python packages (`requirements.txt`):
-  ```
-  pip install -r requirements.txt
-  ```
-- A CUDA-compatible GPU (optional for better performance).
-
-### Running the Application in Development Mode
-
-1. Extract the models into the `models` folder
-
-2. Launch the application using:
-   ```
-   python main.py
-   ```
-
-
-## Planned Features
-
-- **Improved User Interface**: A cleaner and more intuitive design with better navigation and customization options for users.
-- **Model Selection**: Enable dynamic selection of different pre-trained models to suit diverse creative needs.
-- **Enhanced Localization**: Expand support to include more languages beyond English and Spanish, making the tool accessible to a global audience.
-- **Performance Optimization**: Refine server interaction for faster and more efficient text generation, especially on low-resource systems.
-- **Advanced Prompt System**: Develop a more sophisticated prompt mechanism to allow the model to understand and respond to user inputs more effectively, enhancing the quality of generated content.
-- **Fine-tuning**: Fine-tune the AI model with a curated dataset of fantasy stories, books, and lore to significantly improve its understanding of and performance in the fantasy genre.
-- **Expanded Compatibility**: Explore cross-platform compatibility to make the application available on macOS and Linux in the future.
-- **User Customization**: Introduce options for users to modify prompts, save templates, and adjust model parameters directly from the interface for more personalized outputs. 
-
----
-
+Python 3.8+
+Required Python packages: Install dependencies using the requirements.txt file:
+ pip install -r requirements.txt
+
+
+A CUDA-compatible GPU (optional for better performance).
+Running the Application in Development Mode
+Extract the Models:
+
+
+Decompress the model files into the models folder using 7z.exe:
+ 7z.exe x Hermes-3-Llama-3.2-3B.Q5_K_M.7z.001 -omodels
+
+
+Launch the Application:
+
+
+Run the main script:
+ python main.py
+
+
+Pre-compiled Files
+Key Files:
+main.py:
+
+
+Entry point of the application.
+Initializes the user interface, manages user input, and handles server communication and text generation.
+server_manager.py:
+
+
+Responsible for starting and stopping the AI server (server.exe or servernocuda.exe).
+Ensures the appropriate server version is launched based on the user's system capabilities.
+utils.py:
+
+
+Contains helper functions for handling resources, file paths, and localization.
+Manages the logic for locating model files and server binaries.
+
+How It Works
+Initialization:
+
+
+Upon launching, GenBook reads the system configuration (GPU vs. CPU) and prepares the required server binaries.
+The user interface is built using Tkinter, featuring a sidebar and main content area with tabs for generation and history.
+Server Communication:
+
+
+The server_manager.py script starts the AI server in the background.
+Commands and prompts are sent from main.py to the server using a socket-based communication protocol.
+Model Handling:
+
+
+Models are compressed into .7z files to save space.
+During installation, the compressed models are decompressed into the models folder using 7z.exe.
+Text Generation:
+
+
+Users input descriptions or commands (e.g., /start, /chapter, /more).
+The AI server processes the input and returns generated text.
+The generated text is displayed in the application's UI, with options to save or continue.
+Saving and Loading Progress:
+
+
+Users can save their story history and game state at any point.
+Saved states can be loaded to resume previous sessions without losing context.
+
+
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Krory</dc:creator><pubDate>Sat, 25 Jan 2025 08:24:51 -0000</pubDate><guid>https://sourceforge.net0c91e6be07fd82b12430cccefdebeb5d58ab0ed7</guid></item><item><title>Home modified by Krory</title><link>https://sourceforge.net/p/genbook/wiki/Home/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v7
+++ v8
@@ -141,30 +141,9 @@

 ---

-## Pre-compiled Structure (Before PyInstaller)
-
-Before being packaged into a standalone `.exe` using PyInstaller, the application's folder structure looks like this:
-
-```
-│   main.py               # Entry point for the application
-│
-├───llama.cpp             # Resources to run the AI server
-│       server.py         # Manages the server process
-│       server.exe        # CUDA version of the server (for GPUs)
-│       servernocuda.exe  # Non-CUDA server (CPU only)
-│       7z.exe            # Utility for decompressing models
-│
-├───models                # Pre-trained model files
-│       Hermes-3-Llama-3.2-3B.Q5_K_M.7z.001
-│       Hermes-3-Llama-3.2-3B.Q5_K_M.7z.002
-│       ...
-│
-├───scripts               # Core functionality scripts
-│       server_manager.py # Handles starting/stopping the server
-│       utils.py          # Utility functions for file handling, logging, etc.
-│
-
-```
+## Pre-compiled  (Before PyInstaller)
+
+

 ### Key Files

@@ -177,11 +156,6 @@
 3. **`utils.py`**:  
    A helper script containing functions for handling resources, file paths, and localization. It includes the logic for finding the right paths to the model files and server binaries.

-4. **`server.py`**:  
-   If running in development mode, this script can directly start the AI server and facilitate testing without packaging the application.
-
-5. **Language Files (`resources/*.json`)**:  
-   These JSON files contain language strings for the application's user interface. Adding new languages is as simple as creating a new JSON file with the required translations.

 ---

@@ -223,18 +197,13 @@

 ### Running the Application in Development Mode

-1. Clone the repository and navigate to the project directory.
-2. Extract the models into the `models` folder if they are compressed.
-3. Launch the application using:
+1. Extract the models into the `models` folder
+
+2. Launch the application using:
    ```
    python main.py
    ```
-4. To directly test the server:
-   ```
-   python scripts/server.py
-   ```
-
----
+

 ## Planned Features

&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Krory</dc:creator><pubDate>Sat, 25 Jan 2025 03:21:20 -0000</pubDate><guid>https://sourceforge.neta0df5d44076724c7fd1c33afe7415d2667db04f7</guid></item><item><title>Home modified by Krory</title><link>https://sourceforge.net/p/genbook/wiki/Home/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v6
+++ v7
@@ -163,9 +163,7 @@
 │       server_manager.py # Handles starting/stopping the server
 │       utils.py          # Utility functions for file handling, logging, etc.
 │
-└───resources             # Language and localization files
-        en.json           # English language strings
-        es.json           # Spanish language strings
+
 ```

 ### Key Files
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Krory</dc:creator><pubDate>Sat, 25 Jan 2025 03:18:33 -0000</pubDate><guid>https://sourceforge.net0ddbf4d119d99fa78b42b4c276cfb8053d4484d6</guid></item><item><title>Home modified by Adrian</title><link>https://sourceforge.net/p/genbook/wiki/Home/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v5
+++ v6
@@ -2,7 +2,7 @@

 ## Description of the Application

-**GenBook** is an application designed to assist users in generating literary or creative content based on an advanced language model. The application allows users to interact with a specialized AI server, processing inputs and generating text based on the provided context. This tool is ideal for anyone looking to explore the potential of AI in creative writing or automation.
+**GenBook** is an application designed to assist users in generating literary or creative content based on a LLM. The application allows users to interact with a specialized AI server, processing inputs and generating text based on the provided context. This tool is ideal for anyone looking to explore the potential of AI in creative writing or automation.

 GenBook harnesses the power of advanced models hosted locally, ensuring optimal performance and data privacy by avoiding the use of external servers.

&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Adrian</dc:creator><pubDate>Sat, 25 Jan 2025 02:48:36 -0000</pubDate><guid>https://sourceforge.netec646d015364f890c5a3c4023c59e587469e2691</guid></item><item><title>Home modified by Adrian</title><link>https://sourceforge.net/p/genbook/wiki/Home/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v4
+++ v5
@@ -50,6 +50,7 @@
 ---

 ## Installation
+   - Download the `GenBookInstaller.exe` and all the `GenBookInstaller-*.bin` . files, make sure they are all in the same folder.

 1. **Run the installer**:
    - Use the `GenBookInstaller.exe` file to install the application.
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Adrian</dc:creator><pubDate>Sat, 25 Jan 2025 02:24:49 -0000</pubDate><guid>https://sourceforge.netd42fd64e2a51e596dbf818b15c8710bcabdce529</guid></item><item><title>Home modified by Adrian</title><link>https://sourceforge.net/p/genbook/wiki/Home/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v3
+++ v4
@@ -1,4 +1,4 @@
-# GenBook - README
+# GenBook 

 ## Description of the Application

&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Adrian</dc:creator><pubDate>Sat, 25 Jan 2025 01:58:53 -0000</pubDate><guid>https://sourceforge.neta017cf78893cce9672d6778b42043ce0c4ad7691</guid></item><item><title>Home modified by Adrian</title><link>https://sourceforge.net/p/genbook/wiki/Home/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Adrian</dc:creator><pubDate>Sat, 25 Jan 2025 01:52:20 -0000</pubDate><guid>https://sourceforge.net1be68b53633c9f8f44be594a2f516b35922404f5</guid></item><item><title>Home modified by Adrian</title><link>https://sourceforge.net/p/genbook/wiki/Home/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v1
+++ v2
@@ -1,8 +1,252 @@
-Welcome to your wiki!
-
-This is the default page, edit it as you see fit. To add a new page simply reference it within brackets, e.g.: [SamplePage].
-
-The wiki uses [Markdown](/p/genbook/wiki/markdown_syntax/) syntax.
-
-[[members limit=20]]
-[[download_button]]
+# GenBook - README
+
+## Description of the Application
+
+**GenBook** is an application designed to assist users in generating literary or creative content based on an advanced language model. The application allows users to interact with a specialized AI server, processing inputs and generating text based on the provided context. This tool is ideal for anyone looking to explore the potential of AI in creative writing or automation.
+
+GenBook harnesses the power of advanced models hosted locally, ensuring optimal performance and data privacy by avoiding the use of external servers.
+
+---
+
+## Key Features
+
+- **Creative Text Generation**: Input descriptions or ideas and receive chapters, summaries, or full text segments.
+- **Support for Multiple Chapters**: Generate chapter indices and organize the generated content.
+- **Interactive Interface**: Enables users to send commands to guide the writing flow.
+- **Local Optimization**: The model operates entirely on your machine, ensuring privacy and speed.
+- **CUDA and Non-CUDA Support**: Can run optimized servers for machines with or without GPU support.
+
+---
+
+## System Requirements
+
+To use GenBook, you'll need:
+
+- **Operating System**: Windows 10/11 (64-bit)
+- **RAM**: Minimum 8 GB (16 GB recommended for large text volumes)
+- **GPU** (optional): CUDA-compatible for enhanced performance
+- **Disk Space**: At least 10 GB free (for model files and other resources)
+
+---
+
+## File Structure
+
+The application is distributed with the following folder structure:
+
+```
+│   main.exe          # Main executable file
+│
+├───llama.cpp         # Resources to run the AI server
+│       server.exe    # CUDA server
+│       servernocuda.exe # Non-CUDA server
+│       7z.exe        # Tool to decompress models
+│
+└───models            # Compressed model files
+        Hermes-3-Llama-3.2-3B.Q5_K_M.7z.001
+        Hermes-3-Llama-3.2-3B.Q5_K_M.7z.002
+        ...
+```
+
+---
+
+## Installation
+
+1. **Run the installer**:
+   - Use the `GenBookInstaller.exe` file to install the application.
+   - During installation, the compressed model files will automatically be decompressed into the `models` folder.
+
+2. **Verify the installation**:
+   - Ensure the `llama.cpp` folder contains the server files (`server.exe` and `servernocuda.exe`) and `7z.exe`.
+   - Confirm that the model files are decompressed correctly in the `models` folder.
+
+3. **Run the application**:
+   - Launch the `main.exe` file to start GenBook.
+
+---
+
+## Using the Application
+
+### Available Commands
+
+- **`/start`**: Start a new session and set the initial context.
+- **`/chapter [number]`**: Select a specific chapter from the generated index.
+- **`/subchapter [number]`**: Choose a subchapter within the selected chapter.
+- **`/more`**: Generate additional chapters based on the current index.
+- **`/more_subchapters`**: Expand subchapters within a chapter.
+- **`/recap`**: Provide a summary of the content generated so far.
+- **`/finalizar`**: Save all generated content to a text file.
+- **`/help`**: Display available commands.
+
+---
+
+### Suggested Workflow
+
+1. **Set the initial context**:
+   - Input a general description or idea of your project using the `/start` command.
+
+2. **Generate the chapter index**:
+   - Use the `/more` command to expand the chapter list as needed.
+
+3. **Explore chapters and subchapters**:
+   - Navigate through the content using `/chapter` and `/subchapter`.
+
+4. **Generate additional content**:
+   - Request more text using `/more` or `/more_subchapters`.
+
+5. **Save the generated content**:
+   - Use `/finalizar` to save all text to a text file.
+
+---
+
+## Utility
+
+GenBook is a versatile tool for:
+
+- **Writers**: Generate ideas, chapters, or summaries for novels and stories.
+- **Students**: Get assistance with drafting essays or creative projects.
+- **Content Creators**: Automate the creation of scripts or content ideas.
+- **Researchers**: Outline and organize information efficiently.
+
+---
+
+## Troubleshooting
+
+### Common Issues
+
+1. **The server doesn't start**:
+   - Verify that the `server.exe` or `servernocuda.exe` files are in the `llama.cpp` folder.
+   - Ensure your GPU is compatible if using the CUDA server.
+
+2. **Model files not found**:
+   - Confirm that the model files are correctly decompressed in the `models` folder.
+
+3. **The application is unresponsive**:
+   - Ensure sufficient available RAM.
+   - Close other applications to free up resources.
+
+---
+
+# GenBook - README (Development Version)
+
+## Status: **Under Development**
+
+GenBook is currently in its development phase. While it provides functional features for content generation, improvements and additional features are being actively worked on. Feedback is highly appreciated to help refine and enhance the application.
+
+---
+
+## Application Overview
+
+GenBook is designed to harness the power of AI for generating creative content, such as stories, chapters, and summaries. The application consists of several Python scripts that interact with a local AI server to process user inputs and generate text dynamically. 
+
+---
+
+## Pre-compiled Structure (Before PyInstaller)
+
+Before being packaged into a standalone `.exe` using PyInstaller, the application's folder structure looks like this:
+
+```
+│   main.py               # Entry point for the application
+│
+├───llama.cpp             # Resources to run the AI server
+│       server.py         # Manages the server process
+│       server.exe        # CUDA version of the server (for GPUs)
+│       servernocuda.exe  # Non-CUDA server (CPU only)
+│       7z.exe            # Utility for decompressing models
+│
+├───models                # Pre-trained model files
+│       Hermes-3-Llama-3.2-3B.Q5_K_M.7z.001
+│       Hermes-3-Llama-3.2-3B.Q5_K_M.7z.002
+│       ...
+│
+├───scripts               # Core functionality scripts
+│       server_manager.py # Handles starting/stopping the server
+│       utils.py          # Utility functions for file handling, logging, etc.
+│
+└───resources             # Language and localization files
+        en.json           # English language strings
+        es.json           # Spanish language strings
+```
+
+### Key Files
+
+1. **`main.py`**:  
+   This is the entry point of the application. It initializes the user interface, manages user input, and calls the necessary scripts to handle server communication and text generation.
+
+2. **`server_manager.py`**:  
+   This script is responsible for starting and stopping the AI server (`server.exe` or `servernocuda.exe`). It ensures that the appropriate server version (CUDA or non-CUDA) is launched based on the user's system capabilities.
+
+3. **`utils.py`**:  
+   A helper script containing functions for handling resources, file paths, and localization. It includes the logic for finding the right paths to the model files and server binaries.
+
+4. **`server.py`**:  
+   If running in development mode, this script can directly start the AI server and facilitate testing without packaging the application.
+
+5. **Language Files (`resources/*.json`)**:  
+   These JSON files contain language strings for the application's user interface. Adding new languages is as simple as creating a new JSON file with the required translations.
+
+---
+
+## How It Works
+
+1. **Initialization**:  
+   When the application starts, it reads the system configuration (GPU vs. CPU) and prepares the required server binaries. The interface is built using a library like `Tkinter`.
+
+2. **Server Communication**:  
+   - The `server_manager.py` script starts the AI server in the background.
+   - Commands and prompts are sent from `main.py` to the server using a socket-based communication protocol.
+
+3. **Model Handling**:  
+   - Models are compressed into `.7z` files to save space.
+   - During installation, the compressed models are decompressed using `7z.exe` into the `models` folder.
+
+4. **Text Generation**:  
+   - Users input descriptions or commands (e.g., `/start`, `/chapter`, `/more`).
+   - The AI server processes the input and returns generated text.
+   - The generated text is displayed in the application's UI.
+
+5. **Saving Progress**:  
+   Users can save the generated text to a file using the `/finalizar` command. The output is written to a `.txt` file, allowing users to retain their generated content.
+
+---
+
+## Development Workflow
+
+### Setting Up the Environment
+
+To run GenBook in development mode, ensure you have the following installed:
+
+- Python 3.8+  
+- Required Python packages (`requirements.txt`):
+  ```
+  pip install -r requirements.txt
+  ```
+- A CUDA-compatible GPU (optional for better performance).
+
+### Running the Application in Development Mode
+
+1. Clone the repository and navigate to the project directory.
+2. Extract the models into the `models` folder if they are compressed.
+3. Launch the application using:
+   ```
+   python main.py
+   ```
+4. To directly test the server:
+   ```
+   python scripts/server.py
+   ```
+
+---
+
+## Planned Features
+
+- **Improved User Interface**: A cleaner and more intuitive design with better navigation and customization options for users.
+- **Model Selection**: Enable dynamic selection of different pre-trained models to suit diverse creative needs.
+- **Enhanced Localization**: Expand support to include more languages beyond English and Spanish, making the tool accessible to a global audience.
+- **Performance Optimization**: Refine server interaction for faster and more efficient text generation, especially on low-resource systems.
+- **Advanced Prompt System**: Develop a more sophisticated prompt mechanism to allow the model to understand and respond to user inputs more effectively, enhancing the quality of generated content.
+- **Fine-tuning**: Fine-tune the AI model with a curated dataset of fantasy stories, books, and lore to significantly improve its understanding of and performance in the fantasy genre.
+- **Expanded Compatibility**: Explore cross-platform compatibility to make the application available on macOS and Linux in the future.
+- **User Customization**: Introduce options for users to modify prompts, save templates, and adjust model parameters directly from the interface for more personalized outputs. 
+
+---
+
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Adrian</dc:creator><pubDate>Sat, 25 Jan 2025 01:51:57 -0000</pubDate><guid>https://sourceforge.net7d6d1d2bd12f566bdad2945ae8b92a00dfc5b795</guid></item><item><title>Home modified by Adrian</title><link>https://sourceforge.net/p/genbook/wiki/Home/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Welcome to your wiki!&lt;/p&gt;
&lt;p&gt;This is the default page, edit it as you see fit. To add a new page simply reference it within brackets, e.g.: &lt;span&gt;[SamplePage]&lt;/span&gt;.&lt;/p&gt;
&lt;p&gt;The wiki uses &lt;a class="" href="/p/genbook/wiki/markdown_syntax/" rel="nofollow"&gt;Markdown&lt;/a&gt; syntax.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;h6&gt;Project Members:&lt;/h6&gt;
    &lt;ul class="md-users-list"&gt;
        &lt;li&gt;&lt;a href="/u/krory90/"&gt;Adrian&lt;/a&gt; (admin)&lt;/li&gt;
        
    &lt;/ul&gt;&lt;br/&gt;
&lt;p&gt;&lt;span class="download-button-679441d7f778292797072505" style="margin-bottom: 1em; display: block;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Adrian</dc:creator><pubDate>Sat, 25 Jan 2025 01:51:01 -0000</pubDate><guid>https://sourceforge.netb15e9fc828c1ed234d6b87bc7892c56db6425e48</guid></item></channel></rss>