Giter Site home page Giter Site logo

daemonib / ersatz-echos Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 21 KB

Ersatz Echos is an AI-powered tool that generates rich, structured timelines for fictional worlds, allowing users to create immersive and consistent histories with customizable parameters and the ability to draw inspiration from user-provided documents

License: Apache License 2.0

Python 100.00%
civ fantasy game history history-generator population procedural simulation world ai llm world-building

ersatz-echos's Introduction

Ersatz Echos

Ersatz Echos is an AI-powered history generator that creates rich, structured timelines for fictional worlds. With customizable parameters and the ability to draw inspiration from user-provided documents, Ersatz Echos crafts unique histories spanning centuries or millennia. The tool outputs its generated histories in a structured JSON format, making it easy to integrate with other world-building applications. Whether you're a game developer, novelist, or simply a creative enthusiast, Ersatz Echos provides a foundation for building immersive, consistent fictional universes.

Features

  • AI-driven history generation using advanced language models
  • Customizable timeline parameters (start year, end year, number of events, etc..)
  • Structured JSON output for easy integration with other tools
  • Experimental features for enhanced world-building capabilities
    • Ability to extract information from user-provided PDF documents for added context

Getting Started

Prerequisites

  • Access to an API (OpenAI, OpenRouter, etc.)
  • Python 3.11+ installed

Installation

  1. Clone the repository:

    git clone https://github.com/DaemonIB/ersatz-echos.git
    
  2. Navigate to the project directory:

    cd ersatz-echos
    
  3. Install the required dependencies:

    pip install -r requirements.txt
    
  4. Copy the example configuration files:

    cp user_context.example.json user_context.json
    cp config.example.json config.json
    
  5. Edit config.json and replace YOUR_API_KEY_HERE with your LLM API key.

  6. (Optional) If you want to provide additional context for the LLM to base the timeline on:

    • Edit user_context.json and replace the sample data with your own data.

Usage

Run the Python script:

python main.py --output history.json

The generated history will be saved to the file specified with the --output flag, or history.json if not specified.

Configuration

  • config.json: Contains settings for the LLM API and other parameters.
  • user_context.json: Allows you to provide additional context for the LLM to base the timeline on. The structure is generic, and any top-level category can be used (e.g., Locations, Characters, Funny Hair Styles). Individual entities within each category need a name and description.

Notes

  • The default model has been selected based on cost and ability to produce JSON. For OpenAI, openai/gpt-3.5-turbo-0125 is compatible, along with the models specified here.
  • Other models may work, but their success rate may be lower.

Experimental Features

  • Document Extraction: Enabled via the document_extraction flag in config.json.

License

This project is licensed under Apache-2.0.

ersatz-echos's People

Contributors

daemonib avatar

Watchers

 avatar

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.