rasa-pro 3.15.0a1__py3-none-any.whl → 3.15.0.dev20251027__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/copilot/models.py +80 -28
- rasa/builder/evaluator/__init__.py +0 -0
- rasa/builder/evaluator/constants.py +15 -0
- rasa/builder/evaluator/copilot_executor.py +89 -0
- rasa/builder/evaluator/dataset/models.py +173 -0
- rasa/builder/evaluator/exceptions.py +4 -0
- rasa/builder/evaluator/response_classification/__init__.py +0 -0
- rasa/builder/evaluator/response_classification/constants.py +66 -0
- rasa/builder/evaluator/response_classification/evaluator.py +346 -0
- rasa/builder/evaluator/response_classification/langfuse_runner.py +463 -0
- rasa/builder/evaluator/response_classification/models.py +61 -0
- rasa/builder/evaluator/scripts/__init__.py +0 -0
- rasa/builder/evaluator/scripts/run_response_classification_evaluator.py +152 -0
- rasa/dialogue_understanding/generator/single_step/compact_llm_command_generator.py +15 -7
- rasa/dialogue_understanding/generator/single_step/search_ready_llm_command_generator.py +15 -8
- rasa/version.py +1 -1
- {rasa_pro-3.15.0a1.dist-info → rasa_pro-3.15.0.dev20251027.dist-info}/METADATA +1 -1
- {rasa_pro-3.15.0a1.dist-info → rasa_pro-3.15.0.dev20251027.dist-info}/RECORD +21 -9
- {rasa_pro-3.15.0a1.dist-info → rasa_pro-3.15.0.dev20251027.dist-info}/NOTICE +0 -0
- {rasa_pro-3.15.0a1.dist-info → rasa_pro-3.15.0.dev20251027.dist-info}/WHEEL +0 -0
- {rasa_pro-3.15.0a1.dist-info → rasa_pro-3.15.0.dev20251027.dist-info}/entry_points.txt +0 -0
|
@@ -168,6 +168,20 @@ class CompactLLMCommandGenerator(SingleStepBasedLLMCommandGenerator):
|
|
|
168
168
|
if prompt_template is not None:
|
|
169
169
|
return prompt_template
|
|
170
170
|
|
|
171
|
+
# Try to load the template from the given path or fallback to the default for
|
|
172
|
+
# the component.
|
|
173
|
+
custom_prompt_template_path = config.get(PROMPT_TEMPLATE_CONFIG_KEY)
|
|
174
|
+
if custom_prompt_template_path is not None:
|
|
175
|
+
custom_prompt_template = get_prompt_template(
|
|
176
|
+
custom_prompt_template_path,
|
|
177
|
+
None, # Default will be based on the model
|
|
178
|
+
log_source_component=log_source_component,
|
|
179
|
+
log_source_method=log_context,
|
|
180
|
+
)
|
|
181
|
+
if custom_prompt_template is not None:
|
|
182
|
+
return custom_prompt_template
|
|
183
|
+
|
|
184
|
+
# Fallback to the default prompt template based on the model.
|
|
171
185
|
default_command_prompt_template = get_default_prompt_template_based_on_model(
|
|
172
186
|
llm_config=config.get(LLM_CONFIG_KEY, {}) or {},
|
|
173
187
|
model_prompt_mapping=cls.get_model_prompt_mapper(),
|
|
@@ -177,10 +191,4 @@ class CompactLLMCommandGenerator(SingleStepBasedLLMCommandGenerator):
|
|
|
177
191
|
log_source_method=log_context,
|
|
178
192
|
)
|
|
179
193
|
|
|
180
|
-
|
|
181
|
-
return get_prompt_template(
|
|
182
|
-
config.get(PROMPT_TEMPLATE_CONFIG_KEY),
|
|
183
|
-
default_command_prompt_template,
|
|
184
|
-
log_source_component=log_source_component,
|
|
185
|
-
log_source_method=log_context,
|
|
186
|
-
)
|
|
194
|
+
return default_command_prompt_template
|
|
@@ -165,7 +165,20 @@ class SearchReadyLLMCommandGenerator(SingleStepBasedLLMCommandGenerator):
|
|
|
165
165
|
if prompt_template is not None:
|
|
166
166
|
return prompt_template
|
|
167
167
|
|
|
168
|
-
#
|
|
168
|
+
# Try to load the template from the given path or fallback to the default for
|
|
169
|
+
# the component.
|
|
170
|
+
custom_prompt_template_path = config.get(PROMPT_TEMPLATE_CONFIG_KEY)
|
|
171
|
+
if custom_prompt_template_path is not None:
|
|
172
|
+
custom_prompt_template = get_prompt_template(
|
|
173
|
+
custom_prompt_template_path,
|
|
174
|
+
None, # Default will be based on the model
|
|
175
|
+
log_source_component=log_source_component,
|
|
176
|
+
log_source_method=log_context,
|
|
177
|
+
)
|
|
178
|
+
if custom_prompt_template is not None:
|
|
179
|
+
return custom_prompt_template
|
|
180
|
+
|
|
181
|
+
# Fallback to the default prompt template based on the model.
|
|
169
182
|
default_command_prompt_template = get_default_prompt_template_based_on_model(
|
|
170
183
|
llm_config=config.get(LLM_CONFIG_KEY, {}) or {},
|
|
171
184
|
model_prompt_mapping=cls.get_model_prompt_mapper(),
|
|
@@ -175,10 +188,4 @@ class SearchReadyLLMCommandGenerator(SingleStepBasedLLMCommandGenerator):
|
|
|
175
188
|
log_source_method=log_context,
|
|
176
189
|
)
|
|
177
190
|
|
|
178
|
-
|
|
179
|
-
return get_prompt_template(
|
|
180
|
-
config.get(PROMPT_TEMPLATE_CONFIG_KEY),
|
|
181
|
-
default_command_prompt_template,
|
|
182
|
-
log_source_component=log_source_component,
|
|
183
|
-
log_source_method=log_context,
|
|
184
|
-
)
|
|
191
|
+
return default_command_prompt_template
|
rasa/version.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: rasa-pro
|
|
3
|
-
Version: 3.15.
|
|
3
|
+
Version: 3.15.0.dev20251027
|
|
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
|
|
@@ -36,7 +36,7 @@ rasa/builder/copilot/copilot.py,sha256=wKy-X3LBsX5juc1OuCdMjkbFR7gJRvYti0kvqB9Fh
|
|
|
36
36
|
rasa/builder/copilot/copilot_response_handler.py,sha256=teozaZFKR-XADdK2Nvkqu3wp48Bg1iqB7VT8rn5HcI4,20257
|
|
37
37
|
rasa/builder/copilot/copilot_templated_message_provider.py,sha256=7wU63Nxtn6akRgDswzkWBzbuR1Z48swnRxtAT0d5CoU,2408
|
|
38
38
|
rasa/builder/copilot/exceptions.py,sha256=6alRMH8pyyXyjfKjtfSdjP1LunztC_c6Xu1OtlaUC2E,663
|
|
39
|
-
rasa/builder/copilot/models.py,sha256=
|
|
39
|
+
rasa/builder/copilot/models.py,sha256=TpZtNv_xrCNqyC-kkdFwQb-LspSyKVYN_J5_PDBr_ss,30836
|
|
40
40
|
rasa/builder/copilot/prompts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
41
41
|
rasa/builder/copilot/prompts/copilot_system_prompt.jinja2,sha256=b-ztkMwDu1xGO1BaQNxJoOZpMTf7UDP-MTl5c9Gkps4,31647
|
|
42
42
|
rasa/builder/copilot/prompts/copilot_training_error_handler_prompt.jinja2,sha256=mo2Il7jd0bYcorceejqQSmHtK8-Y_PhFl_zFLCrJBa4,1833
|
|
@@ -52,6 +52,18 @@ rasa/builder/document_retrieval/inkeep-rag-response-schema.json,sha256=ePVbGo6u6
|
|
|
52
52
|
rasa/builder/document_retrieval/inkeep_document_retrieval.py,sha256=kWMJX02mbQk0lmVmtCEw1JuQb5RgBi32SKvS8Lw3FYo,9135
|
|
53
53
|
rasa/builder/document_retrieval/models.py,sha256=-kftLcgpUeW3oB9ojOHJKShmEhYkd68Qk5RWGZS8vUw,2001
|
|
54
54
|
rasa/builder/download.py,sha256=pXKP9-tzeMWyY7a7X-fHe-cxN8r92O6SWIBOXGO48I8,4045
|
|
55
|
+
rasa/builder/evaluator/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
56
|
+
rasa/builder/evaluator/constants.py,sha256=yJn0SOPPxu3fwgTMwdWDT_98kJzOhp4RwobdL1IXeG8,532
|
|
57
|
+
rasa/builder/evaluator/copilot_executor.py,sha256=pLxiAOMwf-Hx6HMd2pTu6gVRAP1RFgGpLaz6vmWjhO8,3019
|
|
58
|
+
rasa/builder/evaluator/dataset/models.py,sha256=sCpNvh_pvdjw-C3FdAwpVc7PY9EwOM4rOV9NkMV-7bg,5965
|
|
59
|
+
rasa/builder/evaluator/exceptions.py,sha256=4xJfL3Mla3AgQqP-UVc2RpTHkE3igi0ZfV5N0MiMKic,100
|
|
60
|
+
rasa/builder/evaluator/response_classification/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
61
|
+
rasa/builder/evaluator/response_classification/constants.py,sha256=OWYPmDyHi6fNbSoUyczOpoGxByyWUMgZaj7KvFLOGto,2498
|
|
62
|
+
rasa/builder/evaluator/response_classification/evaluator.py,sha256=mHVGwIluoQkPKjumNU5CFZkWKhVqRzhlXOwQ6zR379Y,14182
|
|
63
|
+
rasa/builder/evaluator/response_classification/langfuse_runner.py,sha256=nUtJslVXk9mKKEIkIadpmNqs7sI0uAK7iSjZpbT4KmI,18961
|
|
64
|
+
rasa/builder/evaluator/response_classification/models.py,sha256=1cfiOTf1u8PAXy5ELYU2iTJRSGUB5THAY-KNDAlYJZE,2386
|
|
65
|
+
rasa/builder/evaluator/scripts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
66
|
+
rasa/builder/evaluator/scripts/run_response_classification_evaluator.py,sha256=T4VJE8NU6_dCeBifqSSW9s8GcFvK2fwyl__YJow2dn0,4455
|
|
55
67
|
rasa/builder/exceptions.py,sha256=tnfufzfyFRJBhwHtzHpgTmpSN_7Z_C98xCNORPsD2KY,2477
|
|
56
68
|
rasa/builder/guardrails/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
|
57
69
|
rasa/builder/guardrails/clients.py,sha256=csjdVtMk2q-S39fnp74JPaE9lI3CcFm8ldQXREOfY6g,8967
|
|
@@ -712,8 +724,8 @@ rasa/dialogue_understanding/generator/prompt_templates/command_prompt_v2_gpt_4o_
|
|
|
712
724
|
rasa/dialogue_understanding/generator/prompt_templates/command_prompt_v3_claude_3_5_sonnet_20240620_template.jinja2,sha256=r8EKbUFCWV2_x8rZIAZgebEBkusdqokGQR65fiTE5a4,4863
|
|
713
725
|
rasa/dialogue_understanding/generator/prompt_templates/command_prompt_v3_gpt_4o_2024_11_20_template.jinja2,sha256=IHoD5g3YlZjMLCAjlNtp2NmFsyyio7L1LxLlDvXrZ7Y,4862
|
|
714
726
|
rasa/dialogue_understanding/generator/single_step/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
715
|
-
rasa/dialogue_understanding/generator/single_step/compact_llm_command_generator.py,sha256=
|
|
716
|
-
rasa/dialogue_understanding/generator/single_step/search_ready_llm_command_generator.py,sha256=
|
|
727
|
+
rasa/dialogue_understanding/generator/single_step/compact_llm_command_generator.py,sha256=pbSxy5bYTkk5XDiHtH6FvamIw0ZJGWbRJkiEM921CVU,7063
|
|
728
|
+
rasa/dialogue_understanding/generator/single_step/search_ready_llm_command_generator.py,sha256=kDGh6SowCFI34NHIBpIoXuJYAcol5OCsd0Z_cp1JjzI,6977
|
|
717
729
|
rasa/dialogue_understanding/generator/single_step/single_step_based_llm_command_generator.py,sha256=IsUp3Sf59HAogVsM7zgSbViusyH46Y35GiOzLuvYBmM,18086
|
|
718
730
|
rasa/dialogue_understanding/generator/single_step/single_step_llm_command_generator.py,sha256=_cT866aB8TuSqe6_ybPaSQVCY0l4qgX4lg6QZUUryo4,3494
|
|
719
731
|
rasa/dialogue_understanding/generator/utils.py,sha256=jxtb-AfngN59y2rHynqJDK80xM_yooEvr3aW1MWl6H0,2760
|
|
@@ -1161,9 +1173,9 @@ rasa/utils/train_utils.py,sha256=0_yuHkktrquqPVoDjsk5jSwl-gDThYmZOcrxQUJzJU0,225
|
|
|
1161
1173
|
rasa/utils/url_tools.py,sha256=dZ1HGkVdWTJB7zYEdwoDIrEuyX9HE5WsxKKFVsXBLE0,1218
|
|
1162
1174
|
rasa/utils/yaml.py,sha256=KjbZq5C94ZP7Jdsw8bYYF7HASI6K4-C_kdHfrnPLpSI,2000
|
|
1163
1175
|
rasa/validator.py,sha256=peO1q1z73a_JCsWj0rq92MfmGh5uvl7Pb2A9xFTKsb0,88309
|
|
1164
|
-
rasa/version.py,sha256=
|
|
1165
|
-
rasa_pro-3.15.
|
|
1166
|
-
rasa_pro-3.15.
|
|
1167
|
-
rasa_pro-3.15.
|
|
1168
|
-
rasa_pro-3.15.
|
|
1169
|
-
rasa_pro-3.15.
|
|
1176
|
+
rasa/version.py,sha256=czJGigEvz41-w91bIW5CNFzPrnLrsPCjvluCnRrM3IA,129
|
|
1177
|
+
rasa_pro-3.15.0.dev20251027.dist-info/METADATA,sha256=yWnr2gJZvX1dNVFVb_hyiHgGLY4SahVX-9fNR--rkG4,12639
|
|
1178
|
+
rasa_pro-3.15.0.dev20251027.dist-info/NOTICE,sha256=7HlBoMHJY9CL2GlYSfTQ-PZsVmLmVkYmMiPlTjhuCqA,218
|
|
1179
|
+
rasa_pro-3.15.0.dev20251027.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
|
|
1180
|
+
rasa_pro-3.15.0.dev20251027.dist-info/entry_points.txt,sha256=ckJ2SfEyTPgBqj_I6vm_tqY9dZF_LAPJZA335Xp0Q9U,43
|
|
1181
|
+
rasa_pro-3.15.0.dev20251027.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|