You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: 'Checking conversation context for <that> and <topic> constraints',
742
+
description: 'AIML uses <that> (bot\'s last response) and <topic> tags to constrain pattern matching. Categories with matching constraints take priority.',
721
743
contextInfo: {
722
744
topic: this.context.topic,
723
745
that: this.context.that||'(none)',
@@ -780,7 +802,7 @@ export class Alice {
780
802
781
803
steps.push({
782
804
name: 'Category Matching',
783
-
description: 'Testing input against AIML categories (sorted by priority)',
805
+
description: 'AIML searches categories by priority: _ wildcards (highest) > exact patterns > * wildcards (lowest). First matching category wins.',
784
806
patternTests: patternTests.slice(0,10),
785
807
details: matchedPattern
786
808
? `Matched category with pattern: ${matchedPattern.pattern.toString()} (priority: ${matchedPattern.priority||0})`
@@ -792,7 +814,7 @@ export class Alice {
792
814
if(wildcards.length>0){
793
815
steps.push({
794
816
name: 'Wildcard Extraction',
795
-
description: 'Extracting captured text from pattern wildcards (*)',
817
+
description: 'AIML wildcards (* and _) capture matched text. These values are accessed via <star/>, <star index="2"/>, etc. in templates.',
796
818
wildcards: wildcards.map((w,i)=>({
797
819
index: i+1,
798
820
captured: w||'(empty)'
@@ -820,7 +842,7 @@ export class Alice {
820
842
if(usedSRAI){
821
843
steps.push({
822
844
name: 'SRAI (Symbolic Reduction)',
823
-
description: 'Pattern redirects to another pattern via SRAI',
845
+
description: 'AIML\'s <srai> tag enables recursive pattern matching. The input is transformed and re-matched against all categories.',
824
846
sraiTarget: sraiTarget,
825
847
details: `Recursively matching: "${sraiTarget}"`
826
848
});
@@ -836,7 +858,7 @@ export class Alice {
836
858
837
859
steps.push({
838
860
name: 'Template Expansion',
839
-
description: 'Expanding template with captured wildcards and context variables',
861
+
description: 'AIML <template> tags contain the response. They can include: <star/> (wildcards), <get/><set/> (variables), <random> (randomization), <srai> (recursion), and more.',
description: 'Updating conversation context for future <that> matching',
886
+
description: 'AIML stores the response as <that> for future pattern matching. Some patterns only match when the previous response meets certain criteria.',
0 commit comments