Skip to content

Commit ef20670

Browse files
committed
docs: address review comments
1 parent 988dc77 commit ef20670

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

integrations/ollama/src/haystack_integrations/components/embedders/ollama/document_embedder.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,9 @@ def __init__(
7777
self._async_client = AsyncClient(host=self.url, timeout=self.timeout)
7878

7979
def _prepare_input(self, documents: List[Document]) -> List[Document]:
80+
"""
81+
Prepares the list of documents to embed by appropriate validation.
82+
"""
8083
if not isinstance(documents, list) or (documents and not isinstance(documents[0], Document)):
8184
msg = (
8285
"OllamaDocumentEmbedder expects a list of Documents as input."

0 commit comments

Comments
 (0)