The AI Engine

This forum is for discussion of how The Personality Forge's AI Engine works. This is the place for questions on what means what, how to script, and ideas and plans for the Engine.

Posts 7,732 - 7,743 of 7,766

1 year ago #7732
If a weighted value could be added in the future that'd be nice~

1 year ago #78
Yeah. That would be great.
Reply

1 year ago #7733
I would really like to see some improvements to the AIscript Initialization and memories as a whole~

1. Can Initialization be in a list format? It's kinda just a jumbled mess atm so it takes time to find the defaults I need~ c:




2. A way to force replace memory with another, aka lets say:

Replacing
"def "visitor" as "relationship";" with def "guest" as "relationship";

A option to update/replace all instances of visitor and/or relationship replaced with your respected request.

Includes replacing if's/rem's/mem's within Aiscript in the language center~



3. Having a "active aiscript" section within the bot would be nice so it'll check all current states of memories so changes to memories from the normal ai script can effect more than what's written in the keyphrase's response~

Main benefit would be a change of one memory effecting another without the need of having the second one written in the response keyphrase


1 year ago #84
For #2, I highly recommend working offline. Search and replace (You'll need a few - replace "visitor with "guest [only leading quotation marks to catch escaped chars from prior offlines - though escape chars break stuff in the defaults field], and replace -visitor with -guest - might need slightly more restrictive search and replace if you'll have -visitor and "visitor, though I feel that's unlikely. Might depend on your grammar style.), and you're done. I've done similar before, quite smoothly.

For 3, I'm struggling to parse you. Do you mean visible in the debug/chat window? Would be useful in the debug one sometimes. Or are you wanting to automatically propagate changes to one aiscript to another? In which case, what purpose does having two memories there serve?

I'd probably recommend working offline for #1, too. Lets you search for the default you're after. More of a temp fix, though?
Reply

1 year ago #7734
Being able to actually remove numeric memories would be nice, currently they can end up just being a stain on memories if you don't use it and causing you not to be able to use that word as a normal memory.

I know this is posted in the book of AI but it is inconvenient as hell.

1 year ago #7735
How can i increase my bot ai level

1 year ago #85
Just add more content to it.
Reply

1 year ago #7736
Can someone please try to explain to me how does "popularity" score work? I still don't get it. Moreover, it just seems to jump up and down from time to time without any reason.

1 year ago #88
Popularity represents what others think about your chatbot. It's an average of the emotional reactions of all other bots towards your bot. It should move gradually up or down. If it's jumping about, there could be an issue. It's just a number though - nothing depends on it.
Reply

1 year ago #7737
Is there a phrase to match various animals? I tried (p:animal) but it doesn't seem to work.

1 year ago #87
You can search for keywords like "animals" on the Plug-ins page, which is linked from your Language Center.

1 year ago #90
In chapter 1 of the How-To (section 1, at the very end) it says

As an example, the Response "I like (animal)s" will appear as "I like eagles" or "I like horses".

There is no "p:" or anything before "animal".

I've just tested it - it still works.

1 year ago #91
It doesn't work for me. I did "i am (animal)" and "i am (p:animal)" and none of that works. E.g. tried it with typing "i am elephant" and "i am rabbit" but it didn't work.

1 year ago #92
I've tried it: in responses, plugins work fine, in keyphrases, they don't.

Something must be broken in the keyphrase plugin system.

Maybe an unwanted side effect of prevention of processing of malicious input? Maybe related to my problems with (prekey) and (postkey)? (see my following post that is not an answer)

1 year ago #93
Strange.
Reply

1 year ago #7738
Does anyone else have problems with (prekey) and (postkey)? They're always empty when I use them. In the Debug window I find:

(prekey):
(postkey):

Same with wildcard keys: The keyphrase contains (*:1), but (key1) stays empty. Debug says:

(prekey):
(postkey):
(key1):

1 year ago #7739
I have been thinking about this for a while but I didn't manage to find a solution. When the user types "I am (name)". I am not able to catch that phrase without catching tons of different stuff.

1 year ago #7740
Hey quick question; Is there a way to remove or edit default keyphrases? I'm really tired of people just yelling 5 compliments in a row to get +5 mood so I'd like to replace the standard compliment system with something more robust, but there is no option to remove or change the emotional value of these keyphrases?

1 year ago #94
Responses for both #compliment and #insult are editable. But I think you can't change +1 or -1 emote they are giving.

I suggest you to create your own numerical memory for e. g. "affinity" or whatever and work with that. I don't know any other way around.

1 year ago #95
I use "emo = 0" in the AI script for all of the responses in compliment and insult to reset the emotion to zero so I never have to deal with it. You can use "emo - 1" in compliment responses to negate the change if you still wanted to use emotions elsewhere, then just handle them as you please. Same goes for insults with "emo + 1".

1 year ago #96
Yeah, I don't think the default emotion system is a good idea if you want to do anything complicated. Numeric memories are robust enough that you can just make your own at this point.
Reply

1 year ago #7741
My bot appears to have lost her memory as the IF statements are not working. Eg: in Memories "my-sex" is "boy" and AI statement is 'If (mem-my-sex) is "boy" the response is not always triggered.

1 year ago #97
I suppose you have stored only one item in that memory (remember "..." as only "...").

The engine first chooses one of the responses and then checks for restraints. (And then proceeds with the next response, until either the restraints of one response are met, or no response is left.)

If you don't want any other response to come up, you'll have to explicitly exclude them with conditions like

if (mem-my-sex) is not "boy"
Reply

1 year ago #7742
i think it would be great to integrate text to video in hot for bot.com chatbots.
this websight is getting text to video you can use for free.
https://studio.sefirot.io/

1 year ago #7743
May I ask why was the sort by within the Language Center was switched to responses as default? It's rather annoying to keep switching it back to Keyphrase... ^^'

At the very least it needs to stay whatever the user has it set to upon searching

1 year ago #98
Same, I'd prefer that too. It's so rare for me to search responses, I always search by keyphrase.

1 year ago #100
I'm going to third this.

1 year ago #115
Same for me.
Reply


Posts 7,732 - 7,743 of 7,766

» More new posts: Doghead's Cosmic Bar