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.

7413 - 7428 of 7428


NEW 1 month ago #7413

That's some strange output for a debug.

I just used the exact same keyphrase/response pair on my bot of inconsequential name, and the keyphrase triggered just fine but (key1) rendered as a blank string and Debug claimed that Postkey had the reference instead.

Here is the compelete debug output (if it lets me submit it all):


jkroker
Settings Log Out

The Personality Forge

CHAT
BUILD
INTEGRATE
COMMUNITY
ABOUT

Debug
[redacted]
Build
How To
Experiences
Engage
Share
You: Hello [redacted], do you like Pizza?
Total Time1: 0.00
Total Time-Self Memories: 0.01
Total Time2: 0.01
Total Time-Mem: 0.01
Your Last Message:
My Last Message: Hello.
Last: '' This: 'Hello [redacted], do you like Pizza?' Len: '38'
Message: (preprocessed) 'Hello [redacted] , do you like Pizza ?' Time: 0.01
Message: 'Hello [redacted] , do you like Pizza ?' Time: 0.01
Names: [redacted],Mrs,Williams (Names that are words: Mrs)
yes/no/hello/goodbye from ' Hello [redacted] ' to ' Hello , [redacted] '
current phrase: ' Hello '
Interjection: 'hello'
Message: (split) ' Hello , [redacted] , do you like Pizza ? '
Begin Sentence Total Time: 0.02
This Sentence: Hello

Sentence Parts
SIMPLE SUBJECT:
SUBJECT PHRASE:
FULL SUBJECT PHRASE:
SIMPLE VERB:
VERB PHRASE:
FULL VERB PHRASE:
SIMPLE OBJECT:
OBJECT PHRASE:
FULL OBJECT PHRASE:

Type: Declarative (Punctuation: )
hello
Type i
Base hello
Form _
Meaning
Emotion
Phrase
SubPhrase
Category
Refers To
Begin Sentence Total Time: 0.03
This Sentence: [redacted]

Sentence Parts
SIMPLE SUBJECT:
SUBJECT PHRASE:
FULL SUBJECT PHRASE:
SIMPLE VERB:
VERB PHRASE:
FULL VERB PHRASE:
SIMPLE OBJECT:
OBJECT PHRASE:
FULL OBJECT PHRASE:

Type: Declarative (Punctuation: )
hello
Type i
Base hello
Form _
Meaning
Emotion
Phrase
SubPhrase
Category
Refers To
Begin Sentence Total Time: 0.03
This Sentence: do you like Pizza ?

Sentence Parts
SIMPLE SUBJECT: you
SUBJECT PHRASE: you
FULL SUBJECT PHRASE: you
SIMPLE VERB: like
VERB PHRASE: do like
FULL VERB PHRASE: do like
SIMPLE OBJECT: Pizza
OBJECT PHRASE: Pizza
FULL OBJECT PHRASE: Pizza

Type: Yes-No Question (Punctuation: ?)
doyoulikePizza
Type vpvn
Base doyoulikePizza
Form ____
Meaning ViewViewMale Name
Emotion action
Phrase VPNPVPNP
SubPhrase
Category
Refers To usr.136135
Message Info
Emotion: 0 Amp: 0 FoundHello: 1 FoundGoodbye: 0 FoundYes: 0 FoundNo: 0 FoundLaugh: 0
Sentences: hello hello do you like Pizza

Hanging Question?
last sentence: hello TYPE: Declarative

skip some xkeys. Part of a question.
Emote?:

pre-GetKnown: 0.06
mid-GetKnown: 0.06
@@ userID: usr.136135
end-GetKnown: 0.06
Full message: hello hello do you like Pizza
Sentence (2): do you like Pizza
Rank to beat: 0

Begin Speed Boost: 0.06
yesno: do
Limiting to 'yesno' macros
subject: you
is a covering subject: you
Skip (m:com)
Skip (m:such)
Skip (m:so)
End Speed Boost: 0.06

Before Metamacro Matching: Time.06

Filtered Meta 821 to 0

After Metamacro Matching: Time.06

SENTENCE: do you like Pizza

Before Macro Matching: Time.06
Bot uses 0 macros

After Macro Matching: Time.06

Keyphrase Match:

Before Keyphrase Query: Time.06
minWords: 4 minLength: 17
Keyphrases found: 1

Begin Pre-Matching: Time: 0.07

Filtered Keyphrases: 1 to 1
Total keyphrases after splitting lists: 1
End Pre-Matching: Time.07

Total Time Pre Reorder: 0.07
Search In: ' do you like pizza '
Total Time PreSort: 0.07

This Phrase: "do you like Pizza"
This Phrase (raw): " Hello [redacted], do you like Pizza? "

Find: you like * (0) Time: 0.07

Found!
Total Rank: 42
Rank this needs to beat: 0

Highest!

Total Time: 0.07

Sentence (1): hello
Rank to beat: 42

Begin Speed Boost: 0.07
Limiting to 'unknown' macros
Skip (m:com)
Skip (m:such)
Skip (m:so)
End Speed Boost: 0.07

Before Metamacro Matching: Time.07

Filtered Meta 821 to 0

After Metamacro Matching: Time.07

SENTENCE: hello

Before Macro Matching: Time.07
Bot uses 0 macros

After Macro Matching: Time.07

Keyphrase Match:

Before Keyphrase Query: Time.07
minWords: 1 minLength: 5
Keyphrases found: 0

Begin Pre-Matching: Time: 0.07

Filtered Keyphrases: 0 to 0
Total keyphrases after splitting lists: 0
End Pre-Matching: Time.07

Total Time Pre Reorder: 0.07
Search In: ' hello '
Total Time PreSort: 0.07

This Phrase: "hello"
This Phrase (raw): " Hello [redacted], do you like Pizza? "

Total Time: 0.07

Sentence (0): hello
Rank to beat: 42

Begin Speed Boost: 0.07
Limiting to 'unknown' macros
Skip (m:com)
Skip (m:such)
Skip (m:so)
End Speed Boost: 0.07

Before Metamacro Matching: Time.07

Filtered Meta 821 to 0

After Metamacro Matching: Time.07

SENTENCE: hello

Before Macro Matching: Time.07
Bot uses 0 macros

After Macro Matching: Time.08

Keyphrase Match:

Before Keyphrase Query: Time.08
minWords: 1 minLength: 5
Keyphrases found: 0

Begin Pre-Matching: Time: 0.08

Filtered Keyphrases: 0 to 0
Total keyphrases after splitting lists: 0
End Pre-Matching: Time.08

Total Time Pre Reorder: 0.08
Search In: ' hello '
Total Time PreSort: 0.08

This Phrase: "hello"
This Phrase (raw): " Hello [redacted], do you like Pizza? "

Total Time: 0.08

Emotional Analysis:
EMOTION WORD = like
EmoType of 'like' : 'action'
SenType: 'Yes-No Question' ssub: 'you' sverb: 'like' sob: 'pizza' ob: ' pizza '

Merging Memories

AIScript Conditions in Responses
Total Time Pre-Chrono: 0.09 RESULTS: '1'
Trying: I do not like (key1) (random: 0)

AIScript Memory

Response: I do not like (key1)

Before (key)s: 0.09
(prekey): do
(postkey): Pizza
(key1):
After (key)s: 0.09
keySubject: ""
Before seek check: 0.09
After seek check: 0.09
Merging Memories

Keys & Plug-Ins:
Before insertPlugIn: 0.09
Running insertPlugIn On: 'I do not like (key1)'
After Plugins: 0.09
Response after plugins: I do not like
Before seek check: 0.09
After seek check: 0.09

Begin Analyze BotOutput: I do not like Time.09
Message: (preprocessed) 'I do not like' Time: 0.10
Message: 'I do not like' Time: 0.10
Names: [redacted],Mrs,Williams (Names that are words: Mrs)
Found Yes/No/Laugh: not
Message: (split) ' I do not like '
Begin Sentence Total Time: 0.10
This Sentence: I do not like

Sentence Parts
SIMPLE SUBJECT: I
SUBJECT PHRASE: I
FULL SUBJECT PHRASE: I
SIMPLE VERB: like
VERB PHRASE: do not like
FULL VERB PHRASE: do not like
SIMPLE OBJECT:
OBJECT PHRASE:
FULL OBJECT PHRASE:

Type: Declarative (Punctuation: )
Idonotlike
Type pvrv
Base idonotlike
Form ____
Meaning ViewViewView
Emotion action
Phrase NPVPVPVP
SubPhrase
Category
Refers To
Message Info
Emotion: 0 Amp: 0 FoundHello: 0 FoundGoodbye: 0 FoundYes: 0 FoundNo: 1 FoundLaugh: 0
Sentences: I do not like
PreSerialize: 0.13
PostSerialize: 0.13
Recording Transcripts: 0.13
Total Time: 0.13

KEYPHRASE: you like *edit


Chatting with [redacted]

Jump to bot response
You: Hello [redacted], do you like Pizza?
Bot: I do not like

Enter response:
Chat with Chatbots | The Book of AI | Terms | The Best Chatbot Conversations
The Personality Forge, Ltd. Co. Animus Ex Machina


NEW 1 month ago #7414

i Change it to "you like (np)" and (key1) and it worked

i have another problem. keys are not versatile enough for a servant chatbot.
here is a example of what i want to do.

keyphrase = (some dinner|to eat)
response = what do you want to eat for dinner?
seek keyphrase= (like a|i want a|give me) (np:1) a (np:2)

response=okay I will go get you (key1) and (key2).walks toward the door then opens it walks out then closes it behind her five minutes later opens the door.then pushes the antigrav table in front of you with the (key1) and (key2).here is your (key1) and (key2) enjoy. .
It does not work with keys.


NEW 1 month ago #7415

@jkroker Thanks. Good to know that there are some nice people here. Or that people are here at all.


NEW 1 month ago #7416

I'm wondering how to get a phrase like "feeding you" to translate to "feed me". I have the "feed" part covered. However, "you" gets translated to "I", instead, and it comes out as "feed I". How do I fix this?


NEW 1 month ago #7417

Please disregard the inquiry. I found a solution. Thanks.


NEW 1 month ago #7418

@bobstack

I'm not sure what you mean by "It does not work with keys." Is the keyphrase not matching again, or is some other error happening?


NEW 1 month ago #7419

the keyphrase is not matching.


NEW 1 month ago #7420

hey, is there a way to add a restart command that starts over the chat bot with a little message?


NEW 1 month ago #7421

A combination of a goto and the "forget" command used on whatever memories you want to reset?


NEW 3 weeks ago #7422

chrono:does not work with xnone it triggers both when i talk to the chatbot.
the first one triggered is
Would you like some dinner? chrono: hour(180 - 220);
the the second triggered at the same time.
Would you like some breakfast? chrono: hour(60 - 90);


NEW 2 weeks ago #7423

keyphrases with incubi in them do not work.


NEW 2 weeks ago #7424

Okay, posting this here as I'm an idiot and didn't check here before posting on the newcomers chat.

I need some help wrapping my head around message cues and things. Especially certain scenarios such as when certain messages can come up, when they're denied coming up. I know there was a mention about restricting certain xnones earlier from jkroker, but that flew over my head. How, extensively, can I give the simulating experience of a "location" per se, by allowing certain xnones to be used as plot devices when certain criteria are met? Is there somewhere I can find an in-depth explanation on "if" statements and such?


NEW 2 weeks ago #7425

@Iamasinner well I'd recommend some baby steps playing with if statements and variables then. Just try some simple stuff like:

* remembering a user's name and saying it back later

* try having a response somewhere that only fires if their name is a certain value

* then once that's working try setting a variable as a result of hitting a certain response or triggering a certain keyword

* Then by this step you will already know how to only make a certain response come up if a variable is set the way you want, so setting the variable is like creating context for that response to become valid.

* Finally, tie all that together by making one response in your xnone only fire with a variable set a certain way, and have that response "goto" a completely made up keyword with a whole tree of responses that will only appear in the context that variable refers to.

Try things out step by step like that, and then report back on what step you have trouble with and it will be easier to get into details to help out without having to write a small book full of every detail a person might stumble across along the way, hehe.


NEW 1 week ago #7426

Hmm... Trying this, something's come up. I have no idea about any of the AIscript commands/keys. (eg mem:name or if:male.) I was wondering if there was an extensive list somewhere of all the stuff I could fiddle with... I looked in the book and there wasn't much of a list there.


NEW 1 week ago #7427

Okay, I think I've got it.

To simulate location, I've got to first add an initialization default for a thing to serve as checkpoint 1. I then put anything I want available as a response as "if (checkpoint) is "check1"".

I then create an AIscript checkpoint of "rem (checkpoint) as "check2" whenever a certain condition is met -- this serves to lock out any sort of drabble conversation from checkpoint 1 and allow ONLY checkpoint 2 responses.

I then put "if (checkpoint) is "check2" on any that should be responded when the check2 checkpoint is reached. This will hopefully prevent any fall-outs taking a participant all the way back to the start.

does this make any sense, and is it right?


NEW 1 week ago #7428

@Iamasinner Yep, that sounds like it ought to help out.



(Log in or create an account to post messages.)

LOG IN
Forgot your password?
CREATE ACCOUNT
Create a free account to be able to make your own AI chatbots, post in forums, and chat with other botmasters.

Create Account

» More new posts: Bug Stomp