llama-stack/llama_stack/providers/inline/memory
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
..
faiss fix faiss serialize and serialize of index (#464) 2024-11-15 18:02:48 -08:00
__init__.py add missing inits 2024-11-08 17:49:29 -08:00