llama-stack-mirror/llama_stack/providers/inline
Dinesh Yeduguru 57bafd0f8c
fix faiss serialize and serialize of index (#464)
faiss serialize index returns a np object, that we first need to save to
buffer and then write to sqllite. Since we are using json, we need to
base64 encode the data.

Same in the read path, we base64 decode and read into np array and then
call into deserialize index.

tests:
torchrun $CONDA_PREFIX/bin/pytest -v -s -m "faiss"
llama_stack/providers/tests/memory/test_memory.py

Co-authored-by: Dinesh Yeduguru <dineshyv@fb.com>
2024-11-15 18:02:48 -08:00
..
agents PR-437-Fixed bug to allow system instructions after first turn (#440) 2024-11-13 10:34:04 -08:00
datasetio/localfs change schema -> dataset_schema (#442) 2024-11-13 10:58:12 -05:00
eval/meta_reference local persistence for eval tasks (#453) 2024-11-14 10:36:23 -05:00
inference unregister for memory banks and remove update API (#458) 2024-11-14 17:12:11 -08:00
ios/inference impls -> inline, adapters -> remote (#381) 2024-11-06 14:54:05 -08:00
memory fix faiss serialize and serialize of index (#464) 2024-11-15 18:02:48 -08:00
meta_reference Folder restructure for evals/datasets/scoring (#419) 2024-11-11 17:35:40 -05:00
safety Kill "remote" providers and fix testing with a remote stack properly (#435) 2024-11-12 21:51:29 -08:00
scoring categorical score for llm as judge 2024-11-14 22:33:59 -05:00
__init__.py impls -> inline, adapters -> remote (#381) 2024-11-06 14:54:05 -08:00