This is an automated email from the ASF dual-hosted git repository.

sergeykamov pushed a commit to branch NLPCRAFT-513-STM
in repository https://gitbox.apache.org/repos/asf/incubator-nlpcraft-website.git

commit 006a86fbff252342e3c95eac6c7521a6d96d8cf6
Author: Sergey Kamov <[email protected]>
AuthorDate: Sun Jan 22 10:48:45 2023 +0400

    Page fixes.
---
 short-term-memory.html | 20 +++++++++-----------
 1 file changed, 9 insertions(+), 11 deletions(-)

diff --git a/short-term-memory.html b/short-term-memory.html
index 72cc381..c63f30c 100644
--- a/short-term-memory.html
+++ b/short-term-memory.html
@@ -219,7 +219,7 @@ id: short_term_memory
     <section id="stm">
         <h2 class="section-title">Short-Term Memory <a href="#"><i 
class="top-link fas fa-fw fa-angle-double-up"></i></a></h2>
         <p>
-            The short-term memory is exactly that... a memory that keeps only 
small amount of recently used information
+            The short-term memory is exactly that - a memory that keeps only 
small amount of recently used information
             and that evicts its contents after a short period of inactivity.
         </p>
         <p>
@@ -366,14 +366,16 @@ id: short_term_memory
             have the following 4 intents:
         </p>
         <ul>
-            <li><code>intent=sale term={# == 'sale'}</code></li>
-            <li><code>intent=best_sale_person term={# == 'sale'} term={# == 
best_employee}</code></li>
-            <li><code>intent=buy term={# == 'buy'}</code></li>
-            <li><code>intent=buy_best_person term={# == 'buy'} term={# == 
best_employee}</code></li>
+            <li><code>intent=sale term~{# == 'sale'}</code></li>
+            <li><code>intent=best_sale_person term~{# == 'sale'} term~{# == 
'best_employee'}</code></li>
+            <li><code>intent=buy term~{# == 'buy'}</code></li>
+            <li><code>intent=buy_best_person term~{# == 'buy'} term~{# == 
'best_employee'}</code></li>
         </ul>
         <p>
-            (this is actual <a href="/intent-matching.html">Intent Definition 
Language</a> (IDL) used by NLPCraft -
-            <code>term</code> here is basically what's often referred to as a 
slot in other systems).
+            This is actual <a href="/intent-matching.html">Intent Definition 
Language</a> (IDL) used by NLPCraft -
+            <code>term</code> here is basically what's often referred to as a 
slot in other systems.
+            Also note that the symbol <code>~</code> is used in IDL when the 
term can be obtained from current request or STM.
+            Use <code>=</code> symbol instead if defined term can be obtained 
from the current request only.
         </p>
         <p>
             We also need to properly configure groups for our entities (names 
of the groups are arbitrary):
@@ -447,10 +449,6 @@ id: short_term_memory
             which the second question becomes clear. That sentence is an 
explicit context switch which you can also detect
             in the NLPCraft model.
         </p>
-        <p>
-            In NLPCraft you can also explicitly reset conversation context 
through
-            {% scaladoc NCConversation %} interface or by switching the model 
on the request.
-        </p>
     </section>
 </div>
 <div class="col-md-2 third-column">

Reply via email to