haystack-experimental 0.14.1__py3-none-any.whl → 0.14.2__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.
@@ -5,6 +5,7 @@
5
5
  # pylint: disable=wrong-import-order,wrong-import-position,ungrouped-imports
6
6
  # ruff: noqa: I001
7
7
 
8
+ import inspect
8
9
  from dataclasses import dataclass
9
10
  from typing import Any, Optional, Union
10
11
 
@@ -285,7 +286,13 @@ class Agent(HaystackAgent):
285
286
  "snapshot": snapshot,
286
287
  **kwargs,
287
288
  }
288
- self._runtime_checks(break_point=break_point, snapshot=snapshot)
289
+ # The PR https://github.com/deepset-ai/haystack/pull/9987 removed the unused snapshot parameter from
290
+ # _runtime_checks. This change will be released in Haystack 2.20.0.
291
+ # To maintain compatibility with Haystack 2.19 we check the number of parameters and call accordingly.
292
+ if len(inspect.signature(self._runtime_checks).parameters) == 2:
293
+ self._runtime_checks(break_point, snapshot)
294
+ else:
295
+ self._runtime_checks(break_point) # type: ignore[call-arg] # pylint: disable=no-value-for-parameter
289
296
 
290
297
  if snapshot:
291
298
  exe_context = self._initialize_from_snapshot(
@@ -472,7 +479,13 @@ class Agent(HaystackAgent):
472
479
  "snapshot": snapshot,
473
480
  **kwargs,
474
481
  }
475
- self._runtime_checks(break_point=break_point, snapshot=snapshot)
482
+ # The PR https://github.com/deepset-ai/haystack/pull/9987 removed the unused snapshot parameter from
483
+ # _runtime_checks. This change will be released in Haystack 2.20.0.
484
+ # To maintain compatibility with Haystack 2.19 we check the number of parameters and call accordingly.
485
+ if len(inspect.signature(self._runtime_checks).parameters) == 2:
486
+ self._runtime_checks(break_point, snapshot)
487
+ else:
488
+ self._runtime_checks(break_point) # type: ignore[call-arg] # pylint: disable=no-value-for-parameter
476
489
 
477
490
  if snapshot:
478
491
  exe_context = self._initialize_from_snapshot(
@@ -99,7 +99,7 @@ class QueryExpander:
99
99
  If None, a default OpenAIChatGenerator with gpt-4.1-mini model is used.
100
100
  :param prompt_template: Custom [PromptBuilder](https://docs.haystack.deepset.ai/docs/promptbuilder)
101
101
  template for query expansion. The template should instruct the LLM to return a JSON response with the
102
- structure: {"queries": ["query1", "query2", "query3"]}. The template should include 'query' and
102
+ structure: `{"queries": ["query1", "query2", "query3"]}`. The template should include 'query' and
103
103
  'n_expansions' variables.
104
104
  :param n_expansions: Number of alternative queries to generate (default: 4).
105
105
  :param include_original_query: Whether to include the original query in the output.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: haystack-experimental
3
- Version: 0.14.1
3
+ Version: 0.14.2
4
4
  Summary: Experimental components and features for the Haystack LLM framework.
5
5
  Project-URL: CI: GitHub, https://github.com/deepset-ai/haystack-experimental/actions
6
6
  Project-URL: GitHub: issues, https://github.com/deepset-ai/haystack-experimental/issues
@@ -4,7 +4,7 @@ haystack_experimental/chat_message_stores/in_memory.py,sha256=nc_B_70KOvtgsul4QJ
4
4
  haystack_experimental/chat_message_stores/types.py,sha256=QzjA5-A08PlMAy7MMLNNUpob8S60Ypec74gSbz_l49E,2101
5
5
  haystack_experimental/components/__init__.py,sha256=eHD7xrty2PCky_gG3ty19rpM4WfV32TyytM7gJODwl4,110
6
6
  haystack_experimental/components/agents/__init__.py,sha256=Sxu9LxPpQ5cljgoTgUeNC0GY8CwUdiSy1JWkd_-RRJ4,414
7
- haystack_experimental/components/agents/agent.py,sha256=jJ5baKFgT4PNuf2vu2dlm5AyJ9O7stlK94_1zk2u2OA,31814
7
+ haystack_experimental/components/agents/agent.py,sha256=1H8fzEp97QtRWXx336PDRj1lJEUyH4aYr-HcHbNZvTw,32789
8
8
  haystack_experimental/components/agents/human_in_the_loop/__init__.py,sha256=xLr1G9pNWMmCpKN9mbv6yqeFfwMcbZyaVfCkzlwMxhY,1674
9
9
  haystack_experimental/components/agents/human_in_the_loop/breakpoint.py,sha256=GhNdGdFNDnwSiTukD4WVp6-1YgGjq5oqCEcGMC2dcog,2902
10
10
  haystack_experimental/components/agents/human_in_the_loop/dataclasses.py,sha256=OakB0PXBSG0LbQixcuo-d7IC-A3_k6qi80pB8hwY23o,2563
@@ -23,7 +23,7 @@ haystack_experimental/components/preprocessors/__init__.py,sha256=x3fM1lpGzYjWB3
23
23
  haystack_experimental/components/preprocessors/embedding_based_document_splitter.py,sha256=VyQ--gaMsWid-IRBVXi5YPJpwbFlaK-2mRFvRF8MSBQ,17616
24
24
  haystack_experimental/components/preprocessors/md_header_level_inferrer.py,sha256=1Tn-H4Gvg2yYSUc54cPWKTCK78KXet5u32_1S8PM3NU,5643
25
25
  haystack_experimental/components/query/__init__.py,sha256=quaqe16cbtgIdJx7d56CMdk1zZQ6f_3_TICsU0HF_U8,446
26
- haystack_experimental/components/query/query_expander.py,sha256=zc9i2zP3ciOWWr029wO_lw3Tl8W3_kQcYcoHDs5Nj8c,12293
26
+ haystack_experimental/components/query/query_expander.py,sha256=cZAT6ThSXXfeI-Fg2FrnqWn7uOvl9m5z8Pz8wKvrJuw,12295
27
27
  haystack_experimental/components/retrievers/__init__.py,sha256=CqPvqyvGp5L3Y1gTVQC8DD_xHzbIfTzGlj3oCsZM3J8,528
28
28
  haystack_experimental/components/retrievers/chat_message_retriever.py,sha256=CaAgW1qzzhMYyKNOyk-eIBgSsO7Bg7uDqAtgcorCE60,4030
29
29
  haystack_experimental/components/retrievers/multi_query_embedding_retriever.py,sha256=IAjAh3SqsKx_d8QEfRAqVYNDL5UUuBb3GNJPDGjokjU,8103
@@ -48,8 +48,8 @@ haystack_experimental/utils/hallucination_risk_calculator/core_math.py,sha256=8X
48
48
  haystack_experimental/utils/hallucination_risk_calculator/dataclasses.py,sha256=3vk9jsbW-7C9n408Qe730qgdXxIOzsTigf4TMLpryvI,2318
49
49
  haystack_experimental/utils/hallucination_risk_calculator/openai_planner.py,sha256=-yVQsGzM5rXsAVwolE6sp5W6q1yDw66SiIUuUbPk1ng,11413
50
50
  haystack_experimental/utils/hallucination_risk_calculator/skeletonization.py,sha256=qNdBUoFiBjQsI3ovrhd4RyTFmIbv51Goai1Z_l9lG28,5488
51
- haystack_experimental-0.14.1.dist-info/METADATA,sha256=A1DesX7H05AtVp4S8PD99UIfyFy3cQB_y1a4Oho9Nmc,18566
52
- haystack_experimental-0.14.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
53
- haystack_experimental-0.14.1.dist-info/licenses/LICENSE,sha256=93_5nS97uHxptHvK9E8BZgKxLGeIS-rBWT2swIv-X5Y,11368
54
- haystack_experimental-0.14.1.dist-info/licenses/LICENSE-MIT.txt,sha256=knmLkIKj_6tTrTSVRg9Tq88Kww4UCPLt2I1RGXJv9sQ,1037
55
- haystack_experimental-0.14.1.dist-info/RECORD,,
51
+ haystack_experimental-0.14.2.dist-info/METADATA,sha256=5wj3kC9aQ6B3TOrh9FNXmkbQMD1nEnF2eUoRc-B2yqA,18566
52
+ haystack_experimental-0.14.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
53
+ haystack_experimental-0.14.2.dist-info/licenses/LICENSE,sha256=93_5nS97uHxptHvK9E8BZgKxLGeIS-rBWT2swIv-X5Y,11368
54
+ haystack_experimental-0.14.2.dist-info/licenses/LICENSE-MIT.txt,sha256=knmLkIKj_6tTrTSVRg9Tq88Kww4UCPLt2I1RGXJv9sQ,1037
55
+ haystack_experimental-0.14.2.dist-info/RECORD,,