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 ccd0a7f commit a0524a1Copy full SHA for a0524a1
integrations/ollama/src/haystack_integrations/components/embedders/ollama/document_embedder.py
@@ -152,6 +152,9 @@ async def _embed_batch_async(
152
results = await asyncio.gather(*tasks, return_exceptions=True)
153
154
for _idx, res in enumerate(results):
155
+ if isinstance(res, Exception):
156
+ raise RuntimeError(f"Error in batch {_idx}: {res}")
157
+ continue
158
all_embeddings.extend(res["embeddings"])
159
160
return all_embeddings
0 commit comments