You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nlpcraft.apache.org by ar...@apache.org on 2021/06/25 23:20:41 UTC
[incubator-nlpcraft] 01/03: Update NCCliCommands.scala
This is an automated email from the ASF dual-hosted git repository.
aradzinski pushed a commit to branch NLPCRAFT-344
in repository https://gitbox.apache.org/repos/asf/incubator-nlpcraft.git
commit 208c4ae81d78c767aba91600cf92eb4fc2b50404
Author: Aaron Radzinski <ar...@datalingvo.com>
AuthorDate: Fri Jun 25 15:49:07 2021 -0700
Update NCCliCommands.scala
---
.../nlpcraft/model/tools/cmdline/NCCliCommands.scala | 14 ++++++++++----
1 file changed, 10 insertions(+), 4 deletions(-)
diff --git a/nlpcraft/src/main/scala/org/apache/nlpcraft/model/tools/cmdline/NCCliCommands.scala b/nlpcraft/src/main/scala/org/apache/nlpcraft/model/tools/cmdline/NCCliCommands.scala
index e0760d8..8235e5b 100644
--- a/nlpcraft/src/main/scala/org/apache/nlpcraft/model/tools/cmdline/NCCliCommands.scala
+++ b/nlpcraft/src/main/scala/org/apache/nlpcraft/model/tools/cmdline/NCCliCommands.scala
@@ -297,8 +297,11 @@ private [cmdline] object NCCliCommands {
id = "mdlId",
names = Seq("--mdlId", "-m"),
value = Some("model.id"),
+ optional = true,
desc =
- s"ID of the data model to send the request to. " +
+ s"ID of the data model to send the request to. Note that this is optional ONLY if the connected " +
+ s"probe has only one model deployed - which will be used by default. If the probe has more " +
+ s"than one model deployed - this parameter is mandatory." +
s"In REPL mode, hit ${rv(" Tab ")} to see auto-suggestion for possible model IDs."
),
Parameter(
@@ -325,7 +328,8 @@ private [cmdline] object NCCliCommands {
examples = Seq(
Example(
usage = Seq(
- s"""> ask --txt="User request" --mdlId=my.model.id"""
+ s"""> ask --txt="User request" --mdlId=my.model.id""",
+ s"""> ask --txt="User text""""
),
desc =
s"Issues ${y("'ask/sync'")} REST call with given text and model ID."
@@ -555,10 +559,12 @@ private [cmdline] object NCCliCommands {
id = "mdlId",
names = Seq("--mdlId", "-m"),
value = Some("model.id"),
+ optional = true,
desc =
s"ID of the model to run synonym suggestion on. " +
- s"In REPL mode, hit ${rv(" Tab ")} to see auto-suggestion for possible model IDs. " +
- s"Note that the probe hosting this model must be connected to the server."
+ s"In REPL mode, hit ${rv(" Tab ")} to see auto-suggestion for possible model IDs. Note that " +
+ s"this is optional ONLY if the connected probe has only one model deployed - which will be " +
+ s"used by default. If the probe has more than one model deployed - this parameter is mandatory."
),
Parameter(
id = "minScore",