2024-05-09 15:40:36 +02:00
|
|
|
# SPDX-FileCopyrightText: 2022-present deepset GmbH <info@deepset.ai>
|
|
|
|
|
#
|
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
|
2024-02-29 14:31:20 +01:00
|
|
|
import haystack.logging
|
2024-06-18 12:37:16 +02:00
|
|
|
import haystack.tracing
|
2023-11-28 09:58:56 +01:00
|
|
|
from haystack.core.component import component
|
2024-02-12 18:25:28 +01:00
|
|
|
from haystack.core.errors import ComponentError, DeserializationError
|
2024-02-29 12:23:32 +01:00
|
|
|
from haystack.core.pipeline import Pipeline, PredefinedPipeline
|
2023-11-28 09:58:56 +01:00
|
|
|
from haystack.core.serialization import default_from_dict, default_to_dict
|
2024-02-12 18:25:28 +01:00
|
|
|
from haystack.dataclasses import Answer, Document, ExtractedAnswer, GeneratedAnswer
|
2024-02-27 09:15:01 +01:00
|
|
|
|
|
|
|
|
# Initialize the logging configuration
|
|
|
|
|
# This is a no-op unless `structlog` is installed
|
|
|
|
|
haystack.logging.configure_logging()
|
2023-10-23 19:02:59 +02:00
|
|
|
|
2024-06-18 12:37:16 +02:00
|
|
|
# Same for tracing (no op if `opentelemetry` or `ddtrace` is not installed)
|
|
|
|
|
haystack.tracing.auto_enable_tracing()
|
|
|
|
|
|
2023-10-23 19:02:59 +02:00
|
|
|
__all__ = [
|
|
|
|
|
"component",
|
|
|
|
|
"default_from_dict",
|
|
|
|
|
"default_to_dict",
|
|
|
|
|
"DeserializationError",
|
|
|
|
|
"ComponentError",
|
|
|
|
|
"Pipeline",
|
2024-02-29 12:23:32 +01:00
|
|
|
"PredefinedPipeline",
|
2023-10-23 19:02:59 +02:00
|
|
|
"Document",
|
|
|
|
|
"Answer",
|
|
|
|
|
"GeneratedAnswer",
|
|
|
|
|
"ExtractedAnswer",
|
|
|
|
|
]
|
2024-06-17 10:46:11 +02:00
|
|
|
|
|
|
|
|
# FIXME: remove before merging PR
|