alita-sdk 0.3.399__py3-none-any.whl → 0.3.400__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/tools/code_indexer_toolkit.py +3 -3
- {alita_sdk-0.3.399.dist-info → alita_sdk-0.3.400.dist-info}/METADATA +1 -1
- {alita_sdk-0.3.399.dist-info → alita_sdk-0.3.400.dist-info}/RECORD +6 -6
- {alita_sdk-0.3.399.dist-info → alita_sdk-0.3.400.dist-info}/WHEEL +0 -0
- {alita_sdk-0.3.399.dist-info → alita_sdk-0.3.400.dist-info}/licenses/LICENSE +0 -0
- {alita_sdk-0.3.399.dist-info → alita_sdk-0.3.400.dist-info}/top_level.txt +0 -0
|
@@ -21,7 +21,7 @@ class CodeIndexerToolkit(BaseIndexerToolkit):
|
|
|
21
21
|
return self.vector_adapter.get_code_indexed_data(self, index_name)
|
|
22
22
|
|
|
23
23
|
def key_fn(self, document: Document):
|
|
24
|
-
return document.metadata.get(
|
|
24
|
+
return document.metadata.get("filename")
|
|
25
25
|
|
|
26
26
|
def compare_fn(self, document: Document, idx_data):
|
|
27
27
|
return (document.metadata.get('commit_hash') and
|
|
@@ -46,7 +46,7 @@ class CodeIndexerToolkit(BaseIndexerToolkit):
|
|
|
46
46
|
)
|
|
47
47
|
|
|
48
48
|
def _extend_data(self, documents: Generator[Document, None, None]):
|
|
49
|
-
yield from
|
|
49
|
+
yield from documents
|
|
50
50
|
|
|
51
51
|
def _index_tool_params(self):
|
|
52
52
|
"""Return the parameters for indexing data."""
|
|
@@ -127,7 +127,7 @@ class CodeIndexerToolkit(BaseIndexerToolkit):
|
|
|
127
127
|
self._log_tool_event(message=f"{idx} out of {total_files} files have been read", tool_name="loader")
|
|
128
128
|
self._log_tool_event(message=f"{len(_files)} have been read", tool_name="loader")
|
|
129
129
|
|
|
130
|
-
return file_content_generator()
|
|
130
|
+
return parse_code_files_for_db(file_content_generator())
|
|
131
131
|
|
|
132
132
|
def __handle_get_files(self, path: str, branch: str):
|
|
133
133
|
"""
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: alita_sdk
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.400
|
|
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
|
|
@@ -137,7 +137,7 @@ alita_sdk/runtime/utils/toolkit_utils.py,sha256=I9QFqnaqfVgN26LUr6s3XlBlG6y0CoHU
|
|
|
137
137
|
alita_sdk/runtime/utils/utils.py,sha256=PJK8A-JVIzY1IowOjGG8DIqsIiEFe65qDKvFcjJCKWA,1041
|
|
138
138
|
alita_sdk/tools/__init__.py,sha256=6g3Y2zI88IEgVu3BhmsBJfqrV0DFuFehkpID_ip0Eus,11038
|
|
139
139
|
alita_sdk/tools/base_indexer_toolkit.py,sha256=7UTcrmvGvmIBF3WGKrsEp7zJL-XB1JIgaRkbE1ZSS9A,26439
|
|
140
|
-
alita_sdk/tools/code_indexer_toolkit.py,sha256=
|
|
140
|
+
alita_sdk/tools/code_indexer_toolkit.py,sha256=0vFsNti6lLwXM1Tbv45eAFhv7DAvVFUjWEHFJjCdIrU,7298
|
|
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
|
|
143
143
|
alita_sdk/tools/ado/__init__.py,sha256=NnNYpNFW0_N_v1td_iekYOoQRRB7PIunbpT2f9ZFJM4,1201
|
|
@@ -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.400.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
357
|
+
alita_sdk-0.3.400.dist-info/METADATA,sha256=XUEvHwBtYJOrg_f2eacT98FvqzmgYMAzpFmXTSI68RA,19071
|
|
358
|
+
alita_sdk-0.3.400.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
359
|
+
alita_sdk-0.3.400.dist-info/top_level.txt,sha256=0vJYy5p_jK6AwVb1aqXr7Kgqgk3WDtQ6t5C-XI9zkmg,10
|
|
360
|
+
alita_sdk-0.3.400.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|