Skip to content

Commit 3fc29af

Browse files
fix
1 parent 712c0bd commit 3fc29af

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

WDoc/utils/embeddings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ def faiss_loader(
430430
assert metadata is not None
431431
temp = FAISS.load_local(fi, cached_embeddings,
432432
allow_dangerous_deserialization=True)
433-
temp.docstore._dict[list(temp.docstore._dict.values())[
433+
temp.docstore._dict[list(temp.docstore._dict.keys())[
434434
0]].metadata = metadata
435435
if not db:
436436
db = temp

0 commit comments

Comments
 (0)