Restore embedding filepath. (#2030)

This commit is contained in:
Symbiomatrix
2024-10-27 01:53:48 +03:00
committed by GitHub
parent 70f3499d0f
commit 41a21f66fd

View File

@@ -258,4 +258,7 @@ def create_embedding_from_data(data, name, filename='unknown embedding file', fi
embedding.vectors = vectors
embedding.shape = shape
if filepath:
embedding.filename = filepath
return embedding