alita-sdk 0.3.389__py3-none-any.whl → 0.3.391__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 alita-sdk might be problematic. Click here for more details.
- alita_sdk/runtime/langchain/utils.py +7 -1
- alita_sdk/tools/base_indexer_toolkit.py +1 -1
- alita_sdk/tools/vector_adapters/VectorStoreAdapter.py +6 -2
- {alita_sdk-0.3.389.dist-info → alita_sdk-0.3.391.dist-info}/METADATA +1 -1
- {alita_sdk-0.3.389.dist-info → alita_sdk-0.3.391.dist-info}/RECORD +8 -8
- {alita_sdk-0.3.389.dist-info → alita_sdk-0.3.391.dist-info}/WHEEL +0 -0
- {alita_sdk-0.3.389.dist-info → alita_sdk-0.3.391.dist-info}/licenses/LICENSE +0 -0
- {alita_sdk-0.3.389.dist-info → alita_sdk-0.3.391.dist-info}/top_level.txt +0 -0
|
@@ -181,7 +181,13 @@ def propagate_the_input_mapping(input_mapping: dict[str, dict], input_variables:
|
|
|
181
181
|
input_data[key] = value['value'].format(**var_dict)
|
|
182
182
|
except KeyError as e:
|
|
183
183
|
logger.error(f"KeyError in fstring formatting for key '{key}'. Attempt to find proper data in state.\n{e}")
|
|
184
|
-
|
|
184
|
+
try:
|
|
185
|
+
# search for variables in state if not found in var_dict
|
|
186
|
+
input_data[key] = value['value'].format(**state)
|
|
187
|
+
except KeyError as no_var_exception:
|
|
188
|
+
logger.error(f"KeyError in fstring formatting for key '{key}' with state data.\n{no_var_exception}")
|
|
189
|
+
# leave value as is if still not found (could be a constant string marked as fstring by mistake)
|
|
190
|
+
input_data[key] = value['value']
|
|
185
191
|
elif value['type'] == 'fixed':
|
|
186
192
|
input_data[key] = value['value']
|
|
187
193
|
else:
|
|
@@ -179,7 +179,7 @@ class BaseIndexerToolkit(VectorStoreWrapperBase):
|
|
|
179
179
|
return {"status": "ok", "message": f"successfully indexed {results_count} documents" if results_count > 0
|
|
180
180
|
else "no new documents to index"}
|
|
181
181
|
except Exception as e:
|
|
182
|
-
self.index_meta_update(index_name, IndexerKeywords.INDEX_META_FAILED.value,
|
|
182
|
+
self.index_meta_update(index_name, IndexerKeywords.INDEX_META_FAILED.value, result["count"])
|
|
183
183
|
raise e
|
|
184
184
|
|
|
185
185
|
|
|
@@ -109,7 +109,7 @@ class PGVectorAdapter(VectorStoreAdapter):
|
|
|
109
109
|
def get_indexed_ids(self, vectorstore_wrapper, index_name: Optional[str] = '') -> List[str]:
|
|
110
110
|
"""Get all indexed document IDs from PGVector"""
|
|
111
111
|
from sqlalchemy.orm import Session
|
|
112
|
-
from sqlalchemy import func
|
|
112
|
+
from sqlalchemy import func, or_
|
|
113
113
|
|
|
114
114
|
store = vectorstore_wrapper.vectorstore
|
|
115
115
|
try:
|
|
@@ -120,7 +120,11 @@ class PGVectorAdapter(VectorStoreAdapter):
|
|
|
120
120
|
if index_name:
|
|
121
121
|
query = query.filter(
|
|
122
122
|
func.jsonb_extract_path_text(store.EmbeddingStore.cmetadata, 'collection') == index_name,
|
|
123
|
-
|
|
123
|
+
or_(
|
|
124
|
+
func.jsonb_extract_path_text(store.EmbeddingStore.cmetadata, 'type').is_(None),
|
|
125
|
+
func.jsonb_extract_path_text(store.EmbeddingStore.cmetadata,
|
|
126
|
+
'type') != IndexerKeywords.INDEX_META_TYPE.value
|
|
127
|
+
)
|
|
124
128
|
)
|
|
125
129
|
ids = query.all()
|
|
126
130
|
return [str(id_tuple[0]) for id_tuple in ids]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: alita_sdk
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.391
|
|
4
4
|
Summary: SDK for building langchain agents using resources from Alita
|
|
5
5
|
Author-email: Artem Rozumenko <artyom.rozumenko@gmail.com>, Mikalai Biazruchka <mikalai_biazruchka@epam.com>, Roman Mitusov <roman_mitusov@epam.com>, Ivan Krakhmaliuk <lifedj27@gmail.com>, Artem Dubrovskiy <ad13box@gmail.com>
|
|
6
6
|
License-Expression: Apache-2.0
|
|
@@ -49,7 +49,7 @@ alita_sdk/runtime/langchain/langraph_agent.py,sha256=p9okbdkZhG4qY0GHNm4PL6ZGQwV
|
|
|
49
49
|
alita_sdk/runtime/langchain/mixedAgentParser.py,sha256=M256lvtsL3YtYflBCEp-rWKrKtcY1dJIyRGVv7KW9ME,2611
|
|
50
50
|
alita_sdk/runtime/langchain/mixedAgentRenderes.py,sha256=asBtKqm88QhZRILditjYICwFVKF5KfO38hu2O-WrSWE,5964
|
|
51
51
|
alita_sdk/runtime/langchain/store_manager.py,sha256=i8Fl11IXJhrBXq1F1ukEVln57B1IBe-tqSUvfUmBV4A,2218
|
|
52
|
-
alita_sdk/runtime/langchain/utils.py,sha256=
|
|
52
|
+
alita_sdk/runtime/langchain/utils.py,sha256=rLh2POmA7mzO9vR7yTlEIYWOCp9ANuBDJe4sl1AjA5A,7574
|
|
53
53
|
alita_sdk/runtime/langchain/agents/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
54
54
|
alita_sdk/runtime/langchain/agents/xml_chat.py,sha256=Mx7PK5T97_GrFCwHHZ3JZP42S7MwtUzV0W-_8j6Amt8,6212
|
|
55
55
|
alita_sdk/runtime/langchain/document_loaders/AlitaBDDScenariosLoader.py,sha256=4kFU1ijrM1Jw7cywQv8mUiBHlE6w-uqfzSZP4hUV5P4,3771
|
|
@@ -136,7 +136,7 @@ alita_sdk/runtime/utils/toolkit_runtime.py,sha256=MU63Fpxj0b5_r1IUUc0Q3-PN9VwL7r
|
|
|
136
136
|
alita_sdk/runtime/utils/toolkit_utils.py,sha256=I9QFqnaqfVgN26LUr6s3XlBlG6y0CoHURnCzG7XcwVs,5311
|
|
137
137
|
alita_sdk/runtime/utils/utils.py,sha256=PJK8A-JVIzY1IowOjGG8DIqsIiEFe65qDKvFcjJCKWA,1041
|
|
138
138
|
alita_sdk/tools/__init__.py,sha256=NrZyTEdEhmO1NnAR9RFMQ05Mb-kgu68mAQz3n5r0HYs,10692
|
|
139
|
-
alita_sdk/tools/base_indexer_toolkit.py,sha256=
|
|
139
|
+
alita_sdk/tools/base_indexer_toolkit.py,sha256=mgl2Uc0xkRlkuA_fx-qvtO0LO8gRrCvJQUdtedzSkys,25224
|
|
140
140
|
alita_sdk/tools/code_indexer_toolkit.py,sha256=p3zVnCnQTUf7JUGra9Rl6GEK2W1-hvvz0Xsgz0v0muM,7292
|
|
141
141
|
alita_sdk/tools/elitea_base.py,sha256=34fmVdYgd2YXifU5LFNjMQysr4OOIZ6AOZjq4GxLgSw,34417
|
|
142
142
|
alita_sdk/tools/non_code_indexer_toolkit.py,sha256=6Lrqor1VeSLbPLDHAfg_7UAUqKFy1r_n6bdsc4-ak98,1315
|
|
@@ -332,7 +332,7 @@ alita_sdk/tools/testrail/api_wrapper.py,sha256=tQcGlFJmftvs5ZiO4tsP19fCo4CrJeq_U
|
|
|
332
332
|
alita_sdk/tools/utils/__init__.py,sha256=xB9OQgW65DftadrSpoAAitnEIbIXZKBOCji0NDe7FRM,3923
|
|
333
333
|
alita_sdk/tools/utils/available_tools_decorator.py,sha256=IbrdfeQkswxUFgvvN7-dyLMZMyXLiwvX7kgi3phciCk,273
|
|
334
334
|
alita_sdk/tools/utils/content_parser.py,sha256=7ohj8HeL_-rmc-Fv0TS8IpxIQC8tOpfuhyT3XlWx-gQ,15368
|
|
335
|
-
alita_sdk/tools/vector_adapters/VectorStoreAdapter.py,sha256=
|
|
335
|
+
alita_sdk/tools/vector_adapters/VectorStoreAdapter.py,sha256=RIDWVqONN5z6CyMkqfkSUbOlGWaBDQoUreHPwZYJXPc,19389
|
|
336
336
|
alita_sdk/tools/vector_adapters/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
337
337
|
alita_sdk/tools/xray/__init__.py,sha256=eOMWP8VamFbbJgt1xrGpGPqB9ByOTA0Cd3LCaETzGk4,4376
|
|
338
338
|
alita_sdk/tools/xray/api_wrapper.py,sha256=uj5kzUgPdo_Oct9WCNMOpkb6o_3L7J4LZrEGtrwYMmc,30157
|
|
@@ -353,8 +353,8 @@ alita_sdk/tools/zephyr_scale/api_wrapper.py,sha256=kT0TbmMvuKhDUZc0i7KO18O38JM9S
|
|
|
353
353
|
alita_sdk/tools/zephyr_squad/__init__.py,sha256=0ne8XLJEQSLOWfzd2HdnqOYmQlUliKHbBED5kW_Vias,2895
|
|
354
354
|
alita_sdk/tools/zephyr_squad/api_wrapper.py,sha256=kmw_xol8YIYFplBLWTqP_VKPRhL_1ItDD0_vXTe_UuI,14906
|
|
355
355
|
alita_sdk/tools/zephyr_squad/zephyr_squad_cloud_client.py,sha256=R371waHsms4sllHCbijKYs90C-9Yu0sSR3N4SUfQOgU,5066
|
|
356
|
-
alita_sdk-0.3.
|
|
357
|
-
alita_sdk-0.3.
|
|
358
|
-
alita_sdk-0.3.
|
|
359
|
-
alita_sdk-0.3.
|
|
360
|
-
alita_sdk-0.3.
|
|
356
|
+
alita_sdk-0.3.391.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
357
|
+
alita_sdk-0.3.391.dist-info/METADATA,sha256=ezfSHQ0lNP1x_5-E0IYrMlydmJH8oe6mMqycT_gcAo4,19071
|
|
358
|
+
alita_sdk-0.3.391.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
359
|
+
alita_sdk-0.3.391.dist-info/top_level.txt,sha256=0vJYy5p_jK6AwVb1aqXr7Kgqgk3WDtQ6t5C-XI9zkmg,10
|
|
360
|
+
alita_sdk-0.3.391.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|