From a22d5022483715baa07e0664cbd578ada6bf9694 Mon Sep 17 00:00:00 2001 From: Bal Narendra Sapa <61614290+balnarendrasapa@users.noreply.github.com> Date: Sat, 5 Aug 2023 20:16:33 -0400 Subject: [PATCH] added the embeddings part (#8805) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Description: forgot to add the embeddings part in the documentation. sorry 😅 @baskaryan --- .../extras/integrations/vectorstores/faiss.ipynb | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/docs/extras/integrations/vectorstores/faiss.ipynb b/docs/extras/integrations/vectorstores/faiss.ipynb index e03dd0e7d45..7fb3ff7e561 100644 --- a/docs/extras/integrations/vectorstores/faiss.ipynb +++ b/docs/extras/integrations/vectorstores/faiss.ipynb @@ -269,6 +269,20 @@ "pkl = db.serialize_to_bytes() # serializes the faiss index" ] }, + { + "cell_type": "code", + "execution_count": null, + "id": "eb083247", + "metadata": { + "vscode": { + "languageId": "r" + } + }, + "outputs": [], + "source": [ + "embeddings = HuggingFaceEmbeddings(model_name=\"all-MiniLM-L6-v2\")" + ] + }, { "cell_type": "code", "execution_count": null, @@ -276,7 +290,7 @@ "metadata": {}, "outputs": [], "source": [ - "db = FAISS.deserialize_from_bytes(pkl) # Load the index" + "db = FAISS.deserialize_from_bytes(embeddings = embeddings, serialized = pkl) # Load the index" ] }, {