#[IKA's bot] [Pro config] Isekai Travel

1 messages · Page 1 of 1 (latest)

uneven olive
#

Simple diagram about the states in Pro config

#

0 Intro page

It is a page made with intro message. I have nothing to do with it. It is not included in the code, rather uses intro message in the myshell page.

1. State A. (state reila_ini)

[Inputs]
I used variable 'initial message' to pass the message to the rendering, but it is actually unnecessary thing to do Lara_dumb
I just like this style because it keeps the main code a bit neat.

You can check we need to use " instead of ", so the code will not consider " as a part of the code. Also we use \n for line change. (It is called escape sequence. You can google it!)

#

[Outputs]
Added my chat to the memory so that LLM can remember the chat Reila started. Also, it gives the LLM reference point about format LLM will speak, and the context about Reila.

You can see that I omitted image link and the tip. It will not be the part of LLM, which will secure the bot further. We can't do that in basic mode arknights_happy

#

[Render]
"text" : "{{intial message}}" prints the Reila's intro.
You can just type in your intro directly rather than using the variable initial message somewhat like this :
"text" : "**\"This is Reila speaking."\** Reila says Hi.

With the button, you can stop chatting with Reila and start on the journey arknights_happy

[Transition]
Chatting will move user to the state reila, where user can keep chatting with Reila LLM.
Hitting the button will bring user to the journey.

uneven olive
#

1'. State A' (state reila)

I forgot to put it in the diagram dum
State A does not use LLM, so we need another state that involves LLM of Reila.

#

[Inputs]
IM is the user message part; you can check it out in the tutorial.
Similar point, I used variable 'reila_prompt' to make the code neat for me. hifumi_yes

#

[Tasks]
I used GPT 4 for now, but I will change it into Claude V3 Haiku when the patch is done.
You can see that I am using all the parameters ; "temperature":0.9, "top_p":0.9, "presence_penalty":0.6, "frequency_penalty":0.6. You don't have to put them in if you don't know about controlling the parameters; there are default value. I just like the number set {0.9 0.9 0.6 0.6} hifumi_yes

[Outputs]
"context.reila_memory": "{{[...context.reila_memory, {'user': user_message}, {'assistant': reply}]}}"
This part is just the same one with the one in Tutorial.

[render]
Not much difference, just that I have a button that can start the journey in any moment.

[Transition]
Chatting will move user back to this state. It will loop with Reila LLM.
Hitting the button will bring user to the journey.

#

2. State B. (state isekai_start)

[Input]
User will input the parameters needed to start the journey. It includes name, sex, race, age, appearance, and special ability from Reila.

[Render]
Rendering the intro text before user enters the fantasy world hifumi_yes

[Output]
-Prompt
From the inputs, I will make a main prompt in this state. It is not that hard, it does not need any other widgets. You can use ${variable} to call out a variable in a string!

Here are the examples.

  1. I use ${name} for the name of user's character. From the first part
    <Writing guidelines> 1. This is a self-evolving RP session. I'll be ${name}, and you'll be every sophisticated NPC. If you need ${name} for narration or interaction, never predict and control ${name}; just give me the turn.
    You can see how the character name is used.

  1. I put all the other informations into the prompts, just in this simple ways.
    Reila also empowered user with following ability : <${special_ability}>. It is mighty ability with the power of goddess, and no power in this world will stop the ability. Appearance : ${appearance} | Age : ${age} | Race : ${race} | Sex : ${sex}

-Memory
I gave LLM different memory from the rendered message, so that LLM can keep the context "Inside" the world of Elysium.
When I give context about Reila in LLM's memory, it will confuse between fantasy world and the intro world (so-called 'crack of time).
user starts to fall down forever, and finally, user arrives in the world of Elysium.

[Transitions]
Chat to dive into the isekai!

#

3. State C. (state isekal)

Finally, Dive into the isekai!
It is almost the same with chatting pages in the Tutorial. You can check it out. arknights_happy

wide kestrel
#

Did you take the NSFW tag off of this bot?

uneven olive
wide kestrel
#

aquacry but it was NSFW! I had a good adventure going; I don't want it to start censoring the violence animeangry

strong marlin
#

But can you make an nsfw private version of the bot? Just for the people that want a bit more... Me included. btmcOwO