llama-stack-mirror/llama_stack/providers/utils/memory
Derek Higgins 87b8530e3f fix: handle encoding errors when adding files to vector store
- Add try-catch block around data.decode() to handle UnicodeDecodeError
- Implement UTF-8 fallback when detected encoding fails
- re-raise origional exception if fallback fails
- add unit tests

Fixes #2572: UnicodeDecodeError when uploading files with problematic encodings

Signed-off-by: Derek Higgins <derekh@redhat.com>
2025-07-03 17:36:33 +01:00
..
__init__.py API Updates (#73) 2024-09-17 19:51:35 -07:00
file_utils.py Update the "InterleavedTextMedia" type (#635) 2024-12-17 11:18:31 -08:00
openai_vector_store_mixin.py chore: OpenAI compatibility for Milvus (#2470) 2025-06-27 16:00:36 -07:00
vector_store.py fix: handle encoding errors when adding files to vector store 2025-07-03 17:36:33 +01:00