glchat-plugin 0.3.1__py3-none-any.whl → 0.3.3__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.
@@ -96,9 +96,6 @@ class GuardrailMode(StrEnum):
96
96
  BOTH = "both"
97
97
 
98
98
 
99
- WEB_SEARCH_BLACKLIST_DEFAULT = "[]"
100
- WEB_SEARCH_WHITELIST_DEFAULT = "[]"
101
-
102
99
  GUARDRAIL_ERR_MSG = (
103
100
  "I apologize, but I cannot process your request as it appears to violate our content guidelines. "
104
101
  "This could be due to:\n"
@@ -13,10 +13,7 @@ from pydantic import BaseModel, Field
13
13
 
14
14
  from glchat_plugin.config.constant import (
15
15
  GUARDRAIL_ERR_MSG,
16
- WEB_SEARCH_BLACKLIST_DEFAULT,
17
- WEB_SEARCH_WHITELIST_DEFAULT,
18
16
  GuardrailMode,
19
- ReferenceFormatterType,
20
17
  SearchType,
21
18
  TopicSafetyMode,
22
19
  )
@@ -33,35 +30,22 @@ class BasePipelinePresetConfig(BaseModel):
33
30
  support_multimodal (bool): Whether the pipeline supports multimodal.
34
31
  use_docproc (bool): Whether to use the document processor.
35
32
  search_types (list[SearchType]): The supported search types.
36
- allowed_topics (str): The allowed topics.
37
- anonymize_em (bool): Whether to anonymize before using the embedding model.
38
- anonymize_lm (bool): Whether to anonymize before using the language model.
39
- augment_context (bool): Whether context augmentation from the knowledge base is allowed.
40
- banned_phrases (str): The banned phrases.
41
- chat_history_limit (int): The chat history limit. If the value is negative, no limit will be applied.
42
33
  enable_guardrails (bool): Whether to enable guardrails.
43
- enable_memory (bool): Whether to enable memory.
44
- enable_smart_search_integration (bool): Whether to enable smart search integration.
45
- guardrail_fallback_message (str): The guardrail fallback message.
46
34
  guardrail_mode (GuardrailMode): The guardrail mode.
47
- normal_search_top_k (int): The top k for normal search. Must be greater than or equal to 1.
48
- prompt_context_char_threshold (int): The character limit above which the prompt is assumed
49
- to have contained the context.
50
- reference_formatter_batch_size (int): The reference formatter batch size.
51
- reference_formatter_threshold (float): The reference formatter threshold.
52
- reference_formatter_type (ReferenceFormatterType): The reference formatter type.
53
- rerank_kwargs (str): The rerank kwargs.
54
- rerank_type (str): The rerank type.
35
+ banned_phrases (str): The banned phrases.
36
+ topic_safety_mode (TopicSafetyMode): The topic safety mode.
37
+ allowed_topics (str): The allowed topics.
38
+ guardrail_fallback_message (str): The guardrail fallback message.
55
39
  retrieve_memory_threshold (float): The retrieve memory threshold.
56
40
  retrieve_memory_top_k (int): The retrieve memory top k.
57
- smart_search_top_k (int): The top k for smart search. Must be greater than or equal to 1.
58
- topic_safety_mode (TopicSafetyMode): The topic safety mode.
41
+ enable_memory (bool): Whether to enable memory.
42
+ enable_live_chat (bool): Whether to enable live chat.
59
43
  use_cache (bool): Whether to use cache.
60
- use_model_knowledge (bool): Whether to use model knowledge.
61
- vector_weight (float): The vector weight. Must be between 0 and 1 (inclusive).
62
- web_search_blacklist (str): The web search blacklist.
63
- web_search_top_k (int): The top k for web search. Must be greater than or equal to 1.
64
- web_search_whitelist (str): The web search whitelist.
44
+ chat_history_limit (int): The chat history limit.
45
+ anonymize_em (bool): Whether to anonymize before using the embedding model.
46
+ anonymize_lm (bool): Whether to anonymize before using the language model.
47
+ prompt_context_char_threshold (int): The character limit above which the prompt is assumed
48
+ to have contained the context.
65
49
  """
66
50
 
67
51
  pipeline_preset_id: str
@@ -71,31 +55,18 @@ class BasePipelinePresetConfig(BaseModel):
71
55
  support_multimodal: bool
72
56
  use_docproc: bool
73
57
  search_types: list[SearchType]
74
- allowed_topics: str = "[]"
75
- anonymize_em: bool
76
- anonymize_lm: bool
77
- augment_context: bool
78
- banned_phrases: str = "[]"
79
- chat_history_limit: int
80
58
  enable_guardrails: bool = False
81
- enable_memory: bool = False
82
- enable_smart_search_integration: bool = False
83
- guardrail_fallback_message: str = Field(default=GUARDRAIL_ERR_MSG)
84
59
  guardrail_mode: GuardrailMode = Field(default=GuardrailMode.INPUT_ONLY)
85
- normal_search_top_k: int = Field(ge=1)
86
- prompt_context_char_threshold: int = 32000
87
- reference_formatter_batch_size: int = Field(ge=1)
88
- reference_formatter_threshold: float = Field(ge=0, le=1)
89
- reference_formatter_type: ReferenceFormatterType
90
- rerank_kwargs: str = "{}"
91
- rerank_type: str = ""
60
+ banned_phrases: str = "[]"
61
+ topic_safety_mode: TopicSafetyMode = TopicSafetyMode.HYBRID
62
+ allowed_topics: str = "[]"
63
+ guardrail_fallback_message: str = Field(default=GUARDRAIL_ERR_MSG)
92
64
  retrieve_memory_threshold: float = Field(default=0.3, ge=0, le=1)
93
65
  retrieve_memory_top_k: int = Field(default=10, ge=1)
94
- smart_search_top_k: int = Field(ge=1)
95
- topic_safety_mode: TopicSafetyMode = Field(default=TopicSafetyMode.HYBRID)
66
+ enable_memory: bool = False
67
+ enable_live_chat: bool = False
96
68
  use_cache: bool
97
- use_model_knowledge: bool
98
- vector_weight: float = Field(ge=0, le=1)
99
- web_search_blacklist: str = Field(default=WEB_SEARCH_BLACKLIST_DEFAULT)
100
- web_search_top_k: int = Field(ge=1)
101
- web_search_whitelist: str = Field(default=WEB_SEARCH_WHITELIST_DEFAULT)
69
+ chat_history_limit: int
70
+ anonymize_em: bool
71
+ anonymize_lm: bool
72
+ prompt_context_char_threshold: int
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: glchat-plugin
3
- Version: 0.3.1
3
+ Version: 0.3.3
4
4
  Author-email: GenAI SDK Team <gat-sdk@gdplabs.id>
5
5
  Requires-Python: <3.13,>=3.11
6
6
  Description-Content-Type: text/markdown
@@ -1,13 +1,13 @@
1
1
  glchat_plugin/__init__.py,sha256=SHSBMz7JDU6MecyIrhHu5-3NVs89JkXhyvD3ZGOkWOE,37
2
2
  glchat_plugin/config/__init__.py,sha256=DNnX8B_TvAN89oyMgq32zG1DeaezODrihiAXTwOPT5o,39
3
3
  glchat_plugin/config/app_config.py,sha256=9_ShYtaQ7Rp14sSkrIFLoOAMlbwVlm13EuCxzOn4NCI,426
4
- glchat_plugin/config/constant.py,sha256=Hsex2hjz4yV9lSFeLWMp5i9lRTUOiwBXYx5FZu584Nk,3577
4
+ glchat_plugin/config/constant.py,sha256=pwyVTMHVxoPB3qE5ZbbhTXDob-dIa8TRt363wyqfy10,3504
5
5
  glchat_plugin/context/__init__.py,sha256=3Wx_apMIS6z-m6eRs6hoyOsJFLJfKmMFOkrPDkPQfJI,40
6
6
  glchat_plugin/context/context_manager.py,sha256=0lhO0w_hd5dUdIEJQ2LOJFZsgpzitQU_aPZfTfQK3vw,1302
7
7
  glchat_plugin/handler/__init__.py,sha256=H5DJaAfwwtRsvMcOaEzHfGMQk25H7la0E7uPfksWtoQ,40
8
8
  glchat_plugin/handler/base_post_login_handler.py,sha256=48xSbe_LwTCjRY-lCuzWXqbnEr1ql8bAhQih1Xeh8f8,2835
9
9
  glchat_plugin/pipeline/__init__.py,sha256=Sk-NfIGyA9VKIg0Bt5OHatNUYyWVPh9i5xhE5DFAfbo,41
10
- glchat_plugin/pipeline/base_pipeline_preset_config.py,sha256=QkFDllWXwj4bKyH4sF9yjknhVNrSR9ZPiXHIS_hANSc,4683
10
+ glchat_plugin/pipeline/base_pipeline_preset_config.py,sha256=vr453A2Nx09LqBYbsAVsMutD952wKh3udE1L4vXKyEI,2852
11
11
  glchat_plugin/pipeline/pipeline_handler.py,sha256=aCRvhS6Dkhmqsx_Ya-2t2PbMseacw1VI6PUEOQq0RsM,25620
12
12
  glchat_plugin/pipeline/pipeline_plugin.py,sha256=fozvxVrOphgwLIF7uPrEkF8ZQcu8xgifYAQyuxj9628,4393
13
13
  glchat_plugin/service/__init__.py,sha256=9T4qzyYL052qLqva5el1F575OTRNaaf9tb9UvW-leTc,47
@@ -19,7 +19,7 @@ glchat_plugin/storage/base_anonymizer_storage.py,sha256=oFwovWrsjM7v1YjeN-4p-M3O
19
19
  glchat_plugin/storage/base_chat_history_storage.py,sha256=JvUUFMu_9jRBQ9yug_x7S4rQjZEA1vM5ombDvz-7zCE,11095
20
20
  glchat_plugin/tools/__init__.py,sha256=OFotHbgQ8mZEbdlvlv5aVMdxfubPvkVWAcTwhIPdIqQ,542
21
21
  glchat_plugin/tools/decorators.py,sha256=AvQBV18wzXWdC483RSSmpfh92zsqTyp8SzDLIkreIGU,3925
22
- glchat_plugin-0.3.1.dist-info/METADATA,sha256=lUYcNuRxb6cJitJlkaLH5dMuO9F1vWyczplOYi7LsFM,2063
23
- glchat_plugin-0.3.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
24
- glchat_plugin-0.3.1.dist-info/top_level.txt,sha256=fzKSXmct5dY4CAKku4-mkdHX-QPAyQVvo8vpQj8qizY,14
25
- glchat_plugin-0.3.1.dist-info/RECORD,,
22
+ glchat_plugin-0.3.3.dist-info/METADATA,sha256=1bozXLkRzmPPfsaos_a0yBtzHr_2jmg_NlJFIaBYEME,2063
23
+ glchat_plugin-0.3.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
24
+ glchat_plugin-0.3.3.dist-info/top_level.txt,sha256=fzKSXmct5dY4CAKku4-mkdHX-QPAyQVvo8vpQj8qizY,14
25
+ glchat_plugin-0.3.3.dist-info/RECORD,,