From 4f4b078bf3b2ea3c150f0a03765eae24efda6c1a Mon Sep 17 00:00:00 2001 From: Kostas Botsas Date: Tue, 19 Dec 2023 16:04:46 +0200 Subject: [PATCH] docs: add reference for XataVectorStore constructor (#14903) Adds doc reference to the XataVectorStore constructor for use with existing Xata table contents. @tsg @philkra --- docs/docs/integrations/vectorstores/xata.ipynb | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/docs/docs/integrations/vectorstores/xata.ipynb b/docs/docs/integrations/vectorstores/xata.ipynb index 2636e008b71..94566bd0e93 100644 --- a/docs/docs/integrations/vectorstores/xata.ipynb +++ b/docs/docs/integrations/vectorstores/xata.ipynb @@ -167,7 +167,19 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "After running the above command, if you go to the Xata UI, you should see the documents loaded together with their embeddings." + "After running the above command, if you go to the Xata UI, you should see the documents loaded together with their embeddings.\n", + "To use an existing Xata table that already contains vector contents, initialize the XataVectorStore constructor:" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "vector_store = XataVectorStore(\n", + " api_key=api_key, db_url=db_url, embedding=embeddings, table_name=\"vectors\"\n", + ")" ] }, {