We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 988dc77 commit ef20670Copy full SHA for ef20670
integrations/ollama/src/haystack_integrations/components/embedders/ollama/document_embedder.py
@@ -77,6 +77,9 @@ def __init__(
77
self._async_client = AsyncClient(host=self.url, timeout=self.timeout)
78
79
def _prepare_input(self, documents: List[Document]) -> List[Document]:
80
+ """
81
+ Prepares the list of documents to embed by appropriate validation.
82
83
if not isinstance(documents, list) or (documents and not isinstance(documents[0], Document)):
84
msg = (
85
"OllamaDocumentEmbedder expects a list of Documents as input."
0 commit comments