alita-sdk 0.3.243__py3-none-any.whl → 0.3.244__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.
@@ -301,7 +301,7 @@ class BaseVectorStoreToolApiWrapper(BaseToolApiWrapper):
301
301
  collection_suffix = kwargs.get("collection_suffix")
302
302
  progress_step = kwargs.get("progress_step")
303
303
  clean_index = kwargs.get("clean_index")
304
- vs = self._init_vector_store(embeddings=self._embedding)
304
+ vs = self._init_vector_store()
305
305
  #
306
306
  return vs.index_documents(docs, collection_suffix=collection_suffix, progress_step=progress_step, clean_index=clean_index)
307
307
 
@@ -337,7 +337,7 @@ class BaseVectorStoreToolApiWrapper(BaseToolApiWrapper):
337
337
 
338
338
 
339
339
  # TODO: init store once and re-use the instance
340
- def _init_vector_store(self, embeddings: Optional[Any] = None):
340
+ def _init_vector_store(self):
341
341
  """Initializes the vector store wrapper with the provided parameters."""
342
342
  try:
343
343
  from alita_sdk.runtime.tools.vectorstore import VectorStoreWrapper
@@ -353,7 +353,7 @@ class BaseVectorStoreToolApiWrapper(BaseToolApiWrapper):
353
353
  embedding_model=self.embedding_model,
354
354
  embedding_model_params=self.embedding_model_params,
355
355
  vectorstore_params=vectorstore_params,
356
- embeddings=embeddings,
356
+ embeddings=self._embedding,
357
357
  process_document_func=self._process_documents,
358
358
  )
359
359
  return self._vector_store
@@ -411,7 +411,7 @@ class BaseVectorStoreToolApiWrapper(BaseToolApiWrapper):
411
411
  extended_search: Optional[List[str]] = None,
412
412
  **kwargs):
413
413
  """ Searches indexed documents in the vector store."""
414
- vectorstore = self._init_vector_store(collection_suffix)
414
+ vectorstore = self._init_vector_store()
415
415
  found_docs = vectorstore.stepback_search(
416
416
  query,
417
417
  messages,
@@ -436,7 +436,7 @@ class BaseVectorStoreToolApiWrapper(BaseToolApiWrapper):
436
436
  extended_search: Optional[List[str]] = None,
437
437
  **kwargs):
438
438
  """ Generates a summary of indexed documents using stepback technique."""
439
- vectorstore = self._init_vector_store(collection_suffix)
439
+ vectorstore = self._init_vector_store()
440
440
  return vectorstore.stepback_summary(
441
441
  query,
442
442
  messages,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: alita_sdk
3
- Version: 0.3.243
3
+ Version: 0.3.244
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 <lifedjik@gmail.com>, Artem Dubrovskiy <ad13box@gmail.com>
6
6
  License-Expression: Apache-2.0
@@ -114,7 +114,7 @@ alita_sdk/runtime/utils/toolkit_runtime.py,sha256=MU63Fpxj0b5_r1IUUc0Q3-PN9VwL7r
114
114
  alita_sdk/runtime/utils/toolkit_utils.py,sha256=I9QFqnaqfVgN26LUr6s3XlBlG6y0CoHURnCzG7XcwVs,5311
115
115
  alita_sdk/runtime/utils/utils.py,sha256=CpEl3LCeLbhzQySz08lkKPm7Auac6IiLF7WB8wmArMI,589
116
116
  alita_sdk/tools/__init__.py,sha256=ko5TToGYZFmBrho26DRAVvrkHWxQ2sfs8gVAASinYp8,10611
117
- alita_sdk/tools/elitea_base.py,sha256=lWvCQyJVeiAqIsZEOHqTygw0rCc11IUAEiAhkFy6wi0,30357
117
+ alita_sdk/tools/elitea_base.py,sha256=yRjU1FQwsGdDpUDSmgLb7p-ZYWLLJTgqSzIVC2jcACQ,30268
118
118
  alita_sdk/tools/ado/__init__.py,sha256=gGddsqMIQBz0vDbvhpEzw06dMOw7hfUO360F-gys6uI,1233
119
119
  alita_sdk/tools/ado/utils.py,sha256=PTCludvaQmPLakF2EbCGy66Mro4-rjDtavVP-xcB2Wc,1252
120
120
  alita_sdk/tools/ado/repos/__init__.py,sha256=d7WNLB0JmIw9-8_lhErpr2UBGknEG53Lwaxfbmqek40,5995
@@ -327,8 +327,8 @@ alita_sdk/tools/zephyr_scale/api_wrapper.py,sha256=JAeWf-RXohsxheUpT0iMDClc_izj-
327
327
  alita_sdk/tools/zephyr_squad/__init__.py,sha256=0AI_j27xVO5Gk5HQMFrqPTd4uvuVTpiZUicBrdfEpKg,2796
328
328
  alita_sdk/tools/zephyr_squad/api_wrapper.py,sha256=kmw_xol8YIYFplBLWTqP_VKPRhL_1ItDD0_vXTe_UuI,14906
329
329
  alita_sdk/tools/zephyr_squad/zephyr_squad_cloud_client.py,sha256=R371waHsms4sllHCbijKYs90C-9Yu0sSR3N4SUfQOgU,5066
330
- alita_sdk-0.3.243.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
331
- alita_sdk-0.3.243.dist-info/METADATA,sha256=cvQgmaiTW_SoVfZeNZoLZ6K4tpAwJpw2qvMFWxVQzMc,18897
332
- alita_sdk-0.3.243.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
333
- alita_sdk-0.3.243.dist-info/top_level.txt,sha256=0vJYy5p_jK6AwVb1aqXr7Kgqgk3WDtQ6t5C-XI9zkmg,10
334
- alita_sdk-0.3.243.dist-info/RECORD,,
330
+ alita_sdk-0.3.244.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
331
+ alita_sdk-0.3.244.dist-info/METADATA,sha256=iHCZk1YXDHaduaIGgDIeuuy3xQtcRpBltoNlIPIMLlY,18897
332
+ alita_sdk-0.3.244.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
333
+ alita_sdk-0.3.244.dist-info/top_level.txt,sha256=0vJYy5p_jK6AwVb1aqXr7Kgqgk3WDtQ6t5C-XI9zkmg,10
334
+ alita_sdk-0.3.244.dist-info/RECORD,,