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 0714180Copy full SHA for 0714180
integrations/ollama/src/haystack_integrations/components/embedders/ollama/document_embedder.py
@@ -151,7 +151,10 @@ async def _embed_batch_async(
151
152
results = await asyncio.gather(*tasks, return_exceptions=True)
153
154
- for _idx, res in enumerate(results):
+ for idx, res in enumerate(results):
155
+ if isinstance(res, BaseException):
156
+ err_msg = f"Embedding batch {idx} raised an exception."
157
+ raise RuntimeError(err_msg)
158
all_embeddings.extend(res["embeddings"])
159
160
return all_embeddings
0 commit comments