From 6eff0fa2ca21fe6618f22d4a8bd8123e3464d199 Mon Sep 17 00:00:00 2001 From: Conrad Fernandez Date: Wed, 5 Jul 2023 13:11:37 -0400 Subject: [PATCH] Added documentation for add_texts function for Pinecone integration (#7134) - Description: added some documentation to the Pinecone vector store docs page. - Issue: #7126 - Dependencies: None - Tag maintainer: @baskaryan I can add more documentation on the Pinecone integration functions as I am going to go in great depth into this area. Just wanted to check with the maintainers is if this is all good. --- .../vectorstores/integrations/pinecone.ipynb | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/docs/extras/modules/data_connection/vectorstores/integrations/pinecone.ipynb b/docs/extras/modules/data_connection/vectorstores/integrations/pinecone.ipynb index e25c48a2d4..837dcf9dbf 100644 --- a/docs/extras/modules/data_connection/vectorstores/integrations/pinecone.ipynb +++ b/docs/extras/modules/data_connection/vectorstores/integrations/pinecone.ipynb @@ -1,6 +1,7 @@ { "cells": [ { + "attachments": {}, "cell_type": "markdown", "id": "683953b3", "metadata": {}, @@ -51,6 +52,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "id": "320af802-9271-46ee-948f-d2453933d44b", "metadata": {}, @@ -136,6 +138,30 @@ "print(docs[0].page_content)" ] }, + { + "attachments": {}, + "cell_type": "markdown", + "id": "86a4b96b", + "metadata": {}, + "source": [ + "### Adding More Text to an Existing Index\n", + "\n", + "More text can embedded and upserted to an existing Pinecone index using the `add_texts` function\n" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "38a7a60e", + "metadata": {}, + "outputs": [], + "source": [ + "index = pinecone.Index(\"langchain-demo\")\n", + "vectorstore = Pinecone(index, embeddings.embed_query, \"text\")\n", + "\n", + "vectorstore.add_texts(\"More text!\")" + ] + }, { "attachments": {}, "cell_type": "markdown",