rasa-pro 3.13.1a8__py3-none-any.whl → 3.13.1a10__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of rasa-pro might be problematic. Click here for more details.
- rasa/builder/training_service.py +2 -0
- rasa/builder/validation_service.py +17 -3
- rasa/core/policies/enterprise_search_policy.py +6 -7
- rasa/version.py +1 -1
- {rasa_pro-3.13.1a8.dist-info → rasa_pro-3.13.1a10.dist-info}/METADATA +1 -1
- {rasa_pro-3.13.1a8.dist-info → rasa_pro-3.13.1a10.dist-info}/RECORD +9 -9
- {rasa_pro-3.13.1a8.dist-info → rasa_pro-3.13.1a10.dist-info}/NOTICE +0 -0
- {rasa_pro-3.13.1a8.dist-info → rasa_pro-3.13.1a10.dist-info}/WHEEL +0 -0
- {rasa_pro-3.13.1a8.dist-info → rasa_pro-3.13.1a10.dist-info}/entry_points.txt +0 -0
rasa/builder/training_service.py
CHANGED
|
@@ -50,6 +50,8 @@ async def train_and_load_agent(importer: TrainingDataImporter) -> agent.Agent:
|
|
|
50
50
|
raise
|
|
51
51
|
except Exception as e:
|
|
52
52
|
raise TrainingError(f"Unexpected error during training: {e}")
|
|
53
|
+
except SystemExit as e:
|
|
54
|
+
raise TrainingError(f"SystemExit during training: {e}")
|
|
53
55
|
|
|
54
56
|
|
|
55
57
|
async def _setup_endpoints():
|
|
@@ -70,10 +70,24 @@ async def validate_project(importer: TrainingDataImporter) -> Optional[str]:
|
|
|
70
70
|
|
|
71
71
|
except ValidationError:
|
|
72
72
|
raise
|
|
73
|
+
|
|
73
74
|
except Exception as e:
|
|
74
75
|
error_msg = f"Validation failed with exception: {e}"
|
|
76
|
+
|
|
77
|
+
error_logs = [log for log in cap_logs if log.get("log_level") != "debug"]
|
|
78
|
+
|
|
79
|
+
structlogger.error(
|
|
80
|
+
"validation.failed.exception", error=str(e), validation_logs=error_logs
|
|
81
|
+
)
|
|
82
|
+
raise ValidationError(error_msg, validation_logs=error_logs)
|
|
83
|
+
|
|
84
|
+
except SystemExit as e:
|
|
85
|
+
error_logs = [log for log in cap_logs if log.get("log_level") != "debug"]
|
|
86
|
+
|
|
75
87
|
structlogger.error(
|
|
76
|
-
"validation.failed.
|
|
77
|
-
|
|
88
|
+
"validation.failed.sys_exit",
|
|
89
|
+
error_logs=error_logs,
|
|
90
|
+
)
|
|
91
|
+
raise ValidationError(
|
|
92
|
+
f"SystemExit during validation: {e}", validation_logs=error_logs
|
|
78
93
|
)
|
|
79
|
-
raise ValidationError(error_msg)
|
|
@@ -784,13 +784,15 @@ class EnterpriseSearchPolicy(LLMHealthCheckMixin, EmbeddingsHealthCheckMixin, Po
|
|
|
784
784
|
if not os.path.exists(docs_folder) or not os.path.isdir(docs_folder):
|
|
785
785
|
error_message = (
|
|
786
786
|
f"Document source directory does not exist or is not a "
|
|
787
|
-
f"directory: '{docs_folder}'. "
|
|
787
|
+
f"directory: '{os.path.abspath(docs_folder)}'. "
|
|
788
788
|
"Please specify a valid path to the documents source directory in the "
|
|
789
789
|
"vector_store configuration."
|
|
790
790
|
)
|
|
791
791
|
structlogger.error(
|
|
792
792
|
"enterprise_search_policy.train.faiss.invalid_source_directory",
|
|
793
793
|
message=error_message,
|
|
794
|
+
docs_folder={os.path.abspath(docs_folder)},
|
|
795
|
+
configuration_value=docs_folder,
|
|
794
796
|
)
|
|
795
797
|
print_error_and_exit(error_message)
|
|
796
798
|
|
|
@@ -1133,8 +1135,7 @@ class EnterpriseSearchPolicy(LLMHealthCheckMixin, EmbeddingsHealthCheckMixin, Po
|
|
|
1133
1135
|
embeddings_config: Dict[Text, Any],
|
|
1134
1136
|
log_source_method: str,
|
|
1135
1137
|
) -> None:
|
|
1136
|
-
"""
|
|
1137
|
-
Perform the health checks using resolved LLM and embeddings configurations.
|
|
1138
|
+
"""Perform the health checks using resolved LLM and embeddings configurations.
|
|
1138
1139
|
Resolved means the configuration is either:
|
|
1139
1140
|
- A reference to a model group that has already been expanded into
|
|
1140
1141
|
its corresponding configuration using the information from
|
|
@@ -1163,8 +1164,7 @@ class EnterpriseSearchPolicy(LLMHealthCheckMixin, EmbeddingsHealthCheckMixin, Po
|
|
|
1163
1164
|
|
|
1164
1165
|
@classmethod
|
|
1165
1166
|
def get_system_default_prompt_based_on_config(cls, config: Dict[str, Any]) -> str:
|
|
1166
|
-
"""
|
|
1167
|
-
Resolves the default prompt template for Enterprise Search Policy based on
|
|
1167
|
+
"""Resolves the default prompt template for Enterprise Search Policy based on
|
|
1168
1168
|
the component's configuration.
|
|
1169
1169
|
|
|
1170
1170
|
- The old prompt is selected when both citation and relevancy check are either
|
|
@@ -1195,8 +1195,7 @@ class EnterpriseSearchPolicy(LLMHealthCheckMixin, EmbeddingsHealthCheckMixin, Po
|
|
|
1195
1195
|
relevancy_check_enabled: bool,
|
|
1196
1196
|
citation_enabled: bool,
|
|
1197
1197
|
) -> str:
|
|
1198
|
-
"""
|
|
1199
|
-
Returns the appropriate default prompt template based on the feature flags.
|
|
1198
|
+
"""Returns the appropriate default prompt template based on the feature flags.
|
|
1200
1199
|
|
|
1201
1200
|
The selection follows this priority:
|
|
1202
1201
|
1. If relevancy check is enabled, return the prompt that includes both relevancy
|
rasa/version.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: rasa-pro
|
|
3
|
-
Version: 3.13.
|
|
3
|
+
Version: 3.13.1a10
|
|
4
4
|
Summary: State-of-the-art open-core Conversational AI framework for Enterprises that natively leverages generative AI for effortless assistant development.
|
|
5
5
|
Keywords: nlp,machine-learning,machine-learning-library,bot,bots,botkit,rasa conversational-agents,conversational-ai,chatbot,chatbot-framework,bot-framework
|
|
6
6
|
Author: Rasa Technologies GmbH
|
|
@@ -17,8 +17,8 @@ rasa/builder/project_generator.py,sha256=ZWsL3oqAIYIqJBJ8GJsLmMotgbF0ZOOMO1dQSz4
|
|
|
17
17
|
rasa/builder/scrape_rasa_docs.py,sha256=HukkTCIh1rMCE8D_EtXGHy0aHtFBVrVTT_6Wpex3XQM,2428
|
|
18
18
|
rasa/builder/service.py,sha256=692nyowd3RkZfrKqfmw_MGorDU6F5tsTFxGDO8768A4,16512
|
|
19
19
|
rasa/builder/skill_to_bot_prompt.jinja2,sha256=h2Fgoh9k3XinN0blEEqMuOWuvwXxJifP3GJs-GczgBU,5530
|
|
20
|
-
rasa/builder/training_service.py,sha256=
|
|
21
|
-
rasa/builder/validation_service.py,sha256=
|
|
20
|
+
rasa/builder/training_service.py,sha256=YSVaf6x9WuddrOruJ5BmacnRoypQVVuKZbvZq_c6xEE,3849
|
|
21
|
+
rasa/builder/validation_service.py,sha256=rKMgbG8Jyv8WMnTIXOMd7VuGWAYicrL9wDJ22BJXZHE,2765
|
|
22
22
|
rasa/cli/__init__.py,sha256=eO5vp9rFCANtbTVU-pxN3iMBKw4p9WRcgzytt9MzinY,115
|
|
23
23
|
rasa/cli/arguments/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
24
24
|
rasa/cli/arguments/data.py,sha256=e3mYapaRIczM74P5genuXy1ORqIR4x20khQXUvy8JLA,3040
|
|
@@ -537,7 +537,7 @@ rasa/core/nlg/translate.py,sha256=PBMTbIgdkhx8rhzqv6h0u5r9jqdfiVIh7u0qb363sJA,18
|
|
|
537
537
|
rasa/core/persistor.py,sha256=7LCZHAwCM-xrUI38aaJ5dkxJvLdJXWI1TEUKsBo4_EE,21295
|
|
538
538
|
rasa/core/policies/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
539
539
|
rasa/core/policies/ensemble.py,sha256=XoHxU0jcb_io_LBOpjJffylzqtGEB7CH9ivhRyO8pDc,12960
|
|
540
|
-
rasa/core/policies/enterprise_search_policy.py,sha256=
|
|
540
|
+
rasa/core/policies/enterprise_search_policy.py,sha256=El7aYQCx9C2LQdMp9U5VJoBPXPL-LPe_0CD8Zf4Q7Q4,46971
|
|
541
541
|
rasa/core/policies/enterprise_search_policy_config.py,sha256=rTIGBrfGfe_lvsYQW1cU20tza07p_-oxFfjXhw7-phc,8644
|
|
542
542
|
rasa/core/policies/enterprise_search_prompt_template.jinja2,sha256=dCS_seyBGxMQoMsOjjvPp0dd31OSzZCJSZeev1FJK5Q,1187
|
|
543
543
|
rasa/core/policies/enterprise_search_prompt_with_citation_template.jinja2,sha256=va9rpP97dN3PKoJZOVfyuISt3cPBlb10Pqyz25RwO_Q,3294
|
|
@@ -1064,9 +1064,9 @@ rasa/utils/train_utils.py,sha256=ClJx-6x3-h3Vt6mskacgkcCUJTMXjFPe3zAcy_DfmaU,212
|
|
|
1064
1064
|
rasa/utils/url_tools.py,sha256=dZ1HGkVdWTJB7zYEdwoDIrEuyX9HE5WsxKKFVsXBLE0,1218
|
|
1065
1065
|
rasa/utils/yaml.py,sha256=KjbZq5C94ZP7Jdsw8bYYF7HASI6K4-C_kdHfrnPLpSI,2000
|
|
1066
1066
|
rasa/validator.py,sha256=IRhLfcgCpps0wSpokOvUGNaY8t8GsmeSmPOUVRKeOeE,83087
|
|
1067
|
-
rasa/version.py,sha256=
|
|
1068
|
-
rasa_pro-3.13.
|
|
1069
|
-
rasa_pro-3.13.
|
|
1070
|
-
rasa_pro-3.13.
|
|
1071
|
-
rasa_pro-3.13.
|
|
1072
|
-
rasa_pro-3.13.
|
|
1067
|
+
rasa/version.py,sha256=9Z2XfPkNPb6BhqWKcPXWK-BtJovVKIMw_K9DJFhrGW4,120
|
|
1068
|
+
rasa_pro-3.13.1a10.dist-info/METADATA,sha256=ybV7_2yQmpXx9Q3hOq_glwDSkExVYFIBsDMwGkAy41I,10556
|
|
1069
|
+
rasa_pro-3.13.1a10.dist-info/NOTICE,sha256=7HlBoMHJY9CL2GlYSfTQ-PZsVmLmVkYmMiPlTjhuCqA,218
|
|
1070
|
+
rasa_pro-3.13.1a10.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
|
|
1071
|
+
rasa_pro-3.13.1a10.dist-info/entry_points.txt,sha256=ckJ2SfEyTPgBqj_I6vm_tqY9dZF_LAPJZA335Xp0Q9U,43
|
|
1072
|
+
rasa_pro-3.13.1a10.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|