llama-stack-mirror/llama_stack
Ben Browning a5ebac18bd Add a helpful error message when Fails fails to load indexes
We've had a few cases recently where Faiss is unable to load its
indexes properly, like after users upgrade versions of Llama Stack or
numpy dependencies. This catches any exceptions when deserializing the
index with an error message about what likely went wrong and how to
potentially fix it so that users can attempt to fix this without
needing to raise an issue or being confused.

The most common case of new users hitting this will be with the
SqliteKVStoreImpl, since that's our local storage most people use when
testing out Llama Stack. So, I added a `__str__` method to it that
shows the proper path and table name that users need to potentially
delete to resolve this error.

Signed-off-by: Ben Browning <bbrownin@redhat.com>
2025-06-27 14:16:05 -04:00
..
apis fix: finish conversion to StrEnum (#2514) 2025-06-26 08:01:26 +05:30
cli fix: stack build (#2485) 2025-06-20 15:15:43 -07:00
distribution refactor(env)!: enhanced environment variable substitution (#2490) 2025-06-26 08:20:08 +05:30
models fix: finish conversion to StrEnum (#2514) 2025-06-26 08:01:26 +05:30
providers Add a helpful error message when Fails fails to load indexes 2025-06-27 14:16:05 -04:00
strong_typing chore: enable pyupgrade fixes (#1806) 2025-05-01 14:23:50 -07:00
templates refactor(env)!: enhanced environment variable substitution (#2490) 2025-06-26 08:20:08 +05:30
ui fix(ui): ensure initial data fetch only happens once (#2486) 2025-06-24 12:22:55 +02:00
__init__.py export LibraryClient 2024-12-13 12:08:00 -08:00
env.py refactor(test): move tools, evals, datasetio, scoring and post training tests (#1401) 2025-03-04 14:53:47 -08:00
log.py chore: remove nested imports (#2515) 2025-06-26 08:01:05 +05:30
schema_utils.py chore: enable pyupgrade fixes (#1806) 2025-05-01 14:23:50 -07:00