glchat-plugin 0.0.0__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.
@@ -0,0 +1 @@
1
+ """Main module for glchat_plugin."""
@@ -0,0 +1 @@
1
+ """Module for glchat_plugin config."""
@@ -0,0 +1,22 @@
1
+ """Configuration schema for the GLLM backend.
2
+
3
+ Authors:
4
+ Anggara Setiawan (anggara.t.setiawan@gdplabs.id)
5
+ Hermes Vincentius Gani (hermes.v.gani@gdplabs.id)
6
+
7
+ References:
8
+ None
9
+ """
10
+
11
+ from typing import TypeVar
12
+
13
+ from pydantic import BaseModel
14
+
15
+ Chatbot = TypeVar("Chatbot")
16
+
17
+
18
+ class AppConfig(BaseModel):
19
+ """Application configuration model."""
20
+
21
+ chatbots: dict[str, Chatbot]
22
+ user_chatbots: dict[str, list[str]]
@@ -0,0 +1,26 @@
1
+ """Constants for the API.
2
+
3
+ Authors:
4
+ Ryan Ignatius Hadiwijaya (ryan.i.hadiwijaya@gdplabs.id)
5
+
6
+ References:
7
+ None
8
+ """
9
+
10
+ from enum import StrEnum
11
+
12
+
13
+ class SearchType(StrEnum):
14
+ """The type of search to perform.
15
+
16
+ Values:
17
+ NORMAL: Get answer from chatbot knowledge.
18
+ SMART: Get more relevant information from your stored documents and knowledge base.
19
+ Knowledge Search is an AI with specialized knowledge. No agents are available in this mode.
20
+ WEB: Get more relevant information from the web.
21
+ Web Search uses real-time data. Agent selection isn't available in this mode.
22
+ """
23
+
24
+ NORMAL = "normal"
25
+ SMART = "smart"
26
+ WEB = "web"
@@ -0,0 +1 @@
1
+ """Module for glchat_plugin pipeline."""
@@ -0,0 +1,36 @@
1
+ """Base Pipeline Preset Config.
2
+
3
+ Authors:
4
+ Ryan Ignatius Hadiwijaya (ryan.i.hadiwijaya@gdplabs.id)
5
+
6
+ References:
7
+ NONE
8
+ """
9
+
10
+ from typing import Any
11
+
12
+ from pydantic import BaseModel
13
+
14
+ from glchat_plugin.config.constant import SearchType
15
+
16
+
17
+ class BasePipelinePresetConfig(BaseModel):
18
+ """A Pydantic model representing the base preset configuration of all pipelines.
19
+
20
+ Attributes:
21
+ pipeline_preset_id (str): The pipeline preset id.
22
+ supported_models (dict[str, Any]): The supported models.
23
+ supported_agents (list[str]): The supported agents.
24
+ support_pii_anonymization (bool): Whether the pipeline supports pii anonymization.
25
+ support_multimodal (bool): Whether the pipeline supports multimodal.
26
+ use_docproc (bool): Whether to use the document processor.
27
+ search_types (list[SearchType]): The supported search types.
28
+ """
29
+
30
+ pipeline_preset_id: str
31
+ supported_models: dict[str, Any]
32
+ supported_agents: list[str]
33
+ support_pii_anonymization: bool
34
+ support_multimodal: bool
35
+ use_docproc: bool
36
+ search_types: list[SearchType]