haystack-ai 3.4.0.dev20261007000336__tar.gz → 3.4.0.dev20261008000321__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_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/PKG-INFO +1 -1
- haystack_ai-3.4.0.dev20261008000321/VERSION.txt +1 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/agents/agent.py +46 -1
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/converters/docx.py +37 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/converters/html.py +14 -5
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/generators/chat/openai_responses.py +13 -22
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/query/query_expander.py +9 -8
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/rankers/llm_ranker.py +9 -8
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/core/pipeline/pipeline.py +6 -4
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/document_stores/types/filter_policy.py +31 -9
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/evaluation/eval_run_result.py +1 -1
- haystack_ai-3.4.0.dev20261007000336/VERSION.txt +0 -1
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/.gitignore +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/LICENSE +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/README.md +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/__init__.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/__init__.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/agents/__init__.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/agents/state/__init__.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/agents/state/state.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/agents/state/state_utils.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/agents/tool_calling.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/agents/utils.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/builders/__init__.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/builders/answer_builder.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/builders/chat_prompt_builder.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/builders/prompt_builder.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/caching/__init__.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/caching/cache_checker.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/converters/__init__.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/converters/csv.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/converters/file_to_file_content.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/converters/image/__init__.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/converters/image/document_to_image.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/converters/image/file_to_document.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/converters/image/file_to_image.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/converters/image/image_utils.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/converters/image/pdf_to_image.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/converters/json.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/converters/markdown.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/converters/msg.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/converters/multi_file_converter.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/converters/output_adapter.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/converters/pdfminer.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/converters/pptx.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/converters/pypdf.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/converters/txt.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/converters/utils.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/converters/xlsx.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/embedders/__init__.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/embedders/azure_document_embedder.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/embedders/azure_text_embedder.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/embedders/mock_document_embedder.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/embedders/mock_text_embedder.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/embedders/mock_utils.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/embedders/openai_document_embedder.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/embedders/openai_text_embedder.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/embedders/types/__init__.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/embedders/types/protocol.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/evaluators/__init__.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/evaluators/answer_exact_match.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/evaluators/context_relevance.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/evaluators/document_map.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/evaluators/document_mrr.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/evaluators/document_ndcg.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/evaluators/document_recall.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/evaluators/faithfulness.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/evaluators/llm_evaluator.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/evaluators/sas_evaluator.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/extractors/__init__.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/extractors/image/__init__.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/extractors/image/llm_document_content_extractor.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/extractors/llm_metadata_extractor.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/extractors/regex_text_extractor.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/fetchers/__init__.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/fetchers/link_content.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/generators/__init__.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/generators/chat/__init__.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/generators/chat/azure.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/generators/chat/azure_responses.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/generators/chat/fallback.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/generators/chat/llm.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/generators/chat/mock.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/generators/chat/openai.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/generators/chat/types/__init__.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/generators/chat/types/protocol.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/generators/openai_image_generator.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/generators/utils.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/joiners/__init__.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/joiners/answer_joiner.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/joiners/branch.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/joiners/document_joiner.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/joiners/list_joiner.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/joiners/string_joiner.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/preprocessors/__init__.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/preprocessors/_page_numbers.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/preprocessors/csv_document_cleaner.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/preprocessors/csv_document_splitter.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/preprocessors/document_cleaner.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/preprocessors/document_preprocessor.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/preprocessors/document_splitter.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/preprocessors/embedding_based_document_splitter.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/preprocessors/hierarchical_document_splitter.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/preprocessors/markdown_header_splitter.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/preprocessors/python_code_splitter.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/preprocessors/recursive_splitter.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/preprocessors/sentence_tokenizer.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/preprocessors/text_cleaner.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/query/__init__.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/rankers/__init__.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/rankers/lost_in_the_middle.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/rankers/meta_field.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/rankers/meta_field_grouping_ranker.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/retrievers/__init__.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/retrievers/auto_merging_retriever.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/retrievers/filter_retriever.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/retrievers/in_memory/__init__.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/retrievers/in_memory/bm25_retriever.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/retrievers/in_memory/embedding_retriever.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/retrievers/multi_query_embedding_retriever.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/retrievers/multi_query_text_retriever.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/retrievers/multi_retriever.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/retrievers/sentence_window_retriever.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/retrievers/text_embedding_retriever.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/retrievers/types/__init__.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/retrievers/types/protocol.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/routers/__init__.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/routers/conditional_router.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/routers/document_length_router.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/routers/document_type_router.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/routers/file_type_router.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/routers/llm_messages_router.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/routers/metadata_router.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/samplers/__init__.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/samplers/top_p.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/validators/__init__.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/validators/json_schema.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/writers/__init__.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/components/writers/document_writer.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/core/__init__.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/core/component/__init__.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/core/component/component.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/core/component/sockets.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/core/component/types.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/core/errors.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/core/pipeline/__init__.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/core/pipeline/base.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/core/pipeline/breakpoint.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/core/pipeline/component_checks.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/core/pipeline/descriptions.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/core/pipeline/draw.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/core/pipeline/utils.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/core/serialization.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/core/serialization_security.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/core/super_component/__init__.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/core/super_component/super_component.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/core/super_component/utils.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/core/type_utils.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/data/abbreviations/de.txt +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/data/abbreviations/en.txt +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/dataclasses/__init__.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/dataclasses/answer.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/dataclasses/breakpoints.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/dataclasses/byte_stream.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/dataclasses/chat_message.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/dataclasses/document.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/dataclasses/file_content.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/dataclasses/image_content.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/dataclasses/skill_info.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/dataclasses/sparse_embedding.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/dataclasses/streaming_chunk.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/document_stores/__init__.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/document_stores/errors/__init__.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/document_stores/errors/errors.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/document_stores/in_memory/__init__.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/document_stores/in_memory/document_store.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/document_stores/types/__init__.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/document_stores/types/policy.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/document_stores/types/protocol.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/errors.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/evaluation/__init__.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/hooks/__init__.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/hooks/budget/__init__.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/hooks/budget/hooks.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/hooks/compaction/AGENTS.md +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/hooks/compaction/CLAUDE.md +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/hooks/compaction/__init__.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/hooks/compaction/hooks.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/hooks/compaction/sliding_window.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/hooks/compaction/summarization.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/hooks/compaction/tool_result_pruning.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/hooks/compaction/types/__init__.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/hooks/compaction/types/protocol.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/hooks/compaction/utils.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/hooks/from_function.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/hooks/human_in_the_loop/__init__.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/hooks/human_in_the_loop/dataclasses.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/hooks/human_in_the_loop/hooks.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/hooks/human_in_the_loop/policies.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/hooks/human_in_the_loop/strategies.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/hooks/human_in_the_loop/types/__init__.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/hooks/human_in_the_loop/types/protocol.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/hooks/human_in_the_loop/user_interfaces.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/hooks/invocation.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/hooks/protocol.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/hooks/tool_result_offloading/__init__.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/hooks/tool_result_offloading/hooks.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/hooks/tool_result_offloading/policies.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/hooks/tool_result_offloading/stores.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/hooks/tool_result_offloading/types/__init__.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/hooks/tool_result_offloading/types/protocol.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/hooks/utils.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/lazy_imports.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/logging.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/marshal/__init__.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/marshal/protocol.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/marshal/yaml.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/py.typed +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/skill_stores/__init__.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/skill_stores/file_system/__init__.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/skill_stores/file_system/skill_store.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/skill_stores/types/__init__.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/skill_stores/types/protocol.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/telemetry/__init__.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/telemetry/_environment.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/telemetry/_telemetry.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/testing/__init__.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/testing/callable_serialization/random_callable.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/testing/document_store.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/testing/document_store_async.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/testing/factory.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/testing/sample_components/__init__.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/testing/sample_components/accumulate.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/testing/sample_components/add_value.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/testing/sample_components/concatenate.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/testing/sample_components/double.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/testing/sample_components/fstring.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/testing/sample_components/future_annotations.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/testing/sample_components/greet.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/testing/sample_components/hello.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/testing/sample_components/joiner.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/testing/sample_components/parity.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/testing/sample_components/remainder.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/testing/sample_components/repeat.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/testing/sample_components/subtract.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/testing/sample_components/sum.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/testing/sample_components/text_splitter.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/testing/sample_components/threshold.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/testing/telemetry.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/testing/test_utils.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/token_counters/__init__.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/token_counters/approximate_counter.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/token_counters/openai_counter.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/token_counters/tiktoken_counter.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/token_counters/types/__init__.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/token_counters/types/protocol.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/token_counters/utils.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/tools/__init__.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/tools/agent_tool.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/tools/component_tool.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/tools/errors.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/tools/from_function.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/tools/parameters_schema_utils.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/tools/pipeline_tool.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/tools/searchable_toolset.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/tools/serde_utils.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/tools/skills/__init__.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/tools/skills/skill_toolset.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/tools/tool.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/tools/tool_types.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/tools/toolset.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/tools/utils.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/tracing/__init__.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/tracing/logging_tracer.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/tracing/tracer.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/tracing/utils.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/utils/__init__.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/utils/async_utils.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/utils/auth.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/utils/azure.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/utils/base_serialization.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/utils/callable_serialization.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/utils/dataclasses.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/utils/deserialization.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/utils/device.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/utils/experimental.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/utils/filters.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/utils/hf.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/utils/http_client.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/utils/jinja2_chat_extension.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/utils/jinja2_extensions.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/utils/jinja2_sandbox.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/utils/jupyter.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/utils/misc.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/utils/requests_utils.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/utils/type_serialization.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/utils/url_validation.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/version.py +0 -0
- {haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/pyproject.toml +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: haystack-ai
|
|
3
|
-
Version: 3.4.0.
|
|
3
|
+
Version: 3.4.0.dev20261008000321
|
|
4
4
|
Summary: LLM framework to build customizable, production-ready LLM applications. Connect components (models, vector DBs, file converters) to pipelines or agents that can interact with your data.
|
|
5
5
|
Project-URL: CI: GitHub, https://github.com/deepset-ai/haystack/actions
|
|
6
6
|
Project-URL: Docs: RTD, https://haystack.deepset.ai/overview/intro
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3.4.0.dev20261008000321
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
# SPDX-License-Identifier: Apache-2.0
|
|
4
4
|
|
|
5
5
|
import inspect
|
|
6
|
+
from collections import Counter
|
|
6
7
|
from dataclasses import dataclass
|
|
7
8
|
from typing import Any, Literal, cast
|
|
8
9
|
|
|
@@ -28,7 +29,12 @@ from haystack.components.agents.utils import (
|
|
|
28
29
|
)
|
|
29
30
|
from haystack.components.builders import ChatPromptBuilder
|
|
30
31
|
from haystack.components.generators.chat.types import ChatGenerator
|
|
31
|
-
from haystack.core.serialization import
|
|
32
|
+
from haystack.core.serialization import (
|
|
33
|
+
component_to_dict,
|
|
34
|
+
default_from_dict,
|
|
35
|
+
default_to_dict,
|
|
36
|
+
generate_qualified_class_name,
|
|
37
|
+
)
|
|
32
38
|
from haystack.dataclasses import ChatMessage, ChatRole, StreamingCallbackT, select_streaming_callback
|
|
33
39
|
from haystack.hooks.invocation import _run_hooks, _run_hooks_async
|
|
34
40
|
from haystack.hooks.protocol import (
|
|
@@ -51,6 +57,8 @@ from haystack.hooks.utils import (
|
|
|
51
57
|
warm_up_hooks_async,
|
|
52
58
|
)
|
|
53
59
|
from haystack.tools import (
|
|
60
|
+
ComponentTool,
|
|
61
|
+
Tool,
|
|
54
62
|
Toolset,
|
|
55
63
|
ToolsType,
|
|
56
64
|
_check_duplicate_tool_names,
|
|
@@ -202,6 +210,34 @@ def _pending_tool_call_messages_from_state(state: State) -> list[ChatMessage]:
|
|
|
202
210
|
return [last_message] if last_message.tool_calls else []
|
|
203
211
|
|
|
204
212
|
|
|
213
|
+
def _get_tool_telemetry_data(tool: Tool) -> dict[str, Any]:
|
|
214
|
+
"""
|
|
215
|
+
Describe a single tool for telemetry.
|
|
216
|
+
|
|
217
|
+
Descriptions are deliberately left out: they are free text that can hold personal or confidential data.
|
|
218
|
+
"""
|
|
219
|
+
data = {"type": generate_qualified_class_name(type(tool)), "name": tool.name}
|
|
220
|
+
if isinstance(tool, ComponentTool):
|
|
221
|
+
data["component"] = generate_qualified_class_name(type(tool._component))
|
|
222
|
+
return data
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
def _get_tools_telemetry_data(tools: ToolsType) -> dict[str, Any]:
|
|
226
|
+
"""
|
|
227
|
+
Summarize the tools for telemetry.
|
|
228
|
+
|
|
229
|
+
Call it only after the tools are warmed up: flattening iterates the Toolsets, and some of them (e.g.
|
|
230
|
+
SearchableToolset) warm up on iteration, while others (e.g. MCPToolset) only load their tools in `warm_up()`.
|
|
231
|
+
"""
|
|
232
|
+
toolsets = [tools] if isinstance(tools, Toolset) else [entry for entry in tools if isinstance(entry, Toolset)]
|
|
233
|
+
flat_tools = flatten_tools_or_toolsets(tools=tools)
|
|
234
|
+
return {
|
|
235
|
+
"count": len(flat_tools),
|
|
236
|
+
"tools": [_get_tool_telemetry_data(tool) for tool in flat_tools],
|
|
237
|
+
"toolset_types": dict(Counter(generate_qualified_class_name(type(toolset)) for toolset in toolsets)),
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
|
|
205
241
|
@dataclass(kw_only=True)
|
|
206
242
|
class _ExecutionContext:
|
|
207
243
|
"""
|
|
@@ -638,6 +674,15 @@ class Agent:
|
|
|
638
674
|
params: dict[str, Any] = {name: getattr(self, name) for name in init_params if name != "self"}
|
|
639
675
|
return type(self)(**{**params, **overrides})
|
|
640
676
|
|
|
677
|
+
def _get_telemetry_data(self) -> dict[str, Any]:
|
|
678
|
+
"""
|
|
679
|
+
Data that is sent to Posthog for usage analytics.
|
|
680
|
+
"""
|
|
681
|
+
chat_generator_data: dict[str, Any] = {"type": generate_qualified_class_name(type(self.chat_generator))}
|
|
682
|
+
if hasattr(self.chat_generator, "_get_telemetry_data"):
|
|
683
|
+
chat_generator_data.update(self.chat_generator._get_telemetry_data())
|
|
684
|
+
return {"chat_generator": chat_generator_data, "tools": _get_tools_telemetry_data(self.tools)}
|
|
685
|
+
|
|
641
686
|
def to_dict(self) -> dict[str, Any]:
|
|
642
687
|
"""
|
|
643
688
|
Serialize the component to a dictionary.
|
|
@@ -19,6 +19,14 @@ from haystack.lazy_imports import LazyImport
|
|
|
19
19
|
|
|
20
20
|
logger = logging.getLogger(__name__)
|
|
21
21
|
|
|
22
|
+
_WORD_NS = "http://schemas.openxmlformats.org/wordprocessingml/2006/main"
|
|
23
|
+
_MARKUP_COMPATIBILITY_NS = "http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
24
|
+
# A text box keeps its paragraphs here, nested under the drawing inside a run.
|
|
25
|
+
_TEXT_BOX_CONTENT_TAG = f"{{{_WORD_NS}}}txbxContent"
|
|
26
|
+
# Word writes a text box twice inside `mc:AlternateContent`: a `wps:txbx` under
|
|
27
|
+
# `mc:Choice` and the same text as a VML text box under `mc:Fallback`.
|
|
28
|
+
_FALLBACK_TAG = f"{{{_MARKUP_COMPATIBILITY_NS}}}Fallback"
|
|
29
|
+
|
|
22
30
|
# A Markdown table row ends at a line break and its columns are separated by pipes, so
|
|
23
31
|
# neither can survive inside a cell.
|
|
24
32
|
_MARKDOWN_CELL_BREAK_PATTERN = re.compile(r"\s*(?:\r\n|\r|\n)\s*")
|
|
@@ -251,6 +259,7 @@ class DOCXToDocument:
|
|
|
251
259
|
else:
|
|
252
260
|
para_text = self._process_links_in_paragraph(paragraph)
|
|
253
261
|
elements.append(para_text)
|
|
262
|
+
elements.extend(self._extract_text_boxes(element, document))
|
|
254
263
|
elif element.tag.endswith("tbl"):
|
|
255
264
|
table = docx.table.Table(element, document)
|
|
256
265
|
table_str = (
|
|
@@ -262,6 +271,34 @@ class DOCXToDocument:
|
|
|
262
271
|
|
|
263
272
|
return elements
|
|
264
273
|
|
|
274
|
+
def _extract_text_boxes(self, element: Any, document: "DocxDocument") -> list[str]:
|
|
275
|
+
"""
|
|
276
|
+
Extracts the text of any text box anchored to a paragraph.
|
|
277
|
+
|
|
278
|
+
A text box holds its own paragraphs and tables under `w:txbxContent`, nested in
|
|
279
|
+
the drawing inside a run, so the anchoring paragraph's text never reaches them.
|
|
280
|
+
|
|
281
|
+
:param element: The `w:p` element to look under.
|
|
282
|
+
:param document: The DOCX Document object.
|
|
283
|
+
:returns: List of strings, one per paragraph or table found inside a text box.
|
|
284
|
+
"""
|
|
285
|
+
elements = []
|
|
286
|
+
for text_box in element.iter(_TEXT_BOX_CONTENT_TAG):
|
|
287
|
+
# Skip the `mc:Fallback` copy, or the same text is emitted twice.
|
|
288
|
+
if any(ancestor.tag == _FALLBACK_TAG for ancestor in text_box.iterancestors()):
|
|
289
|
+
continue
|
|
290
|
+
for child in text_box:
|
|
291
|
+
if child.tag.endswith("p"):
|
|
292
|
+
elements.append(self._process_links_in_paragraph(Paragraph(child, document)))
|
|
293
|
+
elif child.tag.endswith("tbl"):
|
|
294
|
+
table = docx.table.Table(child, document)
|
|
295
|
+
elements.append(
|
|
296
|
+
self._table_to_markdown(table)
|
|
297
|
+
if self.table_format == DOCXTableFormat.MARKDOWN
|
|
298
|
+
else self._table_to_csv(table)
|
|
299
|
+
)
|
|
300
|
+
return elements
|
|
301
|
+
|
|
265
302
|
def _process_paragraph_with_page_breaks(self, paragraph: "Paragraph") -> str:
|
|
266
303
|
"""
|
|
267
304
|
Processes a paragraph with page breaks.
|
|
@@ -36,7 +36,10 @@ class HTMLToDocument:
|
|
|
36
36
|
"""
|
|
37
37
|
|
|
38
38
|
def __init__(
|
|
39
|
-
self,
|
|
39
|
+
self,
|
|
40
|
+
extraction_kwargs: dict[str, Any] | None = None,
|
|
41
|
+
store_full_path: bool = False,
|
|
42
|
+
encoding: str | None = None,
|
|
40
43
|
) -> None:
|
|
41
44
|
"""
|
|
42
45
|
Create an HTMLToDocument component.
|
|
@@ -48,8 +51,9 @@ class HTMLToDocument:
|
|
|
48
51
|
If True, the full path of the file is stored in the metadata of the document.
|
|
49
52
|
If False, only the file name is stored.
|
|
50
53
|
:param encoding:
|
|
51
|
-
The
|
|
52
|
-
|
|
54
|
+
The encoding to use when decoding HTML files. If None (the default), Trafilatura detects the encoding.
|
|
55
|
+
If detection produces incorrect characters, install `trafilatura[all]` for additional encoding detection
|
|
56
|
+
support, or set this parameter if you know the encoding.
|
|
53
57
|
"""
|
|
54
58
|
trafilatura_import.check()
|
|
55
59
|
|
|
@@ -124,8 +128,9 @@ class HTMLToDocument:
|
|
|
124
128
|
continue
|
|
125
129
|
|
|
126
130
|
try:
|
|
127
|
-
|
|
128
|
-
|
|
131
|
+
html_bytes = bytestream.data
|
|
132
|
+
html_content = html_bytes.decode(self.encoding) if self.encoding is not None else html_bytes
|
|
133
|
+
text = extract(html_content, **merged_extraction_kwargs)
|
|
129
134
|
except Exception as conversion_e:
|
|
130
135
|
logger.warning(
|
|
131
136
|
"Failed to extract text from {source}. Skipping it. Error: {error}",
|
|
@@ -134,6 +139,10 @@ class HTMLToDocument:
|
|
|
134
139
|
)
|
|
135
140
|
continue
|
|
136
141
|
|
|
142
|
+
if text is None:
|
|
143
|
+
logger.warning("No text could be extracted from {source}. Skipping it.", source=source)
|
|
144
|
+
continue
|
|
145
|
+
|
|
137
146
|
merged_metadata = {**bytestream.meta, **metadata}
|
|
138
147
|
|
|
139
148
|
if not self.store_full_path and "file_path" in bytestream.meta:
|
|
@@ -183,6 +183,8 @@ class OpenAIResponsesChatGenerator:
|
|
|
183
183
|
- `generate_summary`: Whether to generate a summary of the reasoning.
|
|
184
184
|
- `mode`: The reasoning mode. Can be `standard`, or `pro`. Supported since GPT-5.6.
|
|
185
185
|
Note: OpenAI does not return the reasoning tokens, but we can view summary if its enabled.
|
|
186
|
+
If a provider returns the raw reasoning as `reasoning_text` content instead,
|
|
187
|
+
it is mapped to `ReasoningContent.reasoning_text` when no summary is returned.
|
|
186
188
|
For details, see the [OpenAI Reasoning documentation](https://platform.openai.com/docs/guides/reasoning).
|
|
187
189
|
- `include`: Specify additional output data to include in the model response. Supported values are:
|
|
188
190
|
- web_search_call.action.sources: Include the sources of the web search tool call.
|
|
@@ -662,20 +664,13 @@ def _convert_response_to_chat_message(responses: Response | ParsedResponse) -> C
|
|
|
662
664
|
logprobs.append(_serialize_object(content.logprobs))
|
|
663
665
|
|
|
664
666
|
if output.type == "reasoning":
|
|
665
|
-
# openai doesn't return the reasoning tokens, but we can view summary if its enabled
|
|
666
|
-
# https://platform.openai.com/docs/guides/reasoning#reasoning-summaries
|
|
667
|
-
summaries = output.summary
|
|
668
667
|
extra = output.to_dict()
|
|
669
668
|
# we dont need the summary in the extra
|
|
670
669
|
extra.pop("summary")
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
"reflected in ReasoningContent.reasoning_text.",
|
|
676
|
-
_id=output.id,
|
|
677
|
-
)
|
|
678
|
-
reasoning_text = "\n".join([summary.text for summary in summaries if summaries])
|
|
670
|
+
# OpenAI returns reasoning summaries, other providers may return raw reasoning as `reasoning_text` content
|
|
671
|
+
reasoning_text = "\n".join(summary.text for summary in output.summary)
|
|
672
|
+
if not reasoning_text:
|
|
673
|
+
reasoning_text = "\n".join(part.text for part in output.content or [] if part.type == "reasoning_text")
|
|
679
674
|
reasoning = ReasoningContent(reasoning_text=reasoning_text, extra=extra)
|
|
680
675
|
|
|
681
676
|
elif output.type == "function_call":
|
|
@@ -761,15 +756,7 @@ def _convert_response_chunk_to_streaming_chunk( # noqa: PLR0911
|
|
|
761
756
|
# event falls through to the generic default and reasoning=None, so encrypted_content
|
|
762
757
|
# is never available for multi-turn conversations.
|
|
763
758
|
if chunk.item.type == "reasoning":
|
|
764
|
-
|
|
765
|
-
logger.warning(
|
|
766
|
-
"OpenAI returned a non-empty 'content' field on a reasoning item ({_id}). "
|
|
767
|
-
"This field is currently undocumented and was never observed in practice. "
|
|
768
|
-
"The content is preserved in ReasoningContent.extra['content'] but is NOT "
|
|
769
|
-
"reflected in ReasoningContent.reasoning_text. Please report this at "
|
|
770
|
-
"https://github.com/deepset-ai/haystack/issues so we can update the mapping.",
|
|
771
|
-
_id=chunk.item.id,
|
|
772
|
-
)
|
|
759
|
+
# The completed item repeats the reasoning text already streamed as deltas, so we only keep its fields
|
|
773
760
|
reasoning = ReasoningContent(reasoning_text="", extra=chunk.item.to_dict())
|
|
774
761
|
return StreamingChunk(
|
|
775
762
|
content="",
|
|
@@ -804,7 +791,10 @@ def _convert_response_chunk_to_streaming_chunk( # noqa: PLR0911
|
|
|
804
791
|
meta={**chunk.to_dict(), "received_at": datetime.now().isoformat()},
|
|
805
792
|
)
|
|
806
793
|
|
|
807
|
-
|
|
794
|
+
# Unlike non-streaming, where raw reasoning text is only a fallback when there is no summary, summary and raw
|
|
795
|
+
# reasoning deltas are both streamed as they arrive and end up concatenated in the final reasoning_text.
|
|
796
|
+
# In practice this rarely matters, because providers usually send only one kind.
|
|
797
|
+
elif chunk.type in ("response.reasoning_summary_text.delta", "response.reasoning_text.delta"):
|
|
808
798
|
# We remove the delta from the extra because it is already in the reasoning_text
|
|
809
799
|
# Remaining information needs to be saved for chat message
|
|
810
800
|
extra = chunk.to_dict()
|
|
@@ -1042,7 +1032,8 @@ def _convert_chat_message_to_responses_api_format(message: ChatMessage) -> list[
|
|
|
1042
1032
|
_valid_reasoning_fields = {"id", "type", "encrypted_content", "status", "content"}
|
|
1043
1033
|
filtered_extra = {k: v for k, v in reasoning.extra.items() if k in _valid_reasoning_fields}
|
|
1044
1034
|
reasoning_item = {"summary": [], **filtered_extra}
|
|
1045
|
-
|
|
1035
|
+
# Raw reasoning text is already sent back in `content`, repeating it as a summary would duplicate it
|
|
1036
|
+
if reasoning.reasoning_text and not filtered_extra.get("content"):
|
|
1046
1037
|
reasoning_item["summary"] = [{"text": reasoning.reasoning_text, "type": "summary_text"}]
|
|
1047
1038
|
formatted_reasonings.append(reasoning_item)
|
|
1048
1039
|
formatted_messages.extend(formatted_reasonings)
|
|
@@ -6,7 +6,7 @@ from typing import Any
|
|
|
6
6
|
|
|
7
7
|
from haystack import default_from_dict, default_to_dict, logging
|
|
8
8
|
from haystack.components.builders.prompt_builder import PromptBuilder
|
|
9
|
-
from haystack.components.generators.chat.
|
|
9
|
+
from haystack.components.generators.chat.openai_responses import OpenAIResponsesChatGenerator
|
|
10
10
|
from haystack.components.generators.chat.types import ChatGenerator
|
|
11
11
|
from haystack.components.generators.utils import _trace_chat_generator_run
|
|
12
12
|
from haystack.core.component import component
|
|
@@ -98,7 +98,8 @@ class QueryExpander:
|
|
|
98
98
|
Initialize the QueryExpander component.
|
|
99
99
|
|
|
100
100
|
:param chat_generator: The chat generator component to use for query expansion.
|
|
101
|
-
If None, a default
|
|
101
|
+
If None, a default `OpenAIResponsesChatGenerator` with the gpt-4.1-mini model and `store` set to `False`
|
|
102
|
+
is used.
|
|
102
103
|
:param prompt_template: Custom [PromptBuilder](https://docs.haystack.deepset.ai/docs/promptbuilder)
|
|
103
104
|
template for query expansion. The template should instruct the LLM to return a JSON response with the
|
|
104
105
|
structure: `{"queries": ["query1", "query2", "query3"]}`. The template should include 'query' and
|
|
@@ -113,13 +114,14 @@ class QueryExpander:
|
|
|
113
114
|
self.include_original_query = include_original_query
|
|
114
115
|
|
|
115
116
|
if chat_generator is None:
|
|
116
|
-
self.chat_generator: ChatGenerator =
|
|
117
|
+
self.chat_generator: ChatGenerator = OpenAIResponsesChatGenerator(
|
|
117
118
|
model="gpt-4.1-mini",
|
|
118
119
|
generation_kwargs={
|
|
119
120
|
"temperature": 0.7,
|
|
120
|
-
"
|
|
121
|
-
|
|
122
|
-
"
|
|
121
|
+
"store": False,
|
|
122
|
+
"text": {
|
|
123
|
+
"format": {
|
|
124
|
+
"type": "json_schema",
|
|
123
125
|
"name": "query_expansion",
|
|
124
126
|
"schema": {
|
|
125
127
|
"type": "object",
|
|
@@ -127,9 +129,8 @@ class QueryExpander:
|
|
|
127
129
|
"required": ["queries"],
|
|
128
130
|
"additionalProperties": False,
|
|
129
131
|
},
|
|
130
|
-
}
|
|
132
|
+
}
|
|
131
133
|
},
|
|
132
|
-
"seed": 42,
|
|
133
134
|
},
|
|
134
135
|
)
|
|
135
136
|
else:
|
|
@@ -6,7 +6,7 @@ from typing import Any
|
|
|
6
6
|
|
|
7
7
|
from haystack import Document, component, default_from_dict, default_to_dict, logging
|
|
8
8
|
from haystack.components.builders import PromptBuilder
|
|
9
|
-
from haystack.components.generators.chat.
|
|
9
|
+
from haystack.components.generators.chat.openai_responses import OpenAIResponsesChatGenerator
|
|
10
10
|
from haystack.components.generators.chat.types import ChatGenerator
|
|
11
11
|
from haystack.components.generators.utils import _trace_chat_generator_run
|
|
12
12
|
from haystack.core.serialization import component_to_dict
|
|
@@ -19,13 +19,14 @@ logger = logging.getLogger(__name__)
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
def _default_openai_chat_generator() -> ChatGenerator:
|
|
22
|
-
return
|
|
22
|
+
return OpenAIResponsesChatGenerator(
|
|
23
23
|
model="gpt-4.1-mini",
|
|
24
24
|
generation_kwargs={
|
|
25
25
|
"temperature": 0.0,
|
|
26
|
-
"
|
|
27
|
-
|
|
28
|
-
"
|
|
26
|
+
"store": False,
|
|
27
|
+
"text": {
|
|
28
|
+
"format": {
|
|
29
|
+
"type": "json_schema",
|
|
29
30
|
"name": "document_ranking",
|
|
30
31
|
"schema": {
|
|
31
32
|
"type": "object",
|
|
@@ -43,7 +44,7 @@ def _default_openai_chat_generator() -> ChatGenerator:
|
|
|
43
44
|
"required": ["documents"],
|
|
44
45
|
"additionalProperties": False,
|
|
45
46
|
},
|
|
46
|
-
}
|
|
47
|
+
}
|
|
47
48
|
},
|
|
48
49
|
},
|
|
49
50
|
)
|
|
@@ -152,8 +153,8 @@ class LLMRanker:
|
|
|
152
153
|
Initialize the LLMRanker component.
|
|
153
154
|
|
|
154
155
|
:param chat_generator:
|
|
155
|
-
The chat generator to use for reranking. If `None`, a default `
|
|
156
|
-
output is used.
|
|
156
|
+
The chat generator to use for reranking. If `None`, a default `OpenAIResponsesChatGenerator` configured for
|
|
157
|
+
JSON output and with `store` set to `False` is used.
|
|
157
158
|
:param prompt:
|
|
158
159
|
Custom prompt template for reranking. The prompt must include exactly the variables `query` and
|
|
159
160
|
`documents` and instruct the LLM to return ranked 1-based document indices as JSON.
|
|
@@ -325,8 +325,6 @@ class Pipeline(PipelineBase):
|
|
|
325
325
|
:raises PipelineBreakpointException:
|
|
326
326
|
When a pipeline_breakpoint is triggered. Contains the component name, state, and partial results.
|
|
327
327
|
"""
|
|
328
|
-
pipeline_running(self) # telemetry
|
|
329
|
-
|
|
330
328
|
if (
|
|
331
329
|
break_point
|
|
332
330
|
and pipeline_snapshot
|
|
@@ -347,6 +345,9 @@ class Pipeline(PipelineBase):
|
|
|
347
345
|
# warm up the pipeline by running each component's warm_up method
|
|
348
346
|
self.warm_up()
|
|
349
347
|
|
|
348
|
+
# after warm-up, so toolsets that load their tools in warm_up() report them
|
|
349
|
+
pipeline_running(self) # telemetry
|
|
350
|
+
|
|
350
351
|
if include_outputs_from is None:
|
|
351
352
|
include_outputs_from = set()
|
|
352
353
|
|
|
@@ -900,11 +901,12 @@ class Pipeline(PipelineBase):
|
|
|
900
901
|
if concurrency_limit < 1:
|
|
901
902
|
raise ValueError("concurrency_limit must be greater than or equal to 1.")
|
|
902
903
|
|
|
903
|
-
pipeline_running(self) # telemetry
|
|
904
|
-
|
|
905
904
|
# warm up the pipeline by running each component's warm_up_async (or warm_up) method
|
|
906
905
|
await self.warm_up_async()
|
|
907
906
|
|
|
907
|
+
# after warm-up, so toolsets that load their tools in warm_up() report them
|
|
908
|
+
pipeline_running(self) # telemetry
|
|
909
|
+
|
|
908
910
|
if include_outputs_from is None:
|
|
909
911
|
include_outputs_from = set()
|
|
910
912
|
|
|
@@ -64,11 +64,11 @@ def combine_two_logical_filters(
|
|
|
64
64
|
init_logical_filter: dict[str, Any], runtime_logical_filter: dict[str, Any]
|
|
65
65
|
) -> dict[str, Any]:
|
|
66
66
|
"""
|
|
67
|
-
Combine two logical filters
|
|
67
|
+
Combine two logical filters.
|
|
68
68
|
|
|
69
|
-
If `
|
|
70
|
-
|
|
71
|
-
runtime_logical_filter` is returned.
|
|
69
|
+
If both operators are `"AND"`, a single `"AND"` holding the conditions of both is returned. If both use the
|
|
70
|
+
same other operator, both filters are nested under an `"AND"`. Otherwise, `init_logical_filter` is ignored and
|
|
71
|
+
`runtime_logical_filter` is returned.
|
|
72
72
|
|
|
73
73
|
__Example__:
|
|
74
74
|
|
|
@@ -87,9 +87,7 @@ def combine_two_logical_filters(
|
|
|
87
87
|
{"field": "meta.publisher", "operator": "==", "value": "nytimes"},
|
|
88
88
|
]
|
|
89
89
|
}
|
|
90
|
-
new_filters = combine_two_logical_filters(
|
|
91
|
-
init_logical_filter, runtime_logical_filter, "AND"
|
|
92
|
-
)
|
|
90
|
+
new_filters = combine_two_logical_filters(init_logical_filter, runtime_logical_filter)
|
|
93
91
|
# Output:
|
|
94
92
|
{
|
|
95
93
|
"operator": "AND",
|
|
@@ -101,11 +99,35 @@ def combine_two_logical_filters(
|
|
|
101
99
|
]
|
|
102
100
|
}
|
|
103
101
|
```
|
|
102
|
+
|
|
103
|
+
With `"OR"` on both sides the filters are nested instead of concatenated:
|
|
104
|
+
|
|
105
|
+
```python
|
|
106
|
+
init_logical_filter = {
|
|
107
|
+
"operator": "OR",
|
|
108
|
+
"conditions": [{"field": "meta.type", "operator": "==", "value": "article"}],
|
|
109
|
+
}
|
|
110
|
+
runtime_logical_filter = {
|
|
111
|
+
"operator": "OR",
|
|
112
|
+
"conditions": [{"field": "meta.genre", "operator": "==", "value": "economy"}],
|
|
113
|
+
}
|
|
114
|
+
new_filters = combine_two_logical_filters(init_logical_filter, runtime_logical_filter)
|
|
115
|
+
# Output:
|
|
116
|
+
{"operator": "AND", "conditions": [init_logical_filter, runtime_logical_filter]}
|
|
117
|
+
```
|
|
104
118
|
"""
|
|
105
119
|
if init_logical_filter["operator"] == runtime_logical_filter["operator"]:
|
|
120
|
+
if init_logical_filter["operator"] == "AND":
|
|
121
|
+
return {
|
|
122
|
+
"operator": "AND",
|
|
123
|
+
"conditions": init_logical_filter["conditions"] + runtime_logical_filter["conditions"],
|
|
124
|
+
}
|
|
106
125
|
return {
|
|
107
|
-
"operator":
|
|
108
|
-
"conditions":
|
|
126
|
+
"operator": "AND",
|
|
127
|
+
"conditions": [
|
|
128
|
+
{**init_logical_filter, "conditions": list(init_logical_filter["conditions"])},
|
|
129
|
+
{**runtime_logical_filter, "conditions": list(runtime_logical_filter["conditions"])},
|
|
130
|
+
],
|
|
109
131
|
}
|
|
110
132
|
|
|
111
133
|
logger.warning(
|
|
@@ -83,7 +83,7 @@ class EvaluationRunResult:
|
|
|
83
83
|
row = [data[header][i] for header in headers]
|
|
84
84
|
rows.append(row)
|
|
85
85
|
|
|
86
|
-
with open(csv_file, "w", newline="") as csvfile:
|
|
86
|
+
with open(csv_file, "w", newline="", encoding="utf-8") as csvfile:
|
|
87
87
|
writer = csv.writer(csvfile)
|
|
88
88
|
writer.writerow(headers)
|
|
89
89
|
writer.writerows(rows)
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
3.4.0.dev20261007000336
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{haystack_ai-3.4.0.dev20261007000336 → haystack_ai-3.4.0.dev20261008000321}/haystack/__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
|
|
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
|