cwyodmodules 0.3.38__py3-none-any.whl → 0.3.41__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/api/chat_history.py +1 -1
- cwyodmodules/batch/utilities/chat_history/auth_utils.py +1 -1
- cwyodmodules/batch/utilities/chat_history/cosmosdb.py +1 -1
- cwyodmodules/batch/utilities/chat_history/postgresdbservice.py +1 -1
- cwyodmodules/batch/utilities/common/source_document.py +1 -1
- cwyodmodules/batch/utilities/document_chunking/fixed_size_overlap.py +1 -1
- cwyodmodules/batch/utilities/document_chunking/layout.py +1 -1
- cwyodmodules/batch/utilities/document_chunking/page.py +1 -1
- cwyodmodules/batch/utilities/document_loading/read.py +1 -1
- cwyodmodules/batch/utilities/helpers/azure_computer_vision_client.py +1 -1
- cwyodmodules/batch/utilities/helpers/azure_form_recognizer_helper.py +1 -1
- cwyodmodules/batch/utilities/helpers/azure_postgres_helper.py +1 -1
- cwyodmodules/batch/utilities/helpers/azure_postgres_helper_light_rag.py +1 -1
- cwyodmodules/batch/utilities/helpers/azure_search_helper.py +1 -1
- cwyodmodules/batch/utilities/helpers/config/config_helper.py +1 -1
- cwyodmodules/batch/utilities/helpers/embedders/integrated_vectorization_embedder.py +1 -1
- cwyodmodules/batch/utilities/helpers/embedders/postgres_embedder.py +1 -1
- cwyodmodules/batch/utilities/helpers/embedders/push_embedder.py +1 -1
- cwyodmodules/batch/utilities/helpers/env_helper.py +1 -1
- cwyodmodules/batch/utilities/helpers/lightrag_helper.py +1 -1
- cwyodmodules/batch/utilities/helpers/llm_helper.py +1 -1
- cwyodmodules/batch/utilities/helpers/secret_helper.py +1 -1
- cwyodmodules/batch/utilities/integrated_vectorization/azure_search_index.py +1 -1
- cwyodmodules/batch/utilities/integrated_vectorization/azure_search_indexer.py +1 -1
- cwyodmodules/batch/utilities/integrated_vectorization/azure_search_skillset.py +1 -1
- cwyodmodules/batch/utilities/orchestrator/lang_chain_agent.py +1 -1
- cwyodmodules/batch/utilities/orchestrator/open_ai_functions.py +1 -1
- cwyodmodules/batch/utilities/orchestrator/orchestrator_base.py +1 -1
- cwyodmodules/batch/utilities/orchestrator/prompt_flow.py +1 -1
- cwyodmodules/batch/utilities/orchestrator/semantic_kernel_orchestrator.py +1 -1
- cwyodmodules/batch/utilities/parser/output_parser_tool.py +1 -1
- cwyodmodules/batch/utilities/plugins/outlook_calendar_plugin.py +1 -1
- cwyodmodules/batch/utilities/search/azure_search_handler.py +1 -1
- cwyodmodules/batch/utilities/search/azure_search_handler_light_rag.py +1 -1
- cwyodmodules/batch/utilities/search/integrated_vectorization_search_handler.py +1 -1
- cwyodmodules/batch/utilities/search/lightrag_search_handler.py +1 -1
- cwyodmodules/batch/utilities/search/postgres_search_handler.py +1 -1
- cwyodmodules/batch/utilities/search/postgres_search_handler_light_rag.py +1 -1
- cwyodmodules/batch/utilities/search/search.py +1 -1
- cwyodmodules/batch/utilities/tools/content_safety_checker.py +1 -1
- cwyodmodules/batch/utilities/tools/post_prompt_tool.py +1 -1
- cwyodmodules/batch/utilities/tools/question_answer_tool.py +2 -1
- cwyodmodules/batch/utilities/tools/text_processing_tool.py +1 -1
- cwyodmodules/mgmt_config.py +132 -0
- {cwyodmodules-0.3.38.dist-info → cwyodmodules-0.3.41.dist-info}/METADATA +2 -2
- {cwyodmodules-0.3.38.dist-info → cwyodmodules-0.3.41.dist-info}/RECORD +49 -49
- cwyodmodules/logging_config.py +0 -25
- {cwyodmodules-0.3.38.dist-info → cwyodmodules-0.3.41.dist-info}/WHEEL +0 -0
- {cwyodmodules-0.3.38.dist-info → cwyodmodules-0.3.41.dist-info}/licenses/LICENSE +0 -0
- {cwyodmodules-0.3.38.dist-info → cwyodmodules-0.3.41.dist-info}/top_level.txt +0 -0
cwyodmodules/api/chat_history.py
CHANGED
@@ -10,7 +10,7 @@ from ..batch.utilities.chat_history.auth_utils import (
|
|
10
10
|
from ..batch.utilities.helpers.config.config_helper import ConfigHelper
|
11
11
|
from ..batch.utilities.helpers.env_helper import EnvHelper
|
12
12
|
from ..batch.utilities.chat_history.database_factory import DatabaseFactory
|
13
|
-
from
|
13
|
+
from mgmt_config import logger
|
14
14
|
# load_dotenv()
|
15
15
|
|
16
16
|
bp_chat_history_response = Blueprint("chat_history", __name__)
|
@@ -2,7 +2,7 @@ import base64
|
|
2
2
|
import json
|
3
3
|
|
4
4
|
from ...utilities.helpers.env_helper import EnvHelper
|
5
|
-
from
|
5
|
+
from mgmt_config import logger
|
6
6
|
env_helper: EnvHelper = EnvHelper()
|
7
7
|
log_execution = env_helper.LOG_EXECUTION
|
8
8
|
log_args = env_helper.LOG_ARGS
|
@@ -4,7 +4,7 @@ from azure.cosmos import exceptions
|
|
4
4
|
|
5
5
|
from .database_client_base import DatabaseClientBase
|
6
6
|
from ...utilities.helpers.env_helper import EnvHelper
|
7
|
-
from
|
7
|
+
from mgmt_config import logger
|
8
8
|
env_helper: EnvHelper = EnvHelper()
|
9
9
|
log_execution = env_helper.LOG_EXECUTION
|
10
10
|
log_args = env_helper.LOG_ARGS
|
@@ -4,7 +4,7 @@ from ..helpers.azure_identity_helper import AzureIdentityHelper
|
|
4
4
|
from .database_client_base import DatabaseClientBase
|
5
5
|
|
6
6
|
from ...utilities.helpers.env_helper import EnvHelper
|
7
|
-
from
|
7
|
+
from mgmt_config import logger
|
8
8
|
env_helper: EnvHelper = EnvHelper()
|
9
9
|
log_execution = env_helper.LOG_EXECUTION
|
10
10
|
log_args = env_helper.LOG_ARGS
|
@@ -5,7 +5,7 @@ from urllib.parse import urlparse, quote
|
|
5
5
|
from ..helpers.azure_blob_storage_client import AzureBlobStorageClient
|
6
6
|
|
7
7
|
from ...utilities.helpers.env_helper import EnvHelper
|
8
|
-
from
|
8
|
+
from mgmt_config import logger
|
9
9
|
env_helper: EnvHelper = EnvHelper()
|
10
10
|
log_execution = env_helper.LOG_EXECUTION
|
11
11
|
log_args = env_helper.LOG_ARGS
|
@@ -4,7 +4,7 @@ from langchain.text_splitter import TokenTextSplitter
|
|
4
4
|
from .chunking_strategy import ChunkingSettings
|
5
5
|
from ..common.source_document import SourceDocument
|
6
6
|
from ...utilities.helpers.env_helper import EnvHelper
|
7
|
-
from
|
7
|
+
from mgmt_config import logger
|
8
8
|
env_helper: EnvHelper = EnvHelper()
|
9
9
|
log_execution = env_helper.LOG_EXECUTION
|
10
10
|
log_args = env_helper.LOG_ARGS
|
@@ -4,7 +4,7 @@ from langchain.text_splitter import MarkdownTextSplitter
|
|
4
4
|
from .chunking_strategy import ChunkingSettings
|
5
5
|
from ..common.source_document import SourceDocument
|
6
6
|
from ...utilities.helpers.env_helper import EnvHelper
|
7
|
-
from
|
7
|
+
from mgmt_config import logger
|
8
8
|
env_helper: EnvHelper = EnvHelper()
|
9
9
|
log_execution = env_helper.LOG_EXECUTION
|
10
10
|
log_args = env_helper.LOG_ARGS
|
@@ -4,7 +4,7 @@ from langchain.text_splitter import MarkdownTextSplitter
|
|
4
4
|
from .chunking_strategy import ChunkingSettings
|
5
5
|
from ..common.source_document import SourceDocument
|
6
6
|
from ...utilities.helpers.env_helper import EnvHelper
|
7
|
-
from
|
7
|
+
from mgmt_config import logger
|
8
8
|
env_helper: EnvHelper = EnvHelper()
|
9
9
|
log_execution = env_helper.LOG_EXECUTION
|
10
10
|
log_args = env_helper.LOG_ARGS
|
@@ -4,7 +4,7 @@ from ..helpers.azure_form_recognizer_helper import AzureFormRecognizerClient
|
|
4
4
|
from ..common.source_document import SourceDocument
|
5
5
|
|
6
6
|
from ...utilities.helpers.env_helper import EnvHelper
|
7
|
-
from
|
7
|
+
from mgmt_config import logger
|
8
8
|
env_helper: EnvHelper = EnvHelper()
|
9
9
|
log_execution = env_helper.LOG_EXECUTION
|
10
10
|
log_args = env_helper.LOG_ARGS
|
@@ -5,7 +5,7 @@ import requests
|
|
5
5
|
from requests import Response
|
6
6
|
|
7
7
|
from .env_helper import EnvHelper
|
8
|
-
from
|
8
|
+
from mgmt_config import logger
|
9
9
|
env_helper: EnvHelper = EnvHelper()
|
10
10
|
log_execution = env_helper.LOG_EXECUTION
|
11
11
|
log_args = env_helper.LOG_ARGS
|
@@ -4,7 +4,7 @@ from ..helpers.azure_identity_helper import AzureIdentityHelper
|
|
4
4
|
from .llm_helper import LLMHelper
|
5
5
|
from .env_helper import EnvHelper
|
6
6
|
|
7
|
-
from
|
7
|
+
from mgmt_config import logger
|
8
8
|
env_helper: EnvHelper = EnvHelper()
|
9
9
|
log_execution = env_helper.LOG_EXECUTION
|
10
10
|
log_args = env_helper.LOG_ARGS
|
@@ -5,7 +5,7 @@ from .env_helper import EnvHelper
|
|
5
5
|
from .lightrag_helper import LightRAGHelper
|
6
6
|
from ..helpers.azure_identity_helper import AzureIdentityHelper
|
7
7
|
|
8
|
-
from
|
8
|
+
from mgmt_config import logger
|
9
9
|
env_helper: EnvHelper = EnvHelper()
|
10
10
|
log_execution = env_helper.LOG_EXECUTION
|
11
11
|
log_args = env_helper.LOG_ARGS
|
@@ -28,7 +28,7 @@ from azure.search.documents.indexes.models import (
|
|
28
28
|
from ..helpers.azure_computer_vision_client import AzureComputerVisionClient
|
29
29
|
from ..helpers.llm_helper import LLMHelper
|
30
30
|
from ..helpers.env_helper import EnvHelper
|
31
|
-
from
|
31
|
+
from mgmt_config import logger
|
32
32
|
env_helper: EnvHelper = EnvHelper()
|
33
33
|
log_execution = env_helper.LOG_EXECUTION
|
34
34
|
log_args = env_helper.LOG_ARGS
|
@@ -18,7 +18,7 @@ CONFIG_CONTAINER_NAME = "config"
|
|
18
18
|
CONFIG_FILE_NAME = "active.json"
|
19
19
|
ADVANCED_IMAGE_PROCESSING_FILE_TYPES = ["jpeg", "jpg", "png", "tiff", "bmp"]
|
20
20
|
|
21
|
-
from
|
21
|
+
from mgmt_config import logger
|
22
22
|
env_helper: EnvHelper = EnvHelper()
|
23
23
|
log_execution = env_helper.LOG_EXECUTION
|
24
24
|
log_args = env_helper.LOG_ARGS
|
@@ -8,7 +8,7 @@ from ...integrated_vectorization.azure_search_datasource import AzureSearchDatas
|
|
8
8
|
from ...integrated_vectorization.azure_search_skillset import AzureSearchSkillset
|
9
9
|
from ..config.config_helper import ConfigHelper
|
10
10
|
|
11
|
-
from
|
11
|
+
from mgmt_config import logger
|
12
12
|
env_helper: EnvHelper = EnvHelper()
|
13
13
|
log_execution = env_helper.LOG_EXECUTION
|
14
14
|
log_args = env_helper.LOG_ARGS
|
@@ -14,7 +14,7 @@ from ..document_loading_helper import DocumentLoading
|
|
14
14
|
from ..document_chunking_helper import DocumentChunking
|
15
15
|
from ...common.source_document import SourceDocument
|
16
16
|
|
17
|
-
from
|
17
|
+
from mgmt_config import logger
|
18
18
|
env_helper: EnvHelper = EnvHelper()
|
19
19
|
log_execution = env_helper.LOG_EXECUTION
|
20
20
|
log_args = env_helper.LOG_ARGS
|
@@ -18,7 +18,7 @@ from ..document_loading_helper import DocumentLoading
|
|
18
18
|
from ..document_chunking_helper import DocumentChunking
|
19
19
|
from ...common.source_document import SourceDocument
|
20
20
|
|
21
|
-
from
|
21
|
+
from mgmt_config import logger
|
22
22
|
env_helper: EnvHelper = EnvHelper()
|
23
23
|
log_execution = env_helper.LOG_EXECUTION
|
24
24
|
log_args = env_helper.LOG_ARGS
|
@@ -3,7 +3,7 @@ from psycopg2.extras import execute_values, RealDictCursor
|
|
3
3
|
from ..helpers.azure_identity_helper import AzureIdentityHelper
|
4
4
|
|
5
5
|
from ...utilities.helpers.env_helper import EnvHelper
|
6
|
-
from
|
6
|
+
from mgmt_config import logger
|
7
7
|
env_helper: EnvHelper = EnvHelper()
|
8
8
|
log_execution = env_helper.LOG_EXECUTION
|
9
9
|
log_args = env_helper.LOG_ARGS
|
@@ -10,7 +10,7 @@ from azure.ai.ml import MLClient
|
|
10
10
|
from ..helpers.azure_identity_helper import AzureIdentityHelper
|
11
11
|
from .env_helper import EnvHelper
|
12
12
|
|
13
|
-
from
|
13
|
+
from mgmt_config import logger
|
14
14
|
env_helper: EnvHelper = EnvHelper()
|
15
15
|
log_execution = env_helper.LOG_EXECUTION
|
16
16
|
log_args = env_helper.LOG_ARGS
|
@@ -24,7 +24,7 @@ from ..helpers.azure_identity_helper import AzureIdentityHelper
|
|
24
24
|
from azure.core.credentials import AzureKeyCredential
|
25
25
|
from ..helpers.llm_helper import LLMHelper
|
26
26
|
|
27
|
-
from
|
27
|
+
from mgmt_config import logger
|
28
28
|
env_helper: EnvHelper = EnvHelper()
|
29
29
|
log_execution = env_helper.LOG_EXECUTION
|
30
30
|
log_args = env_helper.LOG_ARGS
|
@@ -6,7 +6,7 @@ from azure.core.credentials import AzureKeyCredential
|
|
6
6
|
|
7
7
|
|
8
8
|
from ...utilities.helpers.env_helper import EnvHelper
|
9
|
-
from
|
9
|
+
from mgmt_config import logger
|
10
10
|
env_helper: EnvHelper = EnvHelper()
|
11
11
|
log_execution = env_helper.LOG_EXECUTION
|
12
12
|
log_args = env_helper.LOG_ARGS
|
@@ -18,7 +18,7 @@ from ..helpers.azure_identity_helper import AzureIdentityHelper
|
|
18
18
|
from azure.core.credentials import AzureKeyCredential
|
19
19
|
|
20
20
|
from ...utilities.helpers.env_helper import EnvHelper
|
21
|
-
from
|
21
|
+
from mgmt_config import logger
|
22
22
|
env_helper: EnvHelper = EnvHelper()
|
23
23
|
log_execution = env_helper.LOG_EXECUTION
|
24
24
|
log_args = env_helper.LOG_ARGS
|
@@ -13,7 +13,7 @@ from ..tools.text_processing_tool import TextProcessingTool
|
|
13
13
|
from ..common.answer import Answer
|
14
14
|
|
15
15
|
from ...utilities.helpers.env_helper import EnvHelper
|
16
|
-
from
|
16
|
+
from mgmt_config import logger
|
17
17
|
env_helper: EnvHelper = EnvHelper()
|
18
18
|
log_execution = env_helper.LOG_EXECUTION
|
19
19
|
log_args = env_helper.LOG_ARGS
|
@@ -10,7 +10,7 @@ from ..tools.text_processing_tool import TextProcessingTool
|
|
10
10
|
from ..common.answer import Answer
|
11
11
|
|
12
12
|
from ...utilities.helpers.env_helper import EnvHelper
|
13
|
-
from
|
13
|
+
from mgmt_config import logger
|
14
14
|
env_helper: EnvHelper = EnvHelper()
|
15
15
|
log_execution = env_helper.LOG_EXECUTION
|
16
16
|
log_args = env_helper.LOG_ARGS
|
@@ -7,7 +7,7 @@ from ..parser.output_parser_tool import OutputParserTool
|
|
7
7
|
from ..tools.content_safety_checker import ContentSafetyChecker
|
8
8
|
|
9
9
|
from ...utilities.helpers.env_helper import EnvHelper
|
10
|
-
from
|
10
|
+
from mgmt_config import logger
|
11
11
|
env_helper: EnvHelper = EnvHelper()
|
12
12
|
log_execution = env_helper.LOG_EXECUTION
|
13
13
|
log_args = env_helper.LOG_ARGS
|
@@ -8,7 +8,7 @@ from ..common.source_document import SourceDocument
|
|
8
8
|
from ..helpers.llm_helper import LLMHelper
|
9
9
|
from ..helpers.env_helper import EnvHelper
|
10
10
|
|
11
|
-
from
|
11
|
+
from mgmt_config import logger
|
12
12
|
env_helper: EnvHelper = EnvHelper()
|
13
13
|
log_execution = env_helper.LOG_EXECUTION
|
14
14
|
log_args = env_helper.LOG_ARGS
|
@@ -20,7 +20,7 @@ from ..plugins.outlook_calendar_plugin import OutlookCalendarPlugin
|
|
20
20
|
|
21
21
|
from .orchestrator_base import OrchestratorBase
|
22
22
|
|
23
|
-
from
|
23
|
+
from mgmt_config import logger
|
24
24
|
env_helper: EnvHelper = EnvHelper()
|
25
25
|
log_execution = env_helper.LOG_EXECUTION
|
26
26
|
log_args = env_helper.LOG_ARGS
|
@@ -5,7 +5,7 @@ from .parser_base import ParserBase
|
|
5
5
|
from ..common.source_document import SourceDocument
|
6
6
|
|
7
7
|
from ...utilities.helpers.env_helper import EnvHelper
|
8
|
-
from
|
8
|
+
from mgmt_config import logger
|
9
9
|
env_helper: EnvHelper = EnvHelper()
|
10
10
|
log_execution = env_helper.LOG_EXECUTION
|
11
11
|
log_args = env_helper.LOG_ARGS
|
@@ -4,7 +4,7 @@ from semantic_kernel.functions import kernel_function
|
|
4
4
|
from ..tools.text_processing_tool import TextProcessingTool
|
5
5
|
from ...utilities.helpers.env_helper import EnvHelper
|
6
6
|
|
7
|
-
from
|
7
|
+
from mgmt_config import logger
|
8
8
|
env_helper: EnvHelper = EnvHelper()
|
9
9
|
log_execution = env_helper.LOG_EXECUTION
|
10
10
|
log_args = env_helper.LOG_ARGS
|
@@ -9,7 +9,7 @@ from azure.search.documents.models import VectorizedQuery
|
|
9
9
|
import tiktoken
|
10
10
|
|
11
11
|
from ...utilities.helpers.env_helper import EnvHelper
|
12
|
-
from
|
12
|
+
from mgmt_config import logger
|
13
13
|
env_helper: EnvHelper = EnvHelper()
|
14
14
|
log_execution = env_helper.LOG_EXECUTION
|
15
15
|
log_args = env_helper.LOG_ARGS
|
@@ -5,7 +5,7 @@ from ..common.source_document import SourceDocument
|
|
5
5
|
import json
|
6
6
|
|
7
7
|
from ...utilities.helpers.env_helper import EnvHelper
|
8
|
-
from
|
8
|
+
from mgmt_config import logger
|
9
9
|
env_helper: EnvHelper = EnvHelper()
|
10
10
|
log_execution = env_helper.LOG_EXECUTION
|
11
11
|
log_args = env_helper.LOG_ARGS
|
@@ -8,7 +8,7 @@ from ..helpers.azure_identity_helper import AzureIdentityHelper
|
|
8
8
|
from ..common.source_document import SourceDocument
|
9
9
|
import re
|
10
10
|
from ...utilities.helpers.env_helper import EnvHelper
|
11
|
-
from
|
11
|
+
from mgmt_config import logger
|
12
12
|
env_helper: EnvHelper = EnvHelper()
|
13
13
|
log_execution = env_helper.LOG_EXECUTION
|
14
14
|
log_args = env_helper.LOG_ARGS
|
@@ -4,7 +4,7 @@ from .search_handler_base import SearchHandlerBase
|
|
4
4
|
from ..common.source_document import SourceDocument
|
5
5
|
|
6
6
|
from ...utilities.helpers.env_helper import EnvHelper
|
7
|
-
from
|
7
|
+
from mgmt_config import logger
|
8
8
|
env_helper: EnvHelper = EnvHelper()
|
9
9
|
log_execution = env_helper.LOG_EXECUTION
|
10
10
|
log_args = env_helper.LOG_ARGS
|
@@ -7,7 +7,7 @@ from ..helpers.azure_postgres_helper import AzurePostgresHelper
|
|
7
7
|
from ..common.source_document import SourceDocument
|
8
8
|
|
9
9
|
from ...utilities.helpers.env_helper import EnvHelper
|
10
|
-
from
|
10
|
+
from mgmt_config import logger
|
11
11
|
env_helper: EnvHelper = EnvHelper()
|
12
12
|
log_execution = env_helper.LOG_EXECUTION
|
13
13
|
log_args = env_helper.LOG_ARGS
|
@@ -8,7 +8,7 @@ from ..helpers.lightrag_helper import LightRAGHelper
|
|
8
8
|
from ..common.source_document import SourceDocument
|
9
9
|
|
10
10
|
from ...utilities.helpers.env_helper import EnvHelper
|
11
|
-
from
|
11
|
+
from mgmt_config import logger
|
12
12
|
env_helper: EnvHelper = EnvHelper()
|
13
13
|
log_execution = env_helper.LOG_EXECUTION
|
14
14
|
log_args = env_helper.LOG_ARGS
|
@@ -10,7 +10,7 @@ from ..helpers.env_helper import EnvHelper
|
|
10
10
|
|
11
11
|
from ..search.lightrag_search_handler import LightRAGSearchHandler
|
12
12
|
|
13
|
-
from
|
13
|
+
from mgmt_config import logger
|
14
14
|
env_helper: EnvHelper = EnvHelper()
|
15
15
|
log_execution = env_helper.LOG_EXECUTION
|
16
16
|
log_args = env_helper.LOG_ARGS
|
@@ -7,7 +7,7 @@ from ..helpers.env_helper import EnvHelper
|
|
7
7
|
from .answer_processing_base import AnswerProcessingBase
|
8
8
|
from ..common.answer import Answer
|
9
9
|
|
10
|
-
from
|
10
|
+
from mgmt_config import logger
|
11
11
|
env_helper: EnvHelper = EnvHelper()
|
12
12
|
log_execution = env_helper.LOG_EXECUTION
|
13
13
|
log_args = env_helper.LOG_ARGS
|
@@ -3,7 +3,7 @@ from ..helpers.llm_helper import LLMHelper
|
|
3
3
|
from ..helpers.config.config_helper import ConfigHelper
|
4
4
|
|
5
5
|
from ...utilities.helpers.env_helper import EnvHelper
|
6
|
-
from
|
6
|
+
from mgmt_config import logger
|
7
7
|
env_helper: EnvHelper = EnvHelper()
|
8
8
|
log_execution = env_helper.LOG_EXECUTION
|
9
9
|
log_args = env_helper.LOG_ARGS
|
@@ -10,7 +10,7 @@ from ..search.search import Search
|
|
10
10
|
from .answering_tool_base import AnsweringToolBase
|
11
11
|
from openai.types.chat import ChatCompletion
|
12
12
|
|
13
|
-
from
|
13
|
+
from mgmt_config import logger
|
14
14
|
env_helper: EnvHelper = EnvHelper()
|
15
15
|
log_execution = env_helper.LOG_EXECUTION
|
16
16
|
log_args = env_helper.LOG_ARGS
|
@@ -30,6 +30,7 @@ class QuestionAnswerTool(AnsweringToolBase):
|
|
30
30
|
"""
|
31
31
|
logger.info("Initializing QuestionAnswerTool...")
|
32
32
|
self.name = "QuestionAnswer"
|
33
|
+
self.env_helper = EnvHelper()
|
33
34
|
self.llm_helper = LLMHelper()
|
34
35
|
self.search_handler = Search.get_search_handler(env_helper=self.env_helper)
|
35
36
|
self.verbose = True
|
@@ -4,7 +4,7 @@ from .answering_tool_base import AnsweringToolBase
|
|
4
4
|
from ..common.answer import Answer
|
5
5
|
|
6
6
|
from ...utilities.helpers.env_helper import EnvHelper
|
7
|
-
from
|
7
|
+
from mgmt_config import logger
|
8
8
|
env_helper: EnvHelper = EnvHelper()
|
9
9
|
log_execution = env_helper.LOG_EXECUTION
|
10
10
|
log_args = env_helper.LOG_ARGS
|
@@ -0,0 +1,132 @@
|
|
1
|
+
"""
|
2
|
+
Azure Project Management Configuration Template
|
3
|
+
|
4
|
+
This template provides standardized configuration for Azure logging and identity
|
5
|
+
management across projects. It creates singleton instances of AzureLogger and
|
6
|
+
AzureIdentity that can be imported and used throughout your application.
|
7
|
+
|
8
|
+
Usage:
|
9
|
+
from mgmt_config import logger, identity
|
10
|
+
|
11
|
+
logger.info("Application started")
|
12
|
+
credential = identity.get_credential()
|
13
|
+
"""
|
14
|
+
|
15
|
+
import os
|
16
|
+
from typing import Optional, Dict, Any
|
17
|
+
from azpaddypy.mgmt.logging import create_app_logger, create_function_logger
|
18
|
+
from azpaddypy.mgmt.identity import create_azure_identity
|
19
|
+
|
20
|
+
# =============================================================================
|
21
|
+
# SERVICE CONFIGURATION
|
22
|
+
# =============================================================================
|
23
|
+
|
24
|
+
# Service identity - customize these for your project
|
25
|
+
SERVICE_NAME = os.getenv("SERVICE_NAME", __name__)
|
26
|
+
SERVICE_VERSION = os.getenv("SERVICE_VERSION", "1.0.0")
|
27
|
+
|
28
|
+
# =============================================================================
|
29
|
+
# LOGGING CONFIGURATION
|
30
|
+
# =============================================================================
|
31
|
+
|
32
|
+
# Enable console output (useful for local development)
|
33
|
+
LOGGER_ENABLE_CONSOLE = os.getenv("LOGGER_ENABLE_CONSOLE", "true").lower() == "true"
|
34
|
+
|
35
|
+
# Application Insights connection string (optional, will use environment variable if not set)
|
36
|
+
LOGGER_CONNECTION_STRING = os.getenv("APPLICATIONINSIGHTS_CONNECTION_STRING")
|
37
|
+
|
38
|
+
# Configure which Azure SDK components to instrument
|
39
|
+
LOGGER_INSTRUMENTATION_OPTIONS = {
|
40
|
+
"azure_sdk": {"enabled": True},
|
41
|
+
"django": {"enabled": False},
|
42
|
+
"fastapi": {"enabled": False},
|
43
|
+
"flask": {"enabled": True},
|
44
|
+
"psycopg2": {"enabled": True},
|
45
|
+
"requests": {"enabled": True},
|
46
|
+
"urllib": {"enabled": True},
|
47
|
+
"urllib3": {"enabled": True},
|
48
|
+
}
|
49
|
+
|
50
|
+
# =============================================================================
|
51
|
+
# IDENTITY CONFIGURATION
|
52
|
+
# =============================================================================
|
53
|
+
|
54
|
+
# Token caching settings
|
55
|
+
IDENTITY_ENABLE_TOKEN_CACHE = os.getenv("IDENTITY_ENABLE_TOKEN_CACHE", "true").lower() == "true"
|
56
|
+
IDENTITY_ALLOW_UNENCRYPTED_STORAGE = os.getenv("IDENTITY_ALLOW_UNENCRYPTED_STORAGE", "true").lower() == "true"
|
57
|
+
|
58
|
+
# Custom credential options (None means use defaults)
|
59
|
+
IDENTITY_CUSTOM_CREDENTIAL_OPTIONS: Optional[Dict[str, Any]] = None
|
60
|
+
|
61
|
+
# Connection string for identity logging (uses same as logger by default)
|
62
|
+
IDENTITY_CONNECTION_STRING = LOGGER_CONNECTION_STRING
|
63
|
+
|
64
|
+
# =============================================================================
|
65
|
+
# INITIALIZE SERVICES
|
66
|
+
# =============================================================================
|
67
|
+
# Create logger instance
|
68
|
+
if "functionapp" in os.getenv("REFLECTION_KIND", "app"):
|
69
|
+
logger = create_function_logger(
|
70
|
+
function_app_name=os.getenv("REFLECTION_NAME", "app"),
|
71
|
+
function_name="backend",
|
72
|
+
service_version=SERVICE_VERSION,
|
73
|
+
connection_string=LOGGER_CONNECTION_STRING,
|
74
|
+
instrumentation_options=LOGGER_INSTRUMENTATION_OPTIONS,
|
75
|
+
)
|
76
|
+
logger.info("Function logger initialized")
|
77
|
+
else:
|
78
|
+
logger = create_app_logger(
|
79
|
+
service_name=SERVICE_NAME,
|
80
|
+
service_version=SERVICE_VERSION,
|
81
|
+
connection_string=LOGGER_CONNECTION_STRING,
|
82
|
+
enable_console_logging=LOGGER_ENABLE_CONSOLE,
|
83
|
+
instrumentation_options=LOGGER_INSTRUMENTATION_OPTIONS,
|
84
|
+
)
|
85
|
+
logger.info("App logger initialized")
|
86
|
+
|
87
|
+
# Create identity instance with shared logger
|
88
|
+
identity = create_azure_identity(
|
89
|
+
service_name=SERVICE_NAME,
|
90
|
+
service_version=SERVICE_VERSION,
|
91
|
+
enable_token_cache=IDENTITY_ENABLE_TOKEN_CACHE,
|
92
|
+
allow_unencrypted_storage=IDENTITY_ALLOW_UNENCRYPTED_STORAGE,
|
93
|
+
custom_credential_options=IDENTITY_CUSTOM_CREDENTIAL_OPTIONS,
|
94
|
+
connection_string=IDENTITY_CONNECTION_STRING,
|
95
|
+
logger=logger,
|
96
|
+
)
|
97
|
+
|
98
|
+
# =============================================================================
|
99
|
+
# VALIDATION & STARTUP
|
100
|
+
# =============================================================================
|
101
|
+
|
102
|
+
# Validate critical configuration
|
103
|
+
if SERVICE_NAME == __name__:
|
104
|
+
logger.warning(
|
105
|
+
"SERVICE_NAME is not configured. Please set SERVICE_NAME environment variable or update this template.",
|
106
|
+
extra={"configuration_issue": "service_name_not_set"}
|
107
|
+
)
|
108
|
+
|
109
|
+
if not LOGGER_CONNECTION_STRING:
|
110
|
+
logger.info(
|
111
|
+
"No Application Insights connection string configured. Telemetry will be disabled.",
|
112
|
+
extra={"telemetry_status": "disabled"}
|
113
|
+
)
|
114
|
+
|
115
|
+
# Log successful initialization
|
116
|
+
logger.info(
|
117
|
+
f"Management configuration initialized for service '{SERVICE_NAME}' v{SERVICE_VERSION}",
|
118
|
+
extra={
|
119
|
+
"service_name": SERVICE_NAME,
|
120
|
+
"service_version": SERVICE_VERSION,
|
121
|
+
"console_logging": LOGGER_ENABLE_CONSOLE,
|
122
|
+
"token_cache_enabled": IDENTITY_ENABLE_TOKEN_CACHE,
|
123
|
+
"telemetry_enabled": bool(LOGGER_CONNECTION_STRING),
|
124
|
+
}
|
125
|
+
)
|
126
|
+
|
127
|
+
# =============================================================================
|
128
|
+
# EXPORTS
|
129
|
+
# =============================================================================
|
130
|
+
|
131
|
+
# Export both logger and identity for use in applications
|
132
|
+
__all__ = ["logger", "identity"]
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: cwyodmodules
|
3
|
-
Version: 0.3.
|
3
|
+
Version: 0.3.41
|
4
4
|
Summary: Add your description here
|
5
5
|
Author-email: Patrik <patrikhartl@gmail.com>
|
6
6
|
Classifier: Operating System :: OS Independent
|
@@ -40,7 +40,7 @@ Requires-Dist: azure-search-documents==11.6.0b4
|
|
40
40
|
Requires-Dist: semantic-kernel==1.3.0
|
41
41
|
Requires-Dist: pydantic==2.7.4
|
42
42
|
Requires-Dist: pandas>=2.2.3
|
43
|
-
Requires-Dist: azpaddypy>=0.3.
|
43
|
+
Requires-Dist: azpaddypy>=0.3.4
|
44
44
|
Dynamic: license-file
|
45
45
|
|
46
46
|
# paddypy
|
@@ -1,49 +1,49 @@
|
|
1
|
-
cwyodmodules/
|
1
|
+
cwyodmodules/mgmt_config.py,sha256=t5KCRfW0JyX5o_qo0XzLTLpuM_OKLqKzKC4u7AtPwog,5294
|
2
2
|
cwyodmodules/api/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
3
|
-
cwyodmodules/api/chat_history.py,sha256=
|
3
|
+
cwyodmodules/api/chat_history.py,sha256=bVXFmhTHIfEiHv_nBrfizO-cQRHhKgrdcZ07OD1b0Tw,20683
|
4
4
|
cwyodmodules/batch/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
5
5
|
cwyodmodules/batch/utilities/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
6
|
-
cwyodmodules/batch/utilities/chat_history/auth_utils.py,sha256=
|
7
|
-
cwyodmodules/batch/utilities/chat_history/cosmosdb.py,sha256=
|
6
|
+
cwyodmodules/batch/utilities/chat_history/auth_utils.py,sha256=4DipngRgRwkbwt-R1j0_I_KCazLuV5RSFtXn1zJ-5vE,2109
|
7
|
+
cwyodmodules/batch/utilities/chat_history/cosmosdb.py,sha256=St5wWqVm4IOsDmlJDNlJHv9PVrPmdN04-9MYmc5udMY,8777
|
8
8
|
cwyodmodules/batch/utilities/chat_history/database_client_base.py,sha256=6y7h2iL0Uxn4c11N99Ao-8nplQGVGQAOnev3GlHIDXA,2328
|
9
9
|
cwyodmodules/batch/utilities/chat_history/database_factory.py,sha256=kdleC4P8u8rYPsx2HcPQwyOgFf_mph3Nh-Mmzz1V7oM,2401
|
10
|
-
cwyodmodules/batch/utilities/chat_history/postgresdbservice.py,sha256=
|
10
|
+
cwyodmodules/batch/utilities/chat_history/postgresdbservice.py,sha256=tkE7dpv95GNXwHah_Oj33LYmAuDerf5YhEAot1BjGt4,13027
|
11
11
|
cwyodmodules/batch/utilities/chat_history/sample_user.py,sha256=GNXZ_yTjud8Zj0vgHnoU96RJMiJt0YRjEVO3pt7203A,3037
|
12
12
|
cwyodmodules/batch/utilities/common/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
13
13
|
cwyodmodules/batch/utilities/common/answer.py,sha256=C1g_Xt85TfXK2qV1F6J5_o3MyIUdFpUmvgkIpuEcp4I,3093
|
14
|
-
cwyodmodules/batch/utilities/common/source_document.py,sha256=
|
14
|
+
cwyodmodules/batch/utilities/common/source_document.py,sha256=iZsNxsHjjB_ZMzIJF1I6X2jBOUlT2TijHa0PB_x-FV0,6547
|
15
15
|
cwyodmodules/batch/utilities/document_chunking/__init__.py,sha256=s7G-4CLzaVRPe-ePbSfFKLI93Oimf1RYJYC0JA9qlek,272
|
16
16
|
cwyodmodules/batch/utilities/document_chunking/chunking_strategy.py,sha256=c-ZNxdz14r2pSiCBYHh17WHs2nM2RpKou3q8DunDHnU,2001
|
17
17
|
cwyodmodules/batch/utilities/document_chunking/document_chunking_base.py,sha256=suBdj8Iko8g_jO7IWlf1cg9PKTx0hMk1zfP9fXyMigU,442
|
18
|
-
cwyodmodules/batch/utilities/document_chunking/fixed_size_overlap.py,sha256=
|
19
|
-
cwyodmodules/batch/utilities/document_chunking/layout.py,sha256=
|
20
|
-
cwyodmodules/batch/utilities/document_chunking/page.py,sha256=
|
18
|
+
cwyodmodules/batch/utilities/document_chunking/fixed_size_overlap.py,sha256=_BFtDfRBBqdtBC9m0n2cKlwEZIfYrp_XdBAjBMHL7Qc,1927
|
19
|
+
cwyodmodules/batch/utilities/document_chunking/layout.py,sha256=3YDnCDOiicQEQ_SXWPQU5RBsybpcxT0NFBjzADE301o,1924
|
20
|
+
cwyodmodules/batch/utilities/document_chunking/page.py,sha256=4J__8BT2IDfkFXYUXzAWAzxSBITq8kiR3y09umx6kuA,1904
|
21
21
|
cwyodmodules/batch/utilities/document_chunking/paragraph.py,sha256=cnTUMpOhbwCng_k42H5AJbXiFlgkFpJU0r4onaHEPyY,539
|
22
22
|
cwyodmodules/batch/utilities/document_chunking/strategies.py,sha256=udKC3li_tuLkveYNH2_SRPVmgK8wxhfULBN7mgl1Z30,1722
|
23
23
|
cwyodmodules/batch/utilities/document_loading/__init__.py,sha256=a4Fq-2vYnTedtknfOwTPyFi_czVrK1MvVz7TDy54LH8,637
|
24
24
|
cwyodmodules/batch/utilities/document_loading/document_loading_base.py,sha256=MaoGzQDgrPW0QwRFAIMTWHZuoUkXW0rJISWH_BWhxMQ,336
|
25
25
|
cwyodmodules/batch/utilities/document_loading/layout.py,sha256=3PMo3Hc-75_mNAq6oz7GCqC3uFrLmkPMLOw4jH57df4,893
|
26
|
-
cwyodmodules/batch/utilities/document_loading/read.py,sha256=
|
26
|
+
cwyodmodules/batch/utilities/document_loading/read.py,sha256=bTE2NV_PQYoUVIbS5-QS61OdgFdV0F7JomWQP6jjXH0,1681
|
27
27
|
cwyodmodules/batch/utilities/document_loading/strategies.py,sha256=ZBKYPJD8UJmPBzljQc4yh0rMHJvYn9Gxn7TbuYrNU6A,792
|
28
28
|
cwyodmodules/batch/utilities/document_loading/web.py,sha256=LRTNYs_7CN8nfMOaCoW7Py_obrLpj3vI4kneNVEHGXE,1186
|
29
29
|
cwyodmodules/batch/utilities/document_loading/word_document.py,sha256=-F1asMaupQk4swEeCoAD8tyYENE4Qq-05-VmPUjRdeA,1569
|
30
30
|
cwyodmodules/batch/utilities/helpers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
31
31
|
cwyodmodules/batch/utilities/helpers/azure_blob_storage_client.py,sha256=FN2XnEThmtbWnwSi1sEfgekuPH7aJBOAU5n2DBmQ9ww,10315
|
32
|
-
cwyodmodules/batch/utilities/helpers/azure_computer_vision_client.py,sha256=
|
33
|
-
cwyodmodules/batch/utilities/helpers/azure_form_recognizer_helper.py,sha256=
|
32
|
+
cwyodmodules/batch/utilities/helpers/azure_computer_vision_client.py,sha256=tCSJM0SsC_ris4NZ-WCBvP5n2mRZBhVHjnpYjUVHUVQ,4333
|
33
|
+
cwyodmodules/batch/utilities/helpers/azure_form_recognizer_helper.py,sha256=agZEbw3vJAOiX7fpzCsId527VMsLOez3cVELYlpUJy0,7002
|
34
34
|
cwyodmodules/batch/utilities/helpers/azure_identity_helper.py,sha256=aiYZH4F9aZBd5DDRuVvIn6jiIDgC0i-R-1-NqHqosnI,1806
|
35
|
-
cwyodmodules/batch/utilities/helpers/azure_postgres_helper.py,sha256=
|
36
|
-
cwyodmodules/batch/utilities/helpers/azure_postgres_helper_light_rag.py,sha256
|
37
|
-
cwyodmodules/batch/utilities/helpers/azure_search_helper.py,sha256=
|
35
|
+
cwyodmodules/batch/utilities/helpers/azure_postgres_helper.py,sha256=J0JZEuH0OE0sGtC4G2E5X4df4Ua1Jg8LKspL-sVxxxQ,11894
|
36
|
+
cwyodmodules/batch/utilities/helpers/azure_postgres_helper_light_rag.py,sha256=-6CPczt8vbkedZliSXmmoLat8EiKm4oHIFldbQe_Q5k,11966
|
37
|
+
cwyodmodules/batch/utilities/helpers/azure_search_helper.py,sha256=_HDHbrpWbbM8AJfcd2deTtseZK-hM4ar9QCrXvVSfYM,11445
|
38
38
|
cwyodmodules/batch/utilities/helpers/document_chunking_helper.py,sha256=2MZOjW-fHXgYijP3m9O-nizOlk96Yg0axyxT0K6fTnM,725
|
39
39
|
cwyodmodules/batch/utilities/helpers/document_loading_helper.py,sha256=2HBEl3vW-_PKbX5pPntTC_R5eToTk2Qb-q3M4Mt6hCU,603
|
40
|
-
cwyodmodules/batch/utilities/helpers/env_helper.py,sha256=
|
41
|
-
cwyodmodules/batch/utilities/helpers/lightrag_helper.py,sha256=
|
42
|
-
cwyodmodules/batch/utilities/helpers/llm_helper.py,sha256=
|
40
|
+
cwyodmodules/batch/utilities/helpers/env_helper.py,sha256=sgpaLlw3SlW99j9mvei-XE8wb1lX1f_vhEXeKf7hZvs,16021
|
41
|
+
cwyodmodules/batch/utilities/helpers/lightrag_helper.py,sha256=18J8G-N7Rt1Yk2Hf2VlM_5LzKTcFTf72U_RCRXvgtMI,3976
|
42
|
+
cwyodmodules/batch/utilities/helpers/llm_helper.py,sha256=hgxfNhAZGmWLakKTUu6d8FVrmUjFKJyAGUfpls9elL8,8413
|
43
43
|
cwyodmodules/batch/utilities/helpers/orchestrator_helper.py,sha256=mCcZyMFG0otnw9gzWd-PYocHmDdFDVg-RT9oDPiDZPk,897
|
44
|
-
cwyodmodules/batch/utilities/helpers/secret_helper.py,sha256=
|
44
|
+
cwyodmodules/batch/utilities/helpers/secret_helper.py,sha256=eRMDFo7NIjzJpgkKfCSKUwNsrq6gfjoujyRrgu27ci0,2887
|
45
45
|
cwyodmodules/batch/utilities/helpers/config/assistant_strategy.py,sha256=uT8h646zEURU9x8oDOH7pWoZKb0Mw6dA2nJtA2M-ufg,171
|
46
|
-
cwyodmodules/batch/utilities/helpers/config/config_helper.py,sha256=
|
46
|
+
cwyodmodules/batch/utilities/helpers/config/config_helper.py,sha256=26na6YrLqRLhdSZxTSlOnJOkIcPbTcbFVuPEQTPT3WY,14908
|
47
47
|
cwyodmodules/batch/utilities/helpers/config/conversation_flow.py,sha256=4nP8a-I-sME5-2unzWWBNpTzWdfpfc5_EAYU6Pn6LAQ,94
|
48
48
|
cwyodmodules/batch/utilities/helpers/config/database_type.py,sha256=Zmmlh1NAKDdd-2ei478boncRKcx8v3lDkPf4kO2j4ss,132
|
49
49
|
cwyodmodules/batch/utilities/helpers/config/default.json,sha256=FnW-cSQJr4xkFwe3B44HtpDeJr8iPDIYfKxBUVdPXQs,15259
|
@@ -52,43 +52,43 @@ cwyodmodules/batch/utilities/helpers/config/default_employee_assistant_prompt.tx
|
|
52
52
|
cwyodmodules/batch/utilities/helpers/config/embedding_config.py,sha256=9pCJxpsouln9dngjVHaKGFYP14PrwmSts_UFDytSiVk,950
|
53
53
|
cwyodmodules/batch/utilities/helpers/embedders/embedder_base.py,sha256=z34LTNGzjiHr6_YWZ8NejUsX1KKYqXPWcqZ8mW_3CHI,699
|
54
54
|
cwyodmodules/batch/utilities/helpers/embedders/embedder_factory.py,sha256=cJ9ZTXZEyOJ5TLB6pDsb9zvUZrJYY-LD40n0l1-qHcw,790
|
55
|
-
cwyodmodules/batch/utilities/helpers/embedders/integrated_vectorization_embedder.py,sha256=
|
56
|
-
cwyodmodules/batch/utilities/helpers/embedders/postgres_embedder.py,sha256=
|
57
|
-
cwyodmodules/batch/utilities/helpers/embedders/push_embedder.py,sha256=
|
55
|
+
cwyodmodules/batch/utilities/helpers/embedders/integrated_vectorization_embedder.py,sha256=qguAc5gRxbZdSXe9qjkn1eqRgVc8LrsiZAE3ggeJaSg,3338
|
56
|
+
cwyodmodules/batch/utilities/helpers/embedders/postgres_embedder.py,sha256=_Wc4gkMDsXvGLkz7NpslkTAumvyZt6CHKlktU3bzbcU,4865
|
57
|
+
cwyodmodules/batch/utilities/helpers/embedders/push_embedder.py,sha256=jxOp-AW1vTQMQHR6f-UoD0gFxD2ZJ6E0SLt1KvzdykQ,9143
|
58
58
|
cwyodmodules/batch/utilities/integrated_vectorization/azure_search_datasource.py,sha256=rDwPgr-UCSYscc7hPOUJMwP09a9rX1MXAGf94TubdQo,2231
|
59
|
-
cwyodmodules/batch/utilities/integrated_vectorization/azure_search_index.py,sha256=
|
60
|
-
cwyodmodules/batch/utilities/integrated_vectorization/azure_search_indexer.py,sha256=
|
61
|
-
cwyodmodules/batch/utilities/integrated_vectorization/azure_search_skillset.py,sha256=
|
59
|
+
cwyodmodules/batch/utilities/integrated_vectorization/azure_search_index.py,sha256=VwyfKBUDcWt0uBW_8mtq0XlFzaBZNUdKUjF8WUvt9uU,6733
|
60
|
+
cwyodmodules/batch/utilities/integrated_vectorization/azure_search_indexer.py,sha256=xhrF783aC1lWSVPHiX8zF_zX6npT4NSE3_UWvGSjcYQ,3361
|
61
|
+
cwyodmodules/batch/utilities/integrated_vectorization/azure_search_skillset.py,sha256=cfIZbiJAQ15LB0_j_xno8EQt6cY_HfhL07zrU-wBAYI,5902
|
62
62
|
cwyodmodules/batch/utilities/loggers/conversation_logger.py,sha256=0aXsL475-6WTqg18nHFJMFRBo34oIXWrZ_eVZwULcdk,3014
|
63
63
|
cwyodmodules/batch/utilities/orchestrator/__init__.py,sha256=4nCkoUWTROUHJMolgMwPgFIUsJrFUuu0zlHXMUTchRc,479
|
64
|
-
cwyodmodules/batch/utilities/orchestrator/lang_chain_agent.py,sha256=
|
65
|
-
cwyodmodules/batch/utilities/orchestrator/open_ai_functions.py,sha256=
|
64
|
+
cwyodmodules/batch/utilities/orchestrator/lang_chain_agent.py,sha256=X-rnXhd20XUcu2YUYMzKi0acJsBhCADMypauOZkbJas,6892
|
65
|
+
cwyodmodules/batch/utilities/orchestrator/open_ai_functions.py,sha256=t9VSiaNceYATVFm1DOTAcSxVgV9DrMdgN0VLO3xfSs0,9238
|
66
66
|
cwyodmodules/batch/utilities/orchestrator/orchestration_strategy.py,sha256=-MEPKVX3-hH6w0NRsGkQpCV86u1d7Qx1TWEKL09jj9A,755
|
67
|
-
cwyodmodules/batch/utilities/orchestrator/orchestrator_base.py,sha256=
|
68
|
-
cwyodmodules/batch/utilities/orchestrator/prompt_flow.py,sha256=
|
69
|
-
cwyodmodules/batch/utilities/orchestrator/semantic_kernel_orchestrator.py,sha256=
|
67
|
+
cwyodmodules/batch/utilities/orchestrator/orchestrator_base.py,sha256=F06QruD682v8RkOZ9FIMs62WBBpHcVyvIGfFLDsZCbc,6878
|
68
|
+
cwyodmodules/batch/utilities/orchestrator/prompt_flow.py,sha256=z1RiTPITP1MOKSMN6oUQ3tqhRGjSUlFgzycww7I0F88,7809
|
69
|
+
cwyodmodules/batch/utilities/orchestrator/semantic_kernel_orchestrator.py,sha256=aZ3nIVE0Wuu-4vSuPaEiVa18xaa-3qDsLOffhKpE3O4,9282
|
70
70
|
cwyodmodules/batch/utilities/orchestrator/strategies.py,sha256=oVatdT6Gc4qtX773M9a8Izm2UNDYXmYP__8wJYdy4W8,1384
|
71
71
|
cwyodmodules/batch/utilities/parser/__init__.py,sha256=ZGBxm1TX6cQAnFkMtKN6C2FwnNv1MmwNdyo3LWRlKlo,236
|
72
|
-
cwyodmodules/batch/utilities/parser/output_parser_tool.py,sha256=
|
72
|
+
cwyodmodules/batch/utilities/parser/output_parser_tool.py,sha256=LPgQ_Fwt6Cqk7uQqhiGLToMkx4u9tKiJq1M-pjFLD5M,5848
|
73
73
|
cwyodmodules/batch/utilities/parser/parser_base.py,sha256=ZCYZEoa7-gGhoO_oMfeGCldR4OIuShf7U5lA0BuwNSY,419
|
74
74
|
cwyodmodules/batch/utilities/plugins/chat_plugin.py,sha256=-YcUzWhh8fTh44TI3lKEOQEN-8y-_pUrp-j1vikDxEk,2935
|
75
|
-
cwyodmodules/batch/utilities/plugins/outlook_calendar_plugin.py,sha256
|
75
|
+
cwyodmodules/batch/utilities/plugins/outlook_calendar_plugin.py,sha256=q4RUHa9ijMfooVuLzLmDGAqh5-YoZwNk1rkNY2n9KTE,6241
|
76
76
|
cwyodmodules/batch/utilities/plugins/post_answering_plugin.py,sha256=U1zzf_ztxzl4y-9Qah_n7ylHDZfnDSp2ork5ctdkA5I,1117
|
77
|
-
cwyodmodules/batch/utilities/search/azure_search_handler.py,sha256=
|
78
|
-
cwyodmodules/batch/utilities/search/azure_search_handler_light_rag.py,sha256=
|
79
|
-
cwyodmodules/batch/utilities/search/integrated_vectorization_search_handler.py,sha256=
|
80
|
-
cwyodmodules/batch/utilities/search/lightrag_search_handler.py,sha256=
|
81
|
-
cwyodmodules/batch/utilities/search/postgres_search_handler.py,sha256=
|
82
|
-
cwyodmodules/batch/utilities/search/postgres_search_handler_light_rag.py,sha256=
|
83
|
-
cwyodmodules/batch/utilities/search/search.py,sha256=
|
77
|
+
cwyodmodules/batch/utilities/search/azure_search_handler.py,sha256=SiPy-C2H6pncwTCyUNF5cjL3TZZ4wZmFCMy2xsBjrwk,8046
|
78
|
+
cwyodmodules/batch/utilities/search/azure_search_handler_light_rag.py,sha256=OHyp-QWU-7HTeKxOLNqR7G5r8CIlhDzzuZX-7xVLMQQ,3917
|
79
|
+
cwyodmodules/batch/utilities/search/integrated_vectorization_search_handler.py,sha256=nX5JSQd3e-DOcjJsueuDqeqfNgR7ZhkzWQqIInQ8ayU,8600
|
80
|
+
cwyodmodules/batch/utilities/search/lightrag_search_handler.py,sha256=e3AAPyeKEAazJcjz3INy5EJZIUs80MPgKDMFjhgCdaA,3312
|
81
|
+
cwyodmodules/batch/utilities/search/postgres_search_handler.py,sha256=pSkbDwimPuIVyyYKiZIg6jmItLYJ59Xugyiuy9kLEV8,5571
|
82
|
+
cwyodmodules/batch/utilities/search/postgres_search_handler_light_rag.py,sha256=4N5VRK0c0jvRlVL_JozPmBm_tBrloSHRDXexqo1jdis,5981
|
83
|
+
cwyodmodules/batch/utilities/search/search.py,sha256=C7rt6FOZbNVEVti2Y6uCwH1Hk06274MgxJ76SwTuZrQ,3454
|
84
84
|
cwyodmodules/batch/utilities/search/search_handler_base.py,sha256=UyS9dFoY-Sp4b-k7oOcPSBE0PPEqonzVlAoVlft_dvg,1877
|
85
85
|
cwyodmodules/batch/utilities/tools/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
86
86
|
cwyodmodules/batch/utilities/tools/answer_processing_base.py,sha256=N3Dz7HfN-zl0yPl9cSvnChcEufFMqwRsDAJ5Lgck-ho,293
|
87
87
|
cwyodmodules/batch/utilities/tools/answering_tool_base.py,sha256=aN2ND5Ud_1ZlIPfhLRrOe_m4MUf_SaXvO6q7GcbGiU8,348
|
88
|
-
cwyodmodules/batch/utilities/tools/content_safety_checker.py,sha256=
|
89
|
-
cwyodmodules/batch/utilities/tools/post_prompt_tool.py,sha256=
|
90
|
-
cwyodmodules/batch/utilities/tools/question_answer_tool.py,sha256=
|
91
|
-
cwyodmodules/batch/utilities/tools/text_processing_tool.py,sha256=
|
88
|
+
cwyodmodules/batch/utilities/tools/content_safety_checker.py,sha256=ViikBC3wwySqcFUB6TcVQSjutCUu5KRgg4InZaHegms,4307
|
89
|
+
cwyodmodules/batch/utilities/tools/post_prompt_tool.py,sha256=tGxw8qMNS7jp8P3KqpqHplicmX064sL2J85VwnCWBbA,2495
|
90
|
+
cwyodmodules/batch/utilities/tools/question_answer_tool.py,sha256=8GWurj50bUND_4x0i1_UPfwl1HMLUIpvq5xBv-q5UDA,12213
|
91
|
+
cwyodmodules/batch/utilities/tools/text_processing_tool.py,sha256=zCF83SQaC8k6z6-Gevxj6AdDKzhU3P_6FG0hAnrG5Zk,1824
|
92
92
|
cwyodmodules/graphrag/__init__.py,sha256=O5fi4Q3RC9Gt8ItNZGV1HjyIJvEz7grYXTFMmUWstxw,111
|
93
93
|
cwyodmodules/graphrag/config.py,sha256=TvG45dezHkqgZzWnPxhpyWciIiKOrD_3JQ3APkoD6Hw,1525
|
94
94
|
cwyodmodules/graphrag/main.py,sha256=8_z5X3b00J1FYnq43LrbJpOC3bKGkuyZQglgtBtVO2I,2201
|
@@ -109,8 +109,8 @@ cwyodmodules/graphrag/query/generate.py,sha256=xBnZs2U9xFWtPk4AfAZgYKbHdcxNcIO6Q
|
|
109
109
|
cwyodmodules/graphrag/query/graph_search.py,sha256=95h3ecSWx4864XgKABtG0fh3Nk8HkqJVzoCrO8daJ-Y,7724
|
110
110
|
cwyodmodules/graphrag/query/types.py,sha256=1Iq1dp4I4a56_cuFjOZ0NTgd0A2_MpVFznp_czgt6cI,617
|
111
111
|
cwyodmodules/graphrag/query/vector_search.py,sha256=9Gwu9LPjtoAYUU8WKqCvbCHAIg3dpk71reoYd1scLnQ,1807
|
112
|
-
cwyodmodules-0.3.
|
113
|
-
cwyodmodules-0.3.
|
114
|
-
cwyodmodules-0.3.
|
115
|
-
cwyodmodules-0.3.
|
116
|
-
cwyodmodules-0.3.
|
112
|
+
cwyodmodules-0.3.41.dist-info/licenses/LICENSE,sha256=UqBDTipijsSW2ZSOXyTZnMsXmLoEHTgNEM0tL4g-Sso,1150
|
113
|
+
cwyodmodules-0.3.41.dist-info/METADATA,sha256=6H_wxXoP6FZd8DVYFItNlAOO7Z7rGCfX7IamlLZVPww,2002
|
114
|
+
cwyodmodules-0.3.41.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
115
|
+
cwyodmodules-0.3.41.dist-info/top_level.txt,sha256=99RENLbkdRX-qpJvsxZ5AfmTL5s6shSaKOWYpz1vwzg,13
|
116
|
+
cwyodmodules-0.3.41.dist-info/RECORD,,
|
cwyodmodules/logging_config.py
DELETED
@@ -1,25 +0,0 @@
|
|
1
|
-
import os
|
2
|
-
from azpaddypy.mgmt.logging import create_app_logger
|
3
|
-
|
4
|
-
application_insights_connection_string=os.getenv("APPLICATIONINSIGHTS_CONNECTION_STRING")
|
5
|
-
instrumentation_options={
|
6
|
-
"azure_sdk": {"enabled": True},
|
7
|
-
"django": {"enabled": False},
|
8
|
-
"fastapi": {"enabled": False},
|
9
|
-
"flask": {"enabled": True},
|
10
|
-
"psycopg2": {"enabled": True},
|
11
|
-
"requests": {"enabled": True},
|
12
|
-
"urllib": {"enabled": True},
|
13
|
-
"urllib3": {"enabled": True},
|
14
|
-
}
|
15
|
-
# Create a single instance of the logger
|
16
|
-
logger = create_app_logger(
|
17
|
-
connection_string=application_insights_connection_string,
|
18
|
-
service_name=__name__,
|
19
|
-
service_version="1.0.0",
|
20
|
-
enable_console_logging=True,
|
21
|
-
instrumentation_options=instrumentation_options
|
22
|
-
)
|
23
|
-
|
24
|
-
# Export the logger instance
|
25
|
-
__all__ = ['logger']
|
File without changes
|
File without changes
|
File without changes
|