Git Product home page Git Product logo

unkenny's People

Contributors

kingphilausti avatar simonheidrich avatar thecomamba avatar

Stargazers

 avatar

Watchers

 avatar  avatar

unkenny's Issues

Can we avoid having to post messages ourselves?

This would be much preferable to the hack we currently use.

There is the ChatMessageRender hook.

One issue is that the text is scanned for chat commands, and our /alias command clashes with that.

So maybe we do the text replacement in ChatMessage, and trigger calculating the response in ChatMessageRender.

How do we know if the text contained an unkenny command?

Maybe we need to rethink if we really want to use the /alias Syntax. We are about to release breaking changes, so now would be the time to do that.

Cache models

Downloading the models and tokenizer takes about a third of the total time needed for response generation, so let's cache them.

Properly update macros

One problem is that actors can have the same name. But maybe that's an edge case that we simply don't service.
Alternatively we work with the actor id. That's probably much easier.

Acceptance criteria:
Create a macro whenever new actor becomes (!) unkenny.
Delete the macro when that actor becomes un-unkenny.
Delete the macro when that actor is deleted.
Re-create macro if the actor name changes.

Solution 1:
Hook actions into the events above.

Solution 2:
Write an updateUnKennyMacros function that loops over all actors and macros and synchronises them.

Solution 3:
Do both, calling updateUnKennyMacros on init hook.

Make the server and only them host the LLM

The model is loaded in memory on only one computer, and the clients merely send their requests.

Furthermore, the model is not downloaded on every client connect!

Is this possible in foundry?

Automated Testing

I do not feel comfortable leaving everything to manual tests, especially in a non-compiled language like JavaScript, where all errors are only found once encountered. I am sure there are frameworks to do that in the currently most popular language worldwide, I just don't know any. This issue tracks the todo to delve into that.

Prompt Snippets

Setting up NPCs can be rather repetitive. It could benefit from prepared and hard-coded prompt snippets that can be inserted with at most two clicks. I imagine something like a selection menu right next to the prompt edit field.

Create flaks-server for ML image

For the first ML test, let's start a flaks server containing an example ML-image.
Goal is a communication between Foundry-Module and ML-image

Assist the user in NPSecrecy

LLMs tend to blurt out what they know. It is not simple to design a prompt such that the Model has some information, but keeps it to itself. The question of how to do that is of ongoing interest for the cybersecurity community. If we have any ideas how to guide the user towards secrecy prompts we should incorporate them.

Worlds Variable and roles Variable (Feature Request)

It would enhance the immersion and contextual relevance of NPC interactions to introduce world variables and specific locations for NPCs within UnKenny. For instance, if the narrative includes distinct locations like Baldur's Gate and Waterdeep, incorporating local information—events, rumors, or crises—would allow NPCs in each location to provide tailored responses reflective of their environment. This would result in a more nuanced dialogue where NPCs in Waterdeep are aware and can discuss local happenings distinct from those in Baldur's Gate.

Create update.sh

The script should update all local npm dependencies and then also update the version of the dynamically loaded models during production.

Re-assess local models and how they are called

Before going for Version 1.0, I think we should check if we are using the local models properly. Are there better models available? How can we call the model to be a chatbot instead of a mere text completion model?

Roles in the broadest sense

I imagine a dialogue to create and edit something like roles, which are coupled with preamble snippets. So for example I could add the role "Waterdeep-Citizen" with the snippet "You know that the local mill has been overrun by killer-dolphins.", but I could also add a role like "Pirate" with the snippet "You talk like a pirate.".
In the unkenny edit dialogue you could then add or remove an arbitrary number of roles and thus create your average waterdeep citizen, your waterdeep pirate, and your generic pirate. The snippets are prepended to the actor-specific preamble.

PostInChat reports an error.

I think the behaviour slightly changed since the last Foundry major. Easy to fix, but I want to take this as an opportunity to implement some mocking for the ChatMessage object. This will be useful when we tackle #31.

Journal references

A preample containing references to journal entries would be very powerful. Something like You have read @"Bandit's Journal":4., where the text of page 4 of Bandit's Journal is inserted.
This approach has some open problems:

  • Journal names in Foundry are not unique. The unique identifiers are not displayed to the user (although we could of course expose them).
  • Journal names can probably contain arbitrary unicode symbols, which makes parsing the syntax hard. This also points towards using the identifiers.
    Suggested approach:
    Upon typing @ in a preamble, we open a context menu and offer the user a selection (hopefully #38 is implemented by then and the user is accustomed to this behaviour) of journal entries. The text contains the unique identifier. We also display it in journal entries for copy-pasting, but only subtly. The Colon- syntax is optional. If not present, all journal pages are included.

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.