The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
added the embeddings part (#8805)
Bal Narendra Sapaa22d50224837
diff --git a/docs/extras/integrations/vectorstores/faiss.ipynb b/docs/extras/integrations/vectorstores/faiss.ipynbindex e03dd0e7d4..7fb3ff7e56 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"]},{