faiss_embedding.py
now by default stores a cached embedding at the user's cache directory (determined by platformdirs
).
If cache_embedding
is enabled (which is turned on by default), this file computes a hash of the free text values. The next time when the server is run, if the database values remains unchanged, this file will directly use the cached embeddings. If there are changes to the underlying values, this file will recompute the embeddings.
Check API documentation for the add
function at here.
Bug fix for #15.