llama-stack-mirror/llama_stack/providers
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
..
inline fix faiss serialize and serialize of index (#464) 2024-11-15 18:02:48 -08:00
registry move hf addapter->remote (#459) 2024-11-14 22:41:19 -05:00
remote move hf addapter->remote (#459) 2024-11-14 22:41:19 -05:00
tests unregister for memory banks and remove update API (#458) 2024-11-14 17:12:11 -08:00
utils unregister for memory banks and remove update API (#458) 2024-11-14 17:12:11 -08:00
__init__.py API Updates (#73) 2024-09-17 19:51:35 -07:00
datatypes.py unregister for memory banks and remove update API (#458) 2024-11-14 17:12:11 -08:00