cwyodmodules 0.3.23__py3-none-any.whl → 0.3.25__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.
- cwyodmodules/batch/utilities/orchestrator/semantic_kernel_orchestrator.py +2 -1
- cwyodmodules/batch/utilities/tools/question_answer_tool.py +5 -1
- {cwyodmodules-0.3.23.dist-info → cwyodmodules-0.3.25.dist-info}/METADATA +1 -1
- {cwyodmodules-0.3.23.dist-info → cwyodmodules-0.3.25.dist-info}/RECORD +7 -7
- {cwyodmodules-0.3.23.dist-info → cwyodmodules-0.3.25.dist-info}/WHEEL +0 -0
- {cwyodmodules-0.3.23.dist-info → cwyodmodules-0.3.25.dist-info}/licenses/LICENSE +0 -0
- {cwyodmodules-0.3.23.dist-info → cwyodmodules-0.3.25.dist-info}/top_level.txt +0 -0
@@ -61,6 +61,7 @@ class SemanticKernelOrchestrator(OrchestratorBase):
|
|
61
61
|
system_message = self.env_helper.SEMENTIC_KERNEL_SYSTEM_PROMPT
|
62
62
|
language = self.env_helper.AZURE_MAIN_CHAT_LANGUAGE
|
63
63
|
if not system_message:
|
64
|
+
logger.info("No system message provided, using default")
|
64
65
|
# system_message = """You help employees to navigate only private information sources.
|
65
66
|
# You must prioritize the function call over your general knowledge for any question by calling the search_documents function.
|
66
67
|
# Call the text_processing function when the user request an operation on the current context, such as translate, summarize, or paraphrase. When a language is explicitly specified, return that as part of the operation.
|
@@ -97,7 +98,7 @@ class SemanticKernelOrchestrator(OrchestratorBase):
|
|
97
98
|
plugin=OutlookCalendarPlugin(question=user_message, chat_history=chat_history, user_info=user_info),
|
98
99
|
plugin_name="OutlookCalendar",
|
99
100
|
)
|
100
|
-
filters.append("
|
101
|
+
filters.append("OutlookCalendar")
|
101
102
|
settings = self.llm_helper.get_sk_service_settings(self.chat_service)
|
102
103
|
settings.function_call_behavior = FunctionCallBehavior.EnableFunctions(
|
103
104
|
filters={"included_plugins": filters}
|
@@ -325,7 +325,11 @@ class QuestionAnswerTool(AnsweringToolBase):
|
|
325
325
|
logger.debug(f"Answer format_answer_from_response: {answer}")
|
326
326
|
|
327
327
|
# Append document citations to the answer
|
328
|
-
citations = "".join([
|
328
|
+
citations = "".join([
|
329
|
+
f"[doc{i+1}]"
|
330
|
+
for i in range(len(source_documents))
|
331
|
+
if f"[doc{i+1}]" not in answer
|
332
|
+
])
|
329
333
|
answer_with_citations = f"{answer} {citations}"
|
330
334
|
# Generate Answer Object
|
331
335
|
clean_answer = Answer(
|
@@ -65,7 +65,7 @@ cwyodmodules/batch/utilities/orchestrator/open_ai_functions.py,sha256=JvIdN_hH_U
|
|
65
65
|
cwyodmodules/batch/utilities/orchestrator/orchestration_strategy.py,sha256=-MEPKVX3-hH6w0NRsGkQpCV86u1d7Qx1TWEKL09jj9A,755
|
66
66
|
cwyodmodules/batch/utilities/orchestrator/orchestrator_base.py,sha256=VFqApyua3zitmhmIQgMGk4709gzJkug1R3P0cZIKx5M,6298
|
67
67
|
cwyodmodules/batch/utilities/orchestrator/prompt_flow.py,sha256=xht-Sd6aJAH_OtzQ1LCo8Lltr--Pf_0uqPpi_HQviBI,7345
|
68
|
-
cwyodmodules/batch/utilities/orchestrator/semantic_kernel_orchestrator.py,sha256=
|
68
|
+
cwyodmodules/batch/utilities/orchestrator/semantic_kernel_orchestrator.py,sha256=SQpPBx0M63b008-Kl8Sfj8vX20ddGddgg76Y8FuiAsg,9932
|
69
69
|
cwyodmodules/batch/utilities/orchestrator/strategies.py,sha256=oVatdT6Gc4qtX773M9a8Izm2UNDYXmYP__8wJYdy4W8,1384
|
70
70
|
cwyodmodules/batch/utilities/parser/__init__.py,sha256=ZGBxm1TX6cQAnFkMtKN6C2FwnNv1MmwNdyo3LWRlKlo,236
|
71
71
|
cwyodmodules/batch/utilities/parser/output_parser_tool.py,sha256=ARKwshTeZlUlnWYreaUOVol6q9L1MAKKCT8CO5OKxTw,5831
|
@@ -86,7 +86,7 @@ cwyodmodules/batch/utilities/tools/answer_processing_base.py,sha256=N3Dz7HfN-zl0
|
|
86
86
|
cwyodmodules/batch/utilities/tools/answering_tool_base.py,sha256=aN2ND5Ud_1ZlIPfhLRrOe_m4MUf_SaXvO6q7GcbGiU8,348
|
87
87
|
cwyodmodules/batch/utilities/tools/content_safety_checker.py,sha256=UuSleGcgH1NzGLsQVU5dONgQSARt7jmhm2WATdHkHq8,4863
|
88
88
|
cwyodmodules/batch/utilities/tools/post_prompt_tool.py,sha256=rhRU18IDfR0Bfu-gdkrRFwOXxNoKm2NY8NoikmjXYRI,2932
|
89
|
-
cwyodmodules/batch/utilities/tools/question_answer_tool.py,sha256=
|
89
|
+
cwyodmodules/batch/utilities/tools/question_answer_tool.py,sha256=JF3XPTEk6FGebLFcBUhT1nNIt_MXGNZmwPYah4cG4Ak,13148
|
90
90
|
cwyodmodules/batch/utilities/tools/text_processing_tool.py,sha256=KSKo8Gm6QgQ5TkoISE4eAfiGOyChN4tCV4Qy5eh0_wQ,1997
|
91
91
|
cwyodmodules/graphrag/__init__.py,sha256=O5fi4Q3RC9Gt8ItNZGV1HjyIJvEz7grYXTFMmUWstxw,111
|
92
92
|
cwyodmodules/graphrag/config.py,sha256=TvG45dezHkqgZzWnPxhpyWciIiKOrD_3JQ3APkoD6Hw,1525
|
@@ -108,8 +108,8 @@ cwyodmodules/graphrag/query/generate.py,sha256=xBnZs2U9xFWtPk4AfAZgYKbHdcxNcIO6Q
|
|
108
108
|
cwyodmodules/graphrag/query/graph_search.py,sha256=95h3ecSWx4864XgKABtG0fh3Nk8HkqJVzoCrO8daJ-Y,7724
|
109
109
|
cwyodmodules/graphrag/query/types.py,sha256=1Iq1dp4I4a56_cuFjOZ0NTgd0A2_MpVFznp_czgt6cI,617
|
110
110
|
cwyodmodules/graphrag/query/vector_search.py,sha256=9Gwu9LPjtoAYUU8WKqCvbCHAIg3dpk71reoYd1scLnQ,1807
|
111
|
-
cwyodmodules-0.3.
|
112
|
-
cwyodmodules-0.3.
|
113
|
-
cwyodmodules-0.3.
|
114
|
-
cwyodmodules-0.3.
|
115
|
-
cwyodmodules-0.3.
|
111
|
+
cwyodmodules-0.3.25.dist-info/licenses/LICENSE,sha256=UqBDTipijsSW2ZSOXyTZnMsXmLoEHTgNEM0tL4g-Sso,1150
|
112
|
+
cwyodmodules-0.3.25.dist-info/METADATA,sha256=o6pQUvJey5ak5ur1QqV9mmwqh2DNYXVC0mmlg7z5QQY,1969
|
113
|
+
cwyodmodules-0.3.25.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
114
|
+
cwyodmodules-0.3.25.dist-info/top_level.txt,sha256=99RENLbkdRX-qpJvsxZ5AfmTL5s6shSaKOWYpz1vwzg,13
|
115
|
+
cwyodmodules-0.3.25.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|