haystack-experimental 0.14.1__tar.gz → 0.14.2__tar.gz
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.
- {haystack_experimental-0.14.1 → haystack_experimental-0.14.2}/PKG-INFO +1 -1
- {haystack_experimental-0.14.1 → haystack_experimental-0.14.2}/haystack_experimental/components/agents/agent.py +15 -2
- {haystack_experimental-0.14.1 → haystack_experimental-0.14.2}/haystack_experimental/components/query/query_expander.py +1 -1
- {haystack_experimental-0.14.1 → haystack_experimental-0.14.2}/.gitignore +0 -0
- {haystack_experimental-0.14.1 → haystack_experimental-0.14.2}/LICENSE +0 -0
- {haystack_experimental-0.14.1 → haystack_experimental-0.14.2}/LICENSE-MIT.txt +0 -0
- {haystack_experimental-0.14.1 → haystack_experimental-0.14.2}/README.md +0 -0
- {haystack_experimental-0.14.1 → haystack_experimental-0.14.2}/haystack_experimental/__init__.py +0 -0
- {haystack_experimental-0.14.1 → haystack_experimental-0.14.2}/haystack_experimental/chat_message_stores/__init__.py +0 -0
- {haystack_experimental-0.14.1 → haystack_experimental-0.14.2}/haystack_experimental/chat_message_stores/in_memory.py +0 -0
- {haystack_experimental-0.14.1 → haystack_experimental-0.14.2}/haystack_experimental/chat_message_stores/types.py +0 -0
- {haystack_experimental-0.14.1 → haystack_experimental-0.14.2}/haystack_experimental/components/__init__.py +0 -0
- {haystack_experimental-0.14.1 → haystack_experimental-0.14.2}/haystack_experimental/components/agents/__init__.py +0 -0
- {haystack_experimental-0.14.1 → haystack_experimental-0.14.2}/haystack_experimental/components/agents/human_in_the_loop/__init__.py +0 -0
- {haystack_experimental-0.14.1 → haystack_experimental-0.14.2}/haystack_experimental/components/agents/human_in_the_loop/breakpoint.py +0 -0
- {haystack_experimental-0.14.1 → haystack_experimental-0.14.2}/haystack_experimental/components/agents/human_in_the_loop/dataclasses.py +0 -0
- {haystack_experimental-0.14.1 → haystack_experimental-0.14.2}/haystack_experimental/components/agents/human_in_the_loop/errors.py +0 -0
- {haystack_experimental-0.14.1 → haystack_experimental-0.14.2}/haystack_experimental/components/agents/human_in_the_loop/policies.py +0 -0
- {haystack_experimental-0.14.1 → haystack_experimental-0.14.2}/haystack_experimental/components/agents/human_in_the_loop/strategies.py +0 -0
- {haystack_experimental-0.14.1 → haystack_experimental-0.14.2}/haystack_experimental/components/agents/human_in_the_loop/types.py +0 -0
- {haystack_experimental-0.14.1 → haystack_experimental-0.14.2}/haystack_experimental/components/agents/human_in_the_loop/user_interfaces.py +0 -0
- {haystack_experimental-0.14.1 → haystack_experimental-0.14.2}/haystack_experimental/components/embedders/__init__.py +0 -0
- {haystack_experimental-0.14.1 → haystack_experimental-0.14.2}/haystack_experimental/components/embedders/types/__init__.py +0 -0
- {haystack_experimental-0.14.1 → haystack_experimental-0.14.2}/haystack_experimental/components/embedders/types/protocol.py +0 -0
- {haystack_experimental-0.14.1 → haystack_experimental-0.14.2}/haystack_experimental/components/generators/__init__.py +0 -0
- {haystack_experimental-0.14.1 → haystack_experimental-0.14.2}/haystack_experimental/components/generators/chat/__init__.py +0 -0
- {haystack_experimental-0.14.1 → haystack_experimental-0.14.2}/haystack_experimental/components/generators/chat/openai.py +0 -0
- {haystack_experimental-0.14.1 → haystack_experimental-0.14.2}/haystack_experimental/components/preprocessors/__init__.py +0 -0
- {haystack_experimental-0.14.1 → haystack_experimental-0.14.2}/haystack_experimental/components/preprocessors/embedding_based_document_splitter.py +0 -0
- {haystack_experimental-0.14.1 → haystack_experimental-0.14.2}/haystack_experimental/components/preprocessors/md_header_level_inferrer.py +0 -0
- {haystack_experimental-0.14.1 → haystack_experimental-0.14.2}/haystack_experimental/components/query/__init__.py +0 -0
- {haystack_experimental-0.14.1 → haystack_experimental-0.14.2}/haystack_experimental/components/retrievers/__init__.py +0 -0
- {haystack_experimental-0.14.1 → haystack_experimental-0.14.2}/haystack_experimental/components/retrievers/chat_message_retriever.py +0 -0
- {haystack_experimental-0.14.1 → haystack_experimental-0.14.2}/haystack_experimental/components/retrievers/multi_query_embedding_retriever.py +0 -0
- {haystack_experimental-0.14.1 → haystack_experimental-0.14.2}/haystack_experimental/components/retrievers/multi_query_text_retriever.py +0 -0
- {haystack_experimental-0.14.1 → haystack_experimental-0.14.2}/haystack_experimental/components/retrievers/types/__init__.py +0 -0
- {haystack_experimental-0.14.1 → haystack_experimental-0.14.2}/haystack_experimental/components/retrievers/types/protocol.py +0 -0
- {haystack_experimental-0.14.1 → haystack_experimental-0.14.2}/haystack_experimental/components/summarizers/__init__.py +0 -0
- {haystack_experimental-0.14.1 → haystack_experimental-0.14.2}/haystack_experimental/components/summarizers/llm_summarizer.py +0 -0
- {haystack_experimental-0.14.1 → haystack_experimental-0.14.2}/haystack_experimental/components/writers/__init__.py +0 -0
- {haystack_experimental-0.14.1 → haystack_experimental-0.14.2}/haystack_experimental/components/writers/chat_message_writer.py +0 -0
- {haystack_experimental-0.14.1 → haystack_experimental-0.14.2}/haystack_experimental/core/__init__.py +0 -0
- {haystack_experimental-0.14.1 → haystack_experimental-0.14.2}/haystack_experimental/core/pipeline/__init__.py +0 -0
- {haystack_experimental-0.14.1 → haystack_experimental-0.14.2}/haystack_experimental/core/pipeline/breakpoint.py +0 -0
- {haystack_experimental-0.14.1 → haystack_experimental-0.14.2}/haystack_experimental/dataclasses/__init__.py +0 -0
- {haystack_experimental-0.14.1 → haystack_experimental-0.14.2}/haystack_experimental/dataclasses/breakpoints.py +0 -0
- {haystack_experimental-0.14.1 → haystack_experimental-0.14.2}/haystack_experimental/super_components/__init__.py +0 -0
- {haystack_experimental-0.14.1 → haystack_experimental-0.14.2}/haystack_experimental/super_components/indexers/__init__.py +0 -0
- {haystack_experimental-0.14.1 → haystack_experimental-0.14.2}/haystack_experimental/super_components/indexers/sentence_transformers_document_indexer.py +0 -0
- {haystack_experimental-0.14.1 → haystack_experimental-0.14.2}/haystack_experimental/utils/__init__.py +0 -0
- {haystack_experimental-0.14.1 → haystack_experimental-0.14.2}/haystack_experimental/utils/hallucination_risk_calculator/__init__.py +0 -0
- {haystack_experimental-0.14.1 → haystack_experimental-0.14.2}/haystack_experimental/utils/hallucination_risk_calculator/core_math.py +0 -0
- {haystack_experimental-0.14.1 → haystack_experimental-0.14.2}/haystack_experimental/utils/hallucination_risk_calculator/dataclasses.py +0 -0
- {haystack_experimental-0.14.1 → haystack_experimental-0.14.2}/haystack_experimental/utils/hallucination_risk_calculator/openai_planner.py +0 -0
- {haystack_experimental-0.14.1 → haystack_experimental-0.14.2}/haystack_experimental/utils/hallucination_risk_calculator/skeletonization.py +0 -0
- {haystack_experimental-0.14.1 → haystack_experimental-0.14.2}/pyproject.toml +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: haystack-experimental
|
|
3
|
-
Version: 0.14.
|
|
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
|
|
@@ -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
|
-
|
|
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
|
-
|
|
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"]}
|
|
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.
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{haystack_experimental-0.14.1 → haystack_experimental-0.14.2}/haystack_experimental/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{haystack_experimental-0.14.1 → haystack_experimental-0.14.2}/haystack_experimental/core/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|