haystack/releasenotes/notes/patch-1-34479efe3bea0e4f.yaml
Ivo Bellin Salarin c78545dfc0
feat(openai): be tolerant to exceptions (#8526)
* feat: be tolerant to exceptions

if ever an error is raised by the OpenAI API, don't fail the entire processing

* fix: missing import, string separator

* Enhance error handling

* Use batched from more_itertools for compatibility with older Python versions

* Fix batching and add test

---------

Co-authored-by: Silvano Cerza <silvanocerza@gmail.com>
2024-11-15 10:52:44 +01:00

6 lines
193 B
YAML

---
enhancements:
- |
Change `OpenAIDocumentEmbedder` to keep running if a batch fails embedding.
Now OpenAI returns an error we log that error and keep processing following batches.