Skip to content

Commit

Permalink
add to pydoc config
Browse files Browse the repository at this point in the history
  • Loading branch information
anakin87 committed Mar 19, 2024
1 parent f7d8f3d commit 0c09c75
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/pydoc/config/data_classess_api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ loaders:
- type: haystack_pydoc_tools.loaders.CustomPythonLoader
search_path: [../../../haystack/dataclasses]
modules:
["answer", "byte_stream", "chat_message", "document", "streaming_chunk"]
["answer", "byte_stream", "chat_message", "document", "streaming_chunk", "sparse_embedding"]
ignore_when_discovered: ["__init__"]
processors:
- type: filter
Expand Down
2 changes: 2 additions & 0 deletions haystack/dataclasses/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from haystack.dataclasses.byte_stream import ByteStream
from haystack.dataclasses.chat_message import ChatMessage, ChatRole
from haystack.dataclasses.document import Document
from haystack.dataclasses.sparse_embedding import SparseEmbedding
from haystack.dataclasses.streaming_chunk import StreamingChunk

__all__ = [
Expand All @@ -13,4 +14,5 @@
"ChatMessage",
"ChatRole",
"StreamingChunk",
"SparseEmbedding",
]

0 comments on commit 0c09c75

Please sign in to comment.