• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

deepset-ai / haystack / 15215205337

23 May 2025 04:45PM UTC coverage: 90.138% (+0.1%) from 90.035%
15215205337

Pull #9429

github

web-flow
Merge 472ca59f7 into 1fb247714
Pull Request #9429: fix: Gracefully handle documents with no content in LLMMe…

11361 of 12604 relevant lines covered (90.14%)

0.9 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

46.15
haystack/dataclasses/__init__.py
1
# SPDX-FileCopyrightText: 2022-present deepset GmbH <info@deepset.ai>
2
#
3
# SPDX-License-Identifier: Apache-2.0
4

5
import sys
1✔
6
from typing import TYPE_CHECKING
1✔
7

8
from lazy_imports import LazyImporter
1✔
9

10
_import_structure = {
1✔
11
    "answer": ["Answer", "ExtractedAnswer", "GeneratedAnswer"],
12
    "byte_stream": ["ByteStream"],
13
    "chat_message": ["ChatMessage", "ChatRole", "TextContent", "ToolCall", "ToolCallResult"],
14
    "document": ["Document"],
15
    "sparse_embedding": ["SparseEmbedding"],
16
    "state": ["State"],
17
    "streaming_chunk": [
18
        "StreamingChunk",
19
        "AsyncStreamingCallbackT",
20
        "StreamingCallbackT",
21
        "SyncStreamingCallbackT",
22
        "select_streaming_callback",
23
    ],
24
}
25

26
if TYPE_CHECKING:
1✔
27
    from .answer import Answer, ExtractedAnswer, GeneratedAnswer
×
28
    from .byte_stream import ByteStream
×
29
    from .chat_message import ChatMessage, ChatRole, TextContent, ToolCall, ToolCallResult
×
30
    from .document import Document
×
31
    from .sparse_embedding import SparseEmbedding
×
32
    from .state import State
×
33
    from .streaming_chunk import (
×
34
        AsyncStreamingCallbackT,
35
        StreamingCallbackT,
36
        StreamingChunk,
37
        SyncStreamingCallbackT,
38
        select_streaming_callback,
39
    )
40
else:
41
    sys.modules[__name__] = LazyImporter(name=__name__, module_file=__file__, import_structure=_import_structure)
1✔
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc