We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 712c0bd commit 3fc29afCopy full SHA for 3fc29af
1 file changed
WDoc/utils/embeddings.py
@@ -430,7 +430,7 @@ def faiss_loader(
430
assert metadata is not None
431
temp = FAISS.load_local(fi, cached_embeddings,
432
allow_dangerous_deserialization=True)
433
- temp.docstore._dict[list(temp.docstore._dict.values())[
+ temp.docstore._dict[list(temp.docstore._dict.keys())[
434
0]].metadata = metadata
435
if not db:
436
db = temp
0 commit comments